This commit is contained in:
Miguel Palhas
2025-07-22 16:02:04 +01:00
parent 9827308c8e
commit 00e57b5004
2 changed files with 27 additions and 60 deletions
+13 -46
View File
@@ -33,58 +33,25 @@ return {
},
{
"rachartier/tiny-code-action.nvim",
dependencies = {
{ "nvim-lua/plenary.nvim" },
-- optional picker via telescope
{ "nvim-telescope/telescope.nvim" },
-- optional picker via fzf-lua
-- { "ibhagwan/fzf-lua" },
-- .. or via snacks
-- { "folke/snacks.nvim", opts = { terminal = {} } },
},
event = "LspAttach",
opts = {
-- backend = "delta",
-- picker = {
-- "buffer",
-- opts = {
-- hotkeys = true,
-- auto_preview = true,
-- auto_accept = true,
-- },
-- },
},
"aznhe21/actions-preview.nvim",
config = function()
local hl = require "actions-preview.highlight"
require("actions-preview").setup {
backend = { "nui" },
highlight_command = { hl.delta() },
nui = {
keymap = { "q", "<C-c>" },
},
}
end,
keys = {
{
"ga",
function()
require("tiny-code-action").code_action()
require("actions-preview").code_actions()
end,
},
},
},
-- {
-- "aznhe21/actions-preview.nvim",
-- config = function()
-- local hl = require "actions-preview.highlight"
-- require("actions-preview").setup {
-- backend = { "nui" },
-- highlight_command = { hl.delta() },
--
-- nui = {
-- keymap = { "q", "<C-c>" },
-- },
-- }
-- end,
-- keys = {
-- {
-- "ga",
-- function()
-- require("actions-preview").code_actions()
-- end,
-- },
-- },
-- },
}