diff options
| author | kylo252 <[email protected]> | 2022-08-29 14:35:15 +0200 | 
|---|---|---|
| committer | kylo252 <[email protected]> | 2022-08-29 14:35:15 +0200 | 
| commit | 439e0c205a4c09545f08816ab5100fb5d9a93d3b (patch) | |
| tree | 4d3767b7e921dd707fe859b98bbaa5081fce205c /lua/lvim/core/lualine/components.lua | |
| parent | 47e4e5b83808f784010aa480753beaaef16ac579 (diff) | |
| parent | df84e4ecce5a7c8838fd21d5de939128f3214ef4 (diff) | |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/core/lualine/components.lua')
| -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 = { | 
