remove lsp preview
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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", "<C-c>" },
|
||||
},
|
||||
}
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"ga",
|
||||
function()
|
||||
require("actions-preview").code_actions()
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user