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

changeset 1152
59d9ca2ec2fd
parent 1149
4af7c8156683
child 1154
dc04a7db1e83
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -41,16 +41,12 @@ return {
 
   {
     "aznhe21/actions-preview.nvim",
-    keys = "<leader>ca",
+    event = "LspAttach",
     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