mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(lualine): cleaner conditional
This commit is contained in:
parent
0cfa49f4b4
commit
79b10b2f23
1 changed files with 5 additions and 3 deletions
|
|
@ -199,9 +199,11 @@ return {
|
||||||
|
|
||||||
-- do not add trouble symbols if aerial is enabled
|
-- do not add trouble symbols if aerial is enabled
|
||||||
-- And allow it to be overriden for some buffer types (see autocmds)
|
-- 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
|
if
|
||||||
trouble_lualine_enabled = trouble_lualine_enabled and vim.g.trouble_lualine
|
vim.g.trouble_luline_enabed ~= false
|
||||||
if trouble_lualine_enabled and LazyVim.has("trouble.nvim") then
|
and vim.b.trouble_lualine_enabled ~= false
|
||||||
|
and LazyVim.has("trouble.nvim")
|
||||||
|
then
|
||||||
local trouble = require("trouble")
|
local trouble = require("trouble")
|
||||||
local symbols = trouble.statusline
|
local symbols = trouble.statusline
|
||||||
and trouble.statusline({
|
and trouble.statusline({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue