From e3810af4655065fe8375df775f5cc9e83e7f037c Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 15 Jul 2025 14:10:35 +0100 Subject: [PATCH] remove lsp preview --- lua/configs/lspconfig.lua | 6 +++--- lua/plugins/lsp.lua | 23 ----------------------- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index e0791c1..dbf2ca4 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -79,9 +79,9 @@ M.rustacean = { return { buffer = bufnr, desc = "LSP " .. desc } end - -- map("n", "ga", function() - -- vim.cmd.RustLsp "codeAction" - -- end, opts "Rust Code Actions") + map("n", "ga", function() + vim.cmd.RustLsp "codeAction" + end, opts "Rust Code Actions") end, }, tools = { diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index b7a5998..86eb984 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -31,27 +31,4 @@ return { event = "LspAttach", opts = {}, -- required, even if empty }, - - { - "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", "" }, - }, - } - end, - keys = { - { - "ga", - function() - require("actions-preview").code_actions() - end, - }, - }, - }, }