diff options
Diffstat (limited to 'lua/user/whichkey.lua')
| -rw-r--r-- | lua/user/whichkey.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index 0056e5a..35da924 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -144,7 +144,7 @@ local mappings = { i = { "<cmd>LspInfo<cr>", "Info" }, I = { "<cmd>LspInstallInfo<cr>", "Installer Info" }, j = { - "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", + "<cmd>lua vim.diagnostic.goto_next()<CR>", "Next Diagnostic", }, k = { @@ -152,7 +152,7 @@ local mappings = { "Prev Diagnostic", }, l = { "<cmd>lua vim.lsp.codelens.run()<cr>", "CodeLens Action" }, - q = { "<cmd>lua vim.lsp.diagnostic.set_loclist()<cr>", "Quickfix" }, + q = { "<cmd>lua vim.diagnostic.setloclist()<cr>", "Quickfix" }, r = { "<cmd>lua vim.lsp.buf.rename()<cr>", "Rename" }, s = { "<cmd>Telescope lsp_document_symbols<cr>", "Document Symbols" }, S = { @@ -184,6 +184,8 @@ local mappings = { }, } +which_key.setup(setup) +which_key.register(mappings, opts) local vopts = { mode = "v", -- VISUAL mode prefix = "<leader>", @@ -196,6 +198,4 @@ local vmappings = { ["/"] = { "<ESC><CMD>lua require(\"Comment.api\").toggle_linewise_op(vim.fn.visualmode())<CR>", "Comment" }, } -which_key.setup(setup) -which_key.register(mappings, opts) which_key.register(vmappings, vopts) |
