diff options
| author | joott <josh@ottmail.me> | 2025-07-30 15:53:29 -0400 |
|---|---|---|
| committer | joott <josh@ottmail.me> | 2025-07-30 15:53:29 -0400 |
| commit | 26694e09e8f5bf2262737312e7ad217118db20de (patch) | |
| tree | ca55eee2f8c5106c61e747979780d6f393fd24c9 /.config/xplr/init.lua | |
| parent | 89a596a50ec61b8ebd6040b06a7cab994afd1b3a (diff) | |
| download | dotfiles-26694e09e8f5bf2262737312e7ad217118db20de.tar.gz dotfiles-26694e09e8f5bf2262737312e7ad217118db20de.zip | |
switching to yadm
Diffstat (limited to '.config/xplr/init.lua')
| -rw-r--r-- | .config/xplr/init.lua | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/.config/xplr/init.lua b/.config/xplr/init.lua new file mode 100644 index 0000000..c935ada --- /dev/null +++ b/.config/xplr/init.lua @@ -0,0 +1,62 @@ +version = "1.0.0" + +local home = os.getenv("HOME") +package.path = home + .. "/.config/xplr/plugins/?/init.lua;" + .. home + .. "/.config/xplr/plugins/?.lua;" + .. package.path + +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', + 'sayanarijit/fzf.xplr', + 'gitlab:hartan/web-devicons.xplr', + 'sayanarijit/wl-clipboard.xplr', + 'sayanarijit/map.xplr', + 'sayanarijit/zoxide.xplr', + 'sayanarijit/zentable.xplr', + }, + auto_install = true, + auto_cleanup = true, +}) + +xplr.config.modes.builtin.default.key_bindings.on_key.x = { + help = "xpm", + messages = { + "PopMode", + { SwitchModeCustom = "xpm" }, + }, +} + +require("fzf").setup({ + mode = "default", + key = "ctrl-f", + bin = "fzf", + recursive = true, + enter_dir = true, +}) + +require("wl-clipboard").setup() +require("map").setup() +require("zoxide").setup() +require("zentable").setup() +require("icons").setup() |