diff options
Diffstat (limited to 'dot_config/nvim/lua/bindings/init.lua')
| -rw-r--r-- | dot_config/nvim/lua/bindings/init.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/bindings/init.lua b/dot_config/nvim/lua/bindings/init.lua new file mode 100644 index 0000000..622f23d --- /dev/null +++ b/dot_config/nvim/lua/bindings/init.lua @@ -0,0 +1,18 @@ +for _, v in ipairs { + 'builtins', + 'plugins', + 'readline', +} do + require ('bindings.' .. v) +end + +-- general bindings that aren't specific to a plugin +require 'which-key'.register { + -- diagnostics + ['<leader>'] = { + e = { vim.diagnostic.open_float, 'diag float' }, + q = { vim.diagnostic.setloclist, 'diag locations' }, + }, + ['[d'] = { vim.diagnostic.goto_prev, 'prev diag' }, + [']d'] = { vim.diagnostic.goto_next, 'next diag' }, +} |
