Added actions preview plugin

This commit is contained in:
2025-06-03 03:40:17 +02:00
parent b4dfc6cfc0
commit 535ad35ded
3 changed files with 32 additions and 1 deletions

View File

@@ -27,7 +27,9 @@ map("<leader>th", function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end, "Toggle inlay hints")
map("gra", vim.lsp.buf.code_action, "Code actions", { "n", "x" })
map("gra", function()
require("actions-preview").code_actions()
end, "Code actions", { "n", "x" })
map("grD", vim.lsp.buf.declaration, "Goto declaration")
map("grd", function()
require("telescope.builtin").lsp_definitions({ jump_type = "never" })