diff options
author | luetage <[email protected]> | 2021-09-09 02:43:30 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-08 20:43:30 -0400 |
commit | 08345170081b5882535eaf32406a9c0e1b0a6f56 (patch) | |
tree | d6425557c98416119730cd9ab0607517dc3accf1 /lua/core/lualine/components.lua | |
parent | 6974e109c67e28284ca7f12614bb16655288bd16 (diff) |
Show treesitter icon only with supported filetype (#1512)
Diffstat (limited to 'lua/core/lualine/components.lua')
-rw-r--r-- | lua/core/lualine/components.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/core/lualine/components.lua b/lua/core/lualine/components.lua index 5d240f46..c6800f49 100644 --- a/lua/core/lualine/components.lua +++ b/lua/core/lualine/components.lua @@ -71,7 +71,8 @@ return { }, treesitter = { function() - if next(vim.treesitter.highlighter.active) then + local b = vim.api.nvim_get_current_buf() + if next(vim.treesitter.highlighter.active[b]) then return "  " end return "" |