mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(lualine): allow for trouble_lualine to be overriden on buffer
This commit is contained in:
parent
d6561fd27c
commit
0cfa49f4b4
1 changed files with 4 additions and 1 deletions
|
|
@ -198,7 +198,10 @@ return {
|
|||
}
|
||||
|
||||
-- do not add trouble symbols if aerial is enabled
|
||||
if vim.g.trouble_lualine and LazyVim.has("trouble.nvim") then
|
||||
-- And allow it to be overriden for some buffer types (see autocmds)
|
||||
local trouble_lualine_enabled = vim.b.trouble_lualine == nil or vim.b.trouble_lualine
|
||||
trouble_lualine_enabled = trouble_lualine_enabled and vim.g.trouble_lualine
|
||||
if trouble_lualine_enabled and LazyVim.has("trouble.nvim") then
|
||||
local trouble = require("trouble")
|
||||
local symbols = trouble.statusline
|
||||
and trouble.statusline({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue