Преглед на файлове

Show treesitter icon only with supported filetype (#1512)

luetage преди 3 години
родител
ревизия
0834517008
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      lua/core/lualine/components.lua

+ 2 - 1
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 ""