summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim/fnl/bindings')
-rw-r--r--dot_config/nvim/fnl/bindings/builtins.fnl5
-rw-r--r--dot_config/nvim/fnl/bindings/init.fnl13
-rw-r--r--dot_config/nvim/fnl/bindings/plugins.fnl4
3 files changed, 22 insertions, 0 deletions
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 :<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")])
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 :<leader>f & :desc :+find)])