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/lua | |
| 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 '')
| -rw-r--r-- | dot_config/nvim/lua/bindings.lua | 2 | ||||
| -rw-r--r-- | dot_config/nvim/lua/bindings/builtins.lua | 2 | ||||
| -rw-r--r-- | dot_config/nvim/lua/bindings/init.lua | 5 | ||||
| -rw-r--r-- | dot_config/nvim/lua/bindings/plugins.lua | 2 |
4 files changed, 2 insertions, 9 deletions
diff --git a/dot_config/nvim/lua/bindings.lua b/dot_config/nvim/lua/bindings.lua new file mode 100644 index 0000000..a323057 --- /dev/null +++ b/dot_config/nvim/lua/bindings.lua @@ -0,0 +1,2 @@ +-- [nfnl] Compiled from fnl/bindings.fnl by https://github.com/Olical/nfnl, do not edit. +return require("which-key").add({{"gt", desc = "Next tab"}, {"gT", desc = "Previous tab"}, {"<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"}, {"<leader>f", desc = "+find"}}) diff --git a/dot_config/nvim/lua/bindings/builtins.lua b/dot_config/nvim/lua/bindings/builtins.lua deleted file mode 100644 index b6e02d7..0000000 --- a/dot_config/nvim/lua/bindings/builtins.lua +++ /dev/null @@ -1,2 +0,0 @@ --- [nfnl] Compiled from fnl/bindings/builtins.fnl by https://github.com/Olical/nfnl, do not edit. -return (require("which-key")).add({{"gt", desc = "Next tab"}, {"gT", desc = "Previous tab"}}) diff --git a/dot_config/nvim/lua/bindings/init.lua b/dot_config/nvim/lua/bindings/init.lua deleted file mode 100644 index 1b8c2b8..0000000 --- a/dot_config/nvim/lua/bindings/init.lua +++ /dev/null @@ -1,5 +0,0 @@ --- [nfnl] Compiled from fnl/bindings/init.fnl by https://github.com/Olical/nfnl, do not edit. -for _, v in ipairs({"builtins", "plugins"}) do - require(("bindings." .. v)) -end -return (require("which-key")).add({{"<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/lua/bindings/plugins.lua b/dot_config/nvim/lua/bindings/plugins.lua deleted file mode 100644 index 8bebd06..0000000 --- a/dot_config/nvim/lua/bindings/plugins.lua +++ /dev/null @@ -1,2 +0,0 @@ --- [nfnl] Compiled from fnl/bindings/plugins.fnl by https://github.com/Olical/nfnl, do not edit. -return (require("which-key")).add({{"<leader>f", desc = "+find"}}) |
