fix(lualine): only show one Lualine component for symbols

This commit is contained in:
Iordanis Petkakis 2024-06-07 12:22:59 +03:00
parent 119dcb949a
commit 4d7d1026fe
2 changed files with 29 additions and 25 deletions

View file

@ -104,6 +104,7 @@ return {
"nvim-lualine/lualine.nvim",
optional = true,
opts = function(_, opts)
if not vim.g.trouble_lualine then
table.insert(opts.sections.lualine_c, {
"aerial",
sep = " ", -- separator between symbols
@ -125,6 +126,7 @@ return {
-- Color the symbol icons.
colored = true,
})
end
end,
},
}

View file

@ -29,6 +29,7 @@ return {
"nvim-lualine/lualine.nvim",
optional = true,
opts = function(_, opts)
if not vim.g.trouble_lualine then
table.insert(opts.sections.lualine_c, {
function()
return require("nvim-navic").get_location()
@ -37,6 +38,7 @@ return {
return package.loaded["nvim-navic"] and require("nvim-navic").is_available()
end,
})
end
end,
},
}