Add action menu for generic lsp
This commit is contained in:
@@ -32,7 +32,7 @@ map(
|
||||
"<CMD> lua require('conform').format { lsp_fallback = true }<CR>",
|
||||
{ desc = "General Format file" }
|
||||
)
|
||||
map({ "n", "v" }, "<leader>la", vim.lsp.buf.code_action, { desc = "Code action" })
|
||||
map({ "n", "v" }, "<leader>la", require("actions-preview").code_actions, { desc = "Code action" })
|
||||
map("n", "gD", vim.lsp.buf.declaration, { desc = "Go to declaration" })
|
||||
map("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
|
||||
map("n", "gi", vim.lsp.buf.implementation, { desc = "Go to implementation" })
|
||||
|
||||
Reference in New Issue
Block a user