summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/lualine/components.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-09-09 20:48:47 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-09-09 20:48:47 +0200
commit81b5ea969f26c520c4da9248d5e6d9b6a32b709c (patch)
tree3a86af02c5dc80cb82c296aa72614131f04905b0 /.config/nvim/lua/core/lualine/components.lua
parent6a1732982287ef5aff2a6de171192b9e2bb90758 (diff)
Change compe to cmp package
Diffstat (limited to '.config/nvim/lua/core/lualine/components.lua')
-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 ""