neovim plugin cleanup

This commit is contained in:
Alexander Navarro 2024-11-22 16:54:43 -03:00
parent 4a5a878a7f
commit 7c0c670e29
13 changed files with 311 additions and 360 deletions

View file

@ -66,6 +66,18 @@ return {
end
end
local trouble = require("trouble")
local symbols = trouble.statusline({
mode = "lsp_document_symbols",
groups = {},
title = false,
filter = { range = true },
format = "{kind_icon}{symbol.name:Normal}",
-- The following line is needed to fix the background color
-- Set it to the lualine section you want to use
hl_group = "lualine_c_normal",
})
return {
options = {
theme = "catppuccin",
@ -115,18 +127,12 @@ return {
},
},
{ codecompanion_status },
{ "aerial" },
{
"overseer",
symbols.get,
cond = symbols.has,
},
{
-- Macro recording status
function()
return require("noice").api.status.mode.get()
end,
cond = function()
return package.loaded["noice"] and require("noice").api.status.mode.has()
end,
"overseer",
},
},
lualine_x = {
@ -137,6 +143,15 @@ return {
},
},
lualine_y = {
{
-- Macro recording status
function()
return require("noice").api.status.mode.get()
end,
cond = function()
return package.loaded["noice"] and require("noice").api.status.mode.has()
end,
},
{ "searchcount" },
{ "location" },
{

View file

@ -35,12 +35,8 @@ return {
["<ESC>"] = actions.close,
["<C-q>"] = actions.send_to_qflist + actions.open_qflist,
["<M-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
["<c-t>"] = function(...)
return require("trouble.providers.telescope").open_with_trouble(...)
end,
["<a-t>"] = function(...)
return require("trouble.providers.telescope").open_selected_with_trouble(...)
end,
["<c-t>"] = require("trouble.sources.telescope").open,
["<a-t>"] = require("trouble.sources.telescope").open,
},
},
},