diff options
| author | Mike Vink <ivi@vinkies.net> | 2023-12-27 11:38:23 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2023-12-27 11:38:23 +0100 |
| commit | e11e6e48a83f65035e1cd2a30254f2ccc24e9aa0 (patch) | |
| tree | e201239f20be7939a8000ad34f634b90fcdad948 /mut/neovim | |
| parent | 3bc7d9d09462d73c81e7f98290a63e82a74a1a05 (diff) | |
add zoxide
Diffstat (limited to 'mut/neovim')
| -rw-r--r-- | mut/neovim/fnl/conf/events.fnl | 13 | ||||
| -rw-r--r-- | mut/neovim/fnl/conf/pkgs/lspconfig.fnl | 3 | ||||
| -rw-r--r-- | mut/neovim/fnl/conf/settings.fnl | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/mut/neovim/fnl/conf/events.fnl b/mut/neovim/fnl/conf/events.fnl index a2e51be..f48f1b9 100644 --- a/mut/neovim/fnl/conf/events.fnl +++ b/mut/neovim/fnl/conf/events.fnl @@ -12,6 +12,19 @@ :pattern ["*"] :callback attach}) +(local oil (require :oil)) +(event + :User + {:group "conf#events" + :pattern ["ZoxideDirChanged"] + :callback #(vim.schedule #(oil.open (vim.fn.getcwd)))}) + +(event + :BufWritePost + {:group "conf#events" + :pattern ["*.rs"] + :callback #(vim.cmd (.. "Compile! rustfmt " (vim.fn.expand "%")))}) + (event :BufReadPost {:pattern ["*"] diff --git a/mut/neovim/fnl/conf/pkgs/lspconfig.fnl b/mut/neovim/fnl/conf/pkgs/lspconfig.fnl index e324f5c..0a463ad 100644 --- a/mut/neovim/fnl/conf/pkgs/lspconfig.fnl +++ b/mut/neovim/fnl/conf/pkgs/lspconfig.fnl @@ -2,7 +2,8 @@ (local configs (require :lspconfig.configs)) (lspconfig.rust_analyzer.setup - {:settings + {:autostart false + :settings {:rust-analyzer {:cargo {:buildScripts {:enable true}} :procMacro {:enable true :attributes {:enable true}} diff --git a/mut/neovim/fnl/conf/settings.fnl b/mut/neovim/fnl/conf/settings.fnl index e670010..54a9959 100644 --- a/mut/neovim/fnl/conf/settings.fnl +++ b/mut/neovim/fnl/conf/settings.fnl @@ -18,6 +18,8 @@ loaded_tutor false loaded_zipPlugin false + zoxide_use_select true + zoxide_hook "pwd" mapleader " " maplocalleader " " dirvish_mode ":sort | sort ,^.*[^/]$, r") |
