diff options
| author | 2024-07-23 13:59:27 +0200 | |
|---|---|---|
| committer | 2024-07-23 13:59:27 +0200 | |
| commit | 27de2149badbcf51ba46bf4d8724a5643ac64f07 (patch) | |
| tree | c03857035fb8ae701aebf9185cf919ce9fb413f9 /dot_config/nvim/lua/bindings/init.lua | |
| parent | fish: add initial completions for pdnsutil (diff) | |
nvim: update to v3 which-key spec
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/lua/bindings/init.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/dot_config/nvim/lua/bindings/init.lua b/dot_config/nvim/lua/bindings/init.lua index 01b83b0..4108782 100644 --- a/dot_config/nvim/lua/bindings/init.lua +++ b/dot_config/nvim/lua/bindings/init.lua @@ -6,12 +6,10 @@ for _, v in ipairs { end -- general bindings that aren't specific to a plugin -require 'which-key'.register { +require 'which-key'.add { -- 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' }, + { '<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' }, } |
