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

changeset 1128
30d81fbc6a7b
parent 1120
8f8a93daa98c
child 1131
f3044a1658fc
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -32,4 +32,18 @@ return {
       })
     end,
   },
+
+  {
+    "aznhe21/actions-preview.nvim",
+    keys = "<leader>ca",
+    opts = {
+      nui = {
+        keymap = { close = { "<ESC>", "<C-c>", "q" } },
+      },
+    },
+    config = function(_, opts)
+      require("actions-preview").setup(opts)
+      vim.keymap.set("n", "<leader>ca", require("actions-preview").code_actions, { silent = true })
+    end,
+  },
 }

mercurial