feat: use nvim code-actions
This commit is contained in:
parent
af1ad8dec6
commit
a3d0c3623d
@ -19,7 +19,7 @@ require("nvim-lsp-setup").setup({
|
|||||||
K = "lua vim.lsp.buf.hover()",
|
K = "lua vim.lsp.buf.hover()",
|
||||||
["<C-k>"] = "lua vim.lsp.buf.signature_help()",
|
["<C-k>"] = "lua vim.lsp.buf.signature_help()",
|
||||||
["<leader>rn"] = "lua vim.lsp.buf.rename()",
|
["<leader>rn"] = "lua vim.lsp.buf.rename()",
|
||||||
["<leader>ca"] = "Telescope lsp_code_actions theme=cursor",
|
["<leader>ca"] = "lua vim.lsp.buf.code_action()",
|
||||||
["<leader>f"] = "lua vim.lsp.buf.formatting()",
|
["<leader>f"] = "lua vim.lsp.buf.formatting()",
|
||||||
["<leader>e"] = "lua vim.lsp.diagnostic.show_line_diagnostics()",
|
["<leader>e"] = "lua vim.lsp.diagnostic.show_line_diagnostics()",
|
||||||
["<leader>d"] = "Telescope diagnostics",
|
["<leader>d"] = "Telescope diagnostics",
|
||||||
|
Reference in New Issue
Block a user