From 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Wed, 24 Jul 2024 19:19:26 +0200 Subject: 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? --- dot_config/nvim/fnl/bindings/builtins.fnl | 5 +++++ dot_config/nvim/fnl/bindings/init.fnl | 13 +++++++++++++ dot_config/nvim/fnl/bindings/plugins.fnl | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 dot_config/nvim/fnl/bindings/builtins.fnl create mode 100644 dot_config/nvim/fnl/bindings/init.fnl create mode 100644 dot_config/nvim/fnl/bindings/plugins.fnl (limited to 'dot_config/nvim/fnl/bindings') diff --git a/dot_config/nvim/fnl/bindings/builtins.fnl b/dot_config/nvim/fnl/bindings/builtins.fnl new file mode 100644 index 0000000..8c77e35 --- /dev/null +++ b/dot_config/nvim/fnl/bindings/builtins.fnl @@ -0,0 +1,5 @@ +; document missing builtins +(import-macros {: tbl : recc} :toast.macros) +(recc :which-key :add + [(tbl :gt & :desc "Next tab") + (tbl :gT & :desc "Previous tab")]) 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 :e vim.diagnostic.open_float & :desc "diag float") + (tbl :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")]) diff --git a/dot_config/nvim/fnl/bindings/plugins.fnl b/dot_config/nvim/fnl/bindings/plugins.fnl new file mode 100644 index 0000000..ae0348d --- /dev/null +++ b/dot_config/nvim/fnl/bindings/plugins.fnl @@ -0,0 +1,4 @@ +; plugin-specific category bindings +(import-macros {: tbl : recc} :toast.macros) +(recc :which-key :add + [(tbl :f & :desc :+find)]) -- cgit v1.2.3