summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/lualine
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/core/lualine')
-rw-r--r--.config/nvim/lua/core/lualine/components.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/lua/core/lualine/components.lua b/.config/nvim/lua/core/lualine/components.lua
index adae368..6af34fa 100644
--- a/.config/nvim/lua/core/lualine/components.lua
+++ b/.config/nvim/lua/core/lualine/components.lua
@@ -85,7 +85,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 ""