integrate trouble with lualine
This commit is contained in:
parent
ddfe595f6f
commit
956c700c71
1 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
|
@ -38,5 +40,22 @@ require('lualine').setup {
|
||||||
tabline = {},
|
tabline = {},
|
||||||
winbar = {},
|
winbar = {},
|
||||||
inactive_winbar = {},
|
inactive_winbar = {},
|
||||||
extensions = {}
|
extensions = {},
|
||||||
|
opts = function(_, opts)
|
||||||
|
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",
|
||||||
|
})
|
||||||
|
table.insert(opts.sections.lualine_c, {
|
||||||
|
symbols.get,
|
||||||
|
cond = symbols.has,
|
||||||
|
})
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue