.config/nvim/lua/plugins/lsp.lua

changeset 1152
59d9ca2ec2fd
parent 1149
4af7c8156683
child 1154
dc04a7db1e83
equal deleted inserted replaced
1151:ecfcc61310d4 1152:59d9ca2ec2fd
39 -- Support pull diagnostics until 0.10 39 -- Support pull diagnostics until 0.10
40 { "catlee/pull_diags.nvim", event = "LspAttach", config = true }, 40 { "catlee/pull_diags.nvim", event = "LspAttach", config = true },
41 41
42 { 42 {
43 "aznhe21/actions-preview.nvim", 43 "aznhe21/actions-preview.nvim",
44 keys = "<leader>ca", 44 event = "LspAttach",
45 opts = { 45 opts = {
46 nui = { 46 nui = {
47 keymap = { close = { "<ESC>", "<C-c>", "q" } }, 47 keymap = { close = { "<ESC>", "<C-c>", "q" } },
48 }, 48 },
49 }, 49 },
50 config = function(_, opts)
51 require("actions-preview").setup(opts)
52 vim.keymap.set("n", "<leader>ca", require("actions-preview").code_actions, { silent = true })
53 end,
54 }, 50 },
55 51
56 { 52 {
57 "ray-x/lsp_signature.nvim", 53 "ray-x/lsp_signature.nvim",
58 branch = "master", 54 branch = "master",

mercurial