rebind lsp action keys
This commit is contained in:
parent
9567a6e8fc
commit
cf7475b485
1 changed files with 5 additions and 5 deletions
|
@ -56,13 +56,13 @@ lsp.on_attach(function(client, bufnr)
|
|||
|
||||
keymap("n", "gd", function() vim.lsp.buf.definition() end, opts)
|
||||
keymap("n", "K", function() vim.lsp.buf.hover() end, opts)
|
||||
keymap("n", "<leader>vws", function() vim.lsp.buf.workspace_symbol() end, opts)
|
||||
keymap("n", "<leader>vd", function() vim.diagnostic.open_float() end, opts)
|
||||
keymap("n", "<leader>ls", function() vim.lsp.buf.workspace_symbol() end, opts)
|
||||
keymap("n", "<leader>lf", function() vim.diagnostic.open_float() end, opts)
|
||||
keymap("n", "[d", function() vim.diagnostic.goto_next() end, opts)
|
||||
keymap("n", "]d", function() vim.diagnostic.goto_prev() end, opts)
|
||||
keymap("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts)
|
||||
keymap("n", "<leader>vrr", function() vim.lsp.buf.references() end, opts)
|
||||
keymap("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
|
||||
keymap("n", "<leader>la", function() vim.lsp.buf.code_action() end, opts)
|
||||
keymap("n", "<leader>lr", function() vim.lsp.buf.references() end, opts)
|
||||
keymap("n", "<leader>ln", function() vim.lsp.buf.rename() end, opts)
|
||||
keymap("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in a new issue