diff options
Diffstat (limited to 'lua/lvim/core')
| -rw-r--r-- | lua/lvim/core/lualine/components.lua | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/lua/lvim/core/lualine/components.lua b/lua/lvim/core/lualine/components.lua index 49a8ff81..5095cfb4 100644 --- a/lua/lvim/core/lualine/components.lua +++ b/lua/lvim/core/lualine/components.lua @@ -70,13 +70,13 @@ return {    },    treesitter = {      function() -      local b = vim.api.nvim_get_current_buf() -      if next(vim.treesitter.highlighter.active[b]) then -        return "" -      end -      return "" +      return "" +    end, +    color = function() +      local buf = vim.api.nvim_get_current_buf() +      local ts = vim.treesitter.highlighter.active[buf] +      return { fg = ts and not vim.tbl_isempty(ts) and colors.green or colors.red }      end, -    color = { fg = colors.green },      cond = conditions.hide_in_width,    },    lsp = { | 
