diff options
| author | 2024-08-06 13:15:45 +0200 | |
|---|---|---|
| committer | 2024-08-06 13:15:45 +0200 | |
| commit | 733f23d190a3ca58900eba547d89917b26f30f6f (patch) | |
| tree | 4a92fa27b3e578954f4974463a48f1f69bfe15f2 /dot_config/nvim/fnl | |
| parent | nvim/noplugins: port the "TODO" to fennel :) (diff) | |
nvim: simplify bindings.fnl
This also introduces a neovim-level `.chezmoiremove`.
This will be used from now on to cleanup files.
It might grow over time but I can start trimming the top lines once it's
been "long enough" anyway.
Diffstat (limited to 'dot_config/nvim/fnl')
| -rw-r--r-- | dot_config/nvim/fnl/bindings.fnl | 13 | ||||
| -rw-r--r-- | dot_config/nvim/fnl/bindings/builtins.fnl | 5 | ||||
| -rw-r--r-- | dot_config/nvim/fnl/bindings/init.fnl | 13 | ||||
| -rw-r--r-- | dot_config/nvim/fnl/bindings/plugins.fnl | 4 |
4 files changed, 13 insertions, 22 deletions
diff --git a/dot_config/nvim/fnl/bindings.fnl b/dot_config/nvim/fnl/bindings.fnl new file mode 100644 index 0000000..04ea594 --- /dev/null +++ b/dot_config/nvim/fnl/bindings.fnl @@ -0,0 +1,13 @@ +(import-macros {:mixed-table · : recc} :toast.macros) + +(recc :which-key :add + ; document missing builtins + [(· :gt & :desc "Next tab") + (· :gT & :desc "Previous tab") + ; diagnostics + (· :<leader>e vim.diagnostic.open_float & :desc "diag float") + (· :<leader>q vim.diagnostic.setloclist & :desc "diag locations") + (· "[d" vim.diagnostic.goto_prev & :desc "prev diag") + (· "]d" vim.diagnostic.goto_next & :desc "next diag") + ; plugin groups + (· :<leader>f & :desc :+find)]) diff --git a/dot_config/nvim/fnl/bindings/builtins.fnl b/dot_config/nvim/fnl/bindings/builtins.fnl deleted file mode 100644 index dd96dfc..0000000 --- a/dot_config/nvim/fnl/bindings/builtins.fnl +++ /dev/null @@ -1,5 +0,0 @@ -; document missing builtins -(import-macros {:mixed-table · : recc} :toast.macros) -(recc :which-key :add - [(· :gt & :desc "Next tab") - (· :gT & :desc "Previous tab")]) diff --git a/dot_config/nvim/fnl/bindings/init.fnl b/dot_config/nvim/fnl/bindings/init.fnl deleted file mode 100644 index 80b6733..0000000 --- a/dot_config/nvim/fnl/bindings/init.fnl +++ /dev/null @@ -1,13 +0,0 @@ -(import-macros {:mixed-table · : recc} :toast.macros) - -(each [_ v (ipairs [:builtins - :plugins])] - (require (.. :bindings. v))) - -; general bindings that aren't specific to a plugin -(recc :which-key :add - ; diagnostics - [(· :<leader>e vim.diagnostic.open_float & :desc "diag float") - (· :<leader>q vim.diagnostic.setloclist & :desc "diag locations") - (· "[d" vim.diagnostic.goto_prev & :desc "prev diag") - (· "]d" vim.diagnostic.goto_next & :desc "next diag")]) diff --git a/dot_config/nvim/fnl/bindings/plugins.fnl b/dot_config/nvim/fnl/bindings/plugins.fnl deleted file mode 100644 index 97f09c7..0000000 --- a/dot_config/nvim/fnl/bindings/plugins.fnl +++ /dev/null @@ -1,4 +0,0 @@ -; plugin-specific category bindings -(import-macros {:mixed-table · : recc} :toast.macros) -(recc :which-key :add - [(· :<leader>f & :desc :+find)]) |
