summaryrefslogtreecommitdiff
path: root/xplr
diff options
context:
space:
mode:
authorottjk <joshott16@gmail.com>2023-12-30 19:23:04 -0500
committerottjk <joshott16@gmail.com>2023-12-30 19:23:04 -0500
commited46f1c5e82709417085b1a3b7708b209c5f4bfe (patch)
treed7eb3f2b4b00e75e5f10199e1cbff959c355b312 /xplr
downloaddotfiles-ed46f1c5e82709417085b1a3b7708b209c5f4bfe.tar.gz
dotfiles-ed46f1c5e82709417085b1a3b7708b209c5f4bfe.zip
initial commit
Diffstat (limited to 'xplr')
-rw-r--r--xplr/init.lua44
m---------xplr/plugins/icons0
2 files changed, 44 insertions, 0 deletions
diff --git a/xplr/init.lua b/xplr/init.lua
new file mode 100644
index 0000000..54e748b
--- /dev/null
+++ b/xplr/init.lua
@@ -0,0 +1,44 @@
+version = "0.21.3"
+
+local home = os.getenv("HOME")
+local xpm_path = home .. "/.local/share/xplr/dtomvan/xpm.xplr"
+local xpm_url = "https://github.com/dtomvan/xpm.xplr"
+
+package.path = package.path
+ .. ";"
+ .. xpm_path
+ .. "/?.lua;"
+ .. xpm_path
+ .. "/?/init.lua"
+
+os.execute(
+ string.format(
+ "[ -e '%s' ] || git clone '%s' '%s'",
+ xpm_path,
+ xpm_url,
+ xpm_path
+ )
+)
+
+require("xpm").setup({
+ plugins = {
+ 'dtomvan/xpm.xplr',
+ { name = 'sayanarijit/fzf.xplr' },
+ { name = 'prncss-xyz/icons.xplr' },
+ { 'dtomvan/extra-icons.xplr',
+ after = function()
+ xplr.config.general.table.row.cols[2] = { format = "custom.icons_dtomvan_col_1" }
+ end
+ },
+ },
+ auto_install = true,
+ auto_cleanup = true,
+})
+
+xplr.config.modes.builtin.default.key_bindings.on_key.x = {
+ help = "xpm",
+ messages = {
+ "PopMode",
+ { SwitchModeCustom = "xpm" },
+ },
+}
diff --git a/xplr/plugins/icons b/xplr/plugins/icons
new file mode 160000
+Subproject 6133ea79c41629591c72fa4c51132f7a3cb3078