diff options
| author | 2024-07-24 19:19:26 +0200 | |
|---|---|---|
| committer | 2024-07-24 19:19:26 +0200 | |
| commit | 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 (patch) | |
| tree | d740ac5e8943e48ee4132efc4633051d6cdf1d48 /dot_config/nvim/fnl/bindings/init.fnl | |
| parent | nvim: ignore lazy-lock.json (diff) | |
nvim: rewrite config in fennel
One file isn't done, and there's also the question of ftplugin and co.
One step at a time though, eh?
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/fnl/bindings/init.fnl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dot_config/nvim/fnl/bindings/init.fnl b/dot_config/nvim/fnl/bindings/init.fnl new file mode 100644 index 0000000..c350db4 --- /dev/null +++ b/dot_config/nvim/fnl/bindings/init.fnl @@ -0,0 +1,13 @@ +(import-macros {: tbl : 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 + [(tbl :<leader>e vim.diagnostic.open_float & :desc "diag float") + (tbl :<leader>q vim.diagnostic.setloclist & :desc "diag locations") + (tbl "[d" vim.diagnostic.goto_prev & :desc "prev diag") + (tbl "]d" vim.diagnostic.goto_next & :desc "next diag")]) |
