feat: use nvim code-actions

This commit is contained in:
Michael Mandl 2022-05-18 10:20:29 +02:00
parent af1ad8dec6
commit a3d0c3623d
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -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",