diff options
| author | 2023-04-24 09:56:00 -0400 | |
|---|---|---|
| committer | 2023-04-24 09:56:00 -0400 | |
| commit | 5dc4c4bad31f6d388fd049eeda7c24ec0ab2c463 (patch) | |
| tree | 8ec79b7af7e314249ebb1883766fc1da5d03d09c /dot_config/nvim/lua/bindings/init.lua | |
| parent | nvim: add clangd lsp (diff) | |
nvim: update bindings
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' }, +} |
