--- 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, + }, }