rebind lsp action keys

This commit is contained in:
Freya Murphy 2023-10-10 10:21:27 -04:00
parent 9567a6e8fc
commit cf7475b485
No known key found for this signature in database
GPG key ID: 988032A5638EE799

View file

@ -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)