folke / lazy.nvim

💤 A modern plugin manager for Neovim
https://lazy.folke.io/
Apache License 2.0
14.6k stars 353 forks source link

bug: Treesitter re-compiling all treesitter modules on every startup #582

Closed lynndylanhurley closed 1 year ago

lynndylanhurley commented 1 year ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.9.0-dev-3678+g350747461-dirty

Operating system/version

MacOS 11.5

Describe the bug

Every time I open nvim, all 144 treesitter parsers are recompiled. It takes like 60 seconds and it's driving me insane.

Steps To Reproduce

  1. Start neovim

Expected Behavior

Ideally this should only happen when necessary. Before last week it would only update the parsers once every few days as they became outdated.

Repro

Here is my Lazy config for treesitter:

return {
  'nvim-treesitter/nvim-treesitter',
  lazy = false,
  version = nil,
  -- build = ':TSUpdate',
  config = function()
    require'nvim-treesitter.configs'.setup {
      ensure_installed = "all",
      ignore_install = { "phpdoc" },
      context_commentstring = {
        enable = true
      },
      highlight = {
        use_languagetree = true,
        enable = true,
        disable = function(lang, buf)
          local max_filesize = 100 * 1024 -- 100 KB
          local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
          if ok and stats and stats.size > max_filesize then
            return true
          end
        end,
      },
      indent = {
        enable = true
      },
      refactor = {
        highlight_definitions = { enable = false },
        highlight_current_scope = { enable = false }
      },
    }
  end
}

Note that I disabled build = ':TSUpdate in an attempt to fix this, but it did not work.

I added the version = nil param after seeing a suggestion from someone with a similar issue, but it also did not resolve the issue.

carrascomj commented 1 year ago

I have the same problem on nvim v0.8.3 (Linux), also commenting the build attribute. I tried downgrading treesitter to a previous tag but it did not work, so it might be a Lazy regression.

carrascomj commented 1 year ago

I solved by removing both the nvim data folder and the nvim cache like it was said in this comment https://github.com/folke/lazy.nvim/discussions/153#discussioncomment-4493537. That discussion is the same as this issue, I think.

lynndylanhurley commented 1 year ago

Hi @carrascomj , can you please explain exactly which folders those are? I tried deleting the directory at ~/.local/share/nvim/lazy but it did not resolve the issue.

I've narrowed down all of the dependencies to Lazy.nvim itself. Once I update this single dependency, I start seeing the issue.

carrascomj commented 1 year ago

I did

cd ~/.local/share/nvim
rm -r *
# check your XDG_* env vars for this
cd ~/.cache/nvim
rm -r *

Then I open neovim and Lazy took care of everything.

luisiacc commented 1 year ago

I've done all things listed here but nothing seems to fix the issue. Some few times it doesn't do it, but in those times whenever I open a buffer, it doesn't show any highlights, I have to manually set :TSEnable highlight.

folke commented 1 year ago

Can someone share a repro.lua or their full config?

The cache implementation completely changed and should no longer cause these types of issues (not even sure it did before).

@lynndylanhurley were you able to resolve this? If so, what did you have to do?

Also version = nil in Lua is exactly the same as not specifying anything. If you use version = "*" in the lazy defaults config, then you should do version = false to get the latest version for nvim-treesitter

luisiacc commented 1 year ago

this is my full config: https://github.com/luisiacc/nvim-config

Here lazy.nvim is initiated: https://github.com/luisiacc/nvim-config/blob/main/lazyplugins.lua

This is the whole plugin list: https://github.com/luisiacc/nvim-config/blob/main/lua/plugins.lua

This is the nvim-treesiter config: https://github.com/luisiacc/nvim-config/blob/main/lua/acc_plugs/nvim-treesitter.lua

folke commented 1 year ago

@luisiacc what OS are you on?

folke commented 1 year ago

@luisiacc what's the output of:

vim.pretty_print(vim.api.nvim_get_runtime_file("parser", true))
luisiacc commented 1 year ago

WSL 2 (Ubuntu 20.04) on windows 11.

Output of the command:

vim.pretty_print(vim.api.nvim_get_runtime_file("parser", true))

06:18:30 msg_show vim.pretty_print(vim.api.nvim_get_runtime_file("parser", true)) { "/home/acc/.local/share/nvim/lazy/nvim-treesitter/parser", "/usr/local/lib/nvim/parser" }

Some extra info in case it matters:

I used Plug previosly, this didn't happened, I switched to lazy.nvim like a week and a half ago.

Also, these are the messages that are displayed when compiling:

06:15:23 msg_show [nvim-treesitter] [0/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [0/33] Extracting tree-sitter-jsonc...
06:15:23 msg_show [nvim-treesitter] [0/33] Compiling...
06:15:23 msg_show [nvim-treesitter] [1/33] Treesitter parser for jsonc has been installed
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-json5...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-lua...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-jsdoc...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-json...
06:15:23 msg_show [nvim-treesitter] [1/33] Compiling...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-gitattributes...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Compiling...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-html...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-gomod...
06:15:23 msg_show [nvim-treesitter] [1/33] Compiling...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-scheme...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Compiling...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-graphql...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-help...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-cmake...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Compiling...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-make...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-css...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-scss...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-gitcommit...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-yaml...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-go...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-python...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-http...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-git_rebase...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-bash...
06:15:23 msg_show [nvim-treesitter] [1/33] Creating temporary directory
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-javascript...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-rst...
06:15:23 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-c...
06:15:24 msg_show [nvim-treesitter] [1/33] Compiling...
06:15:24 msg_show [nvim-treesitter] [1/33] Extracting tree-sitter-vim...
06:15:24 msg_show [nvim-treesitter] [2/33] Treesitter parser for json has been installed
06:15:24 msg_show [nvim-treesitter] [2/33] Compiling...
06:15:24 msg_show [nvim-treesitter] [2/33] Creating temporary directory
06:15:24 msg_show [nvim-treesitter] [2/33] Extracting tree-sitter-cpp...
06:15:24 msg_show [nvim-treesitter] [2/33] Extracting tree-sitter-rust...
06:15:24 msg_show [nvim-treesitter] [2/33] Compiling...
06:15:24 msg_show [nvim-treesitter] [3/33] Treesitter parser for gitattributes has been installed
06:15:24 msg_show [nvim-treesitter] [3/33] Creating temporary directory
06:15:24 msg_show [nvim-treesitter] [3/33] Compiling...
06:15:24 msg_show [nvim-treesitter] [4/33] Treesitter parser for gomod has been installed
06:15:24 msg_show [nvim-treesitter] [4/33] Extracting tree-sitter-markdown_inline...
06:15:24 msg_show [nvim-treesitter] [5/33] Treesitter parser for lua has been installed
06:15:24 msg_show [nvim-treesitter] [5/33] Compiling...
06:15:24 msg_show [nvim-treesitter] [5/33] Extracting tree-sitter-markdown...
06:15:24 msg_show [nvim-treesitter] [6/33] Treesitter parser for jsdoc has been installed
06:15:24 msg_show [nvim-treesitter] [6/33] Extracting tree-sitter-typescript...
06:15:24 msg_show [nvim-treesitter] [6/33] Compiling...
06:15:24 msg_show [nvim-treesitter] [6/33] Extracting tree-sitter-tsx...
06:15:24 msg_show [nvim-treesitter] [6/33] Compiling...
06:15:24 msg_show [nvim-treesitter] [7/33] Treesitter parser for scheme has been installed
06:15:24 msg_show [nvim-treesitter] [7/33] Compiling...
06:15:25 msg_show [nvim-treesitter] [8/33] Treesitter parser for graphql has been installed
06:15:25 msg_show [nvim-treesitter] [8/33] Compiling...
06:15:25 msg_show [nvim-treesitter] [9/33] Treesitter parser for json5 has been installed
06:15:25 msg_show [nvim-treesitter] [10/33] Treesitter parser for help has been installed
06:15:25 msg_show [nvim-treesitter] [10/33] Compiling...
06:15:25 msg_show [nvim-treesitter] [11/33] Treesitter parser for git_rebase has been installed
06:15:25 msg_show [nvim-treesitter] [12/33] Treesitter parser for scss has been installed
06:15:25 msg_show [nvim-treesitter] [12/33] Compiling...
06:15:26 msg_show [nvim-treesitter] [13/33] Treesitter parser for cmake has been installed
06:15:26 msg_show [nvim-treesitter] [14/33] Treesitter parser for css has been installed
06:15:26 msg_show [nvim-treesitter] [15/33] Treesitter parser for http has been installed
06:15:26 msg_show [nvim-treesitter] [16/33] Treesitter parser for html has been installed
06:15:26 msg_show [nvim-treesitter] [17/33] Treesitter parser for rst has been installed
06:15:26 msg_show [nvim-treesitter] [18/33] Treesitter parser for yaml has been installed
06:15:27 msg_show [nvim-treesitter] [19/33] Treesitter parser for bash has been installed
06:15:27 msg_show [nvim-treesitter] [20/33] Treesitter parser for javascript has been installed
06:15:27 msg_show [nvim-treesitter] [21/33] Treesitter parser for go has been installed
06:15:28 msg_show [nvim-treesitter] [22/33] Treesitter parser for make has been installed
06:15:28 msg_show [nvim-treesitter] [23/33] Treesitter parser for c has been installed
06:15:28 msg_show [nvim-treesitter] [24/33] Treesitter parser for markdown_inline has been installed
06:15:28 msg_show [nvim-treesitter] [25/33] Treesitter parser for python has been installed
06:15:28 msg_show [nvim-treesitter] [26/33] Treesitter parser for markdown has been installed
06:15:28 msg_show [nvim-treesitter] [27/33] Treesitter parser for typescript has been installed
06:15:28 msg_show [nvim-treesitter] [28/33] Treesitter parser for vim has been installed
06:15:29 msg_show [nvim-treesitter] [29/33] Treesitter parser for tsx has been installed
06:15:29 msg_show [nvim-treesitter] [30/33] Treesitter parser for cpp has been installed
06:15:30 msg_show [nvim-treesitter] [31/33] Treesitter parser for gitcommit has been installed
06:15:30 msg_show [nvim-treesitter] [32/33] Treesitter parser for rust has been installed
06:15:35 msg_show [nvim-treesitter] [32/33] Creating temporary directory
06:15:35 msg_show [nvim-treesitter] [32/33] Extracting tree-sitter-hcl...
06:15:35 msg_show [nvim-treesitter] [32/33] Compiling...
06:15:37 msg_show [nvim-treesitter] [33/33] Treesitter parser for hcl has been installed
folke commented 1 year ago

What about the output for:

local configs = require "nvim-treesitter.configs"
local utils = require "nvim-treesitter.utils"

local data = {
  install_dir = configs.get_parser_install_dir(),
  cache_dir = utils.get_cache_dir(),
  info_dir = configs.get_parser_info_dir(),
  ignored = configs.get_ignored_parser_installs(),
  win32 = vim.fn.has "win32",
  yaml = {
    found = vim.api.nvim_get_runtime_file("parser/yaml.so", true) or {},
  },
}

vim.pretty_print(data)
luisiacc commented 1 year ago
06:40:36 msg_show   so %   cache_dir = "/home/acc/.local/share/nvim",
06:40:36 msg_show   so %   ignored = {},
06:40:36 msg_show   so %   info_dir = "/home/acc/.vim/plugged/nvim-treesitter/parser-info",
06:40:36 msg_show   so %   install_dir = "/home/acc/.vim/plugged/nvim-treesitter/parser",
06:40:36 msg_show   so %   win32 = 0,
06:40:36 msg_show   so %   yaml = {
06:40:36 msg_show   so %     found = { "/home/acc/.local/share/nvim/lazy/nvim-treesitter/parser/yaml.so" }
06:40:36 msg_show   so %   }
06:40:36 msg_show   so % }
folke commented 1 year ago

Can you add that code to the top of https://github.com/luisiacc/nvim-config/blob/main/lua/acc_plugs/nvim-treesitter.lua

And show me what it prints then?

luisiacc commented 1 year ago
06:44:16 msg_show   so %   cache_dir = "/home/acc/.local/share/nvim",
06:44:16 msg_show   so %   ignored = {},
06:44:16 msg_show   so %   info_dir = "/home/acc/.local/share/nvim/lazy/nvim-treesitter/parser-info",
06:44:16 msg_show   so %   install_dir = "/home/acc/.local/share/nvim/lazy/nvim-treesitter/parser",
06:44:16 msg_show   so %   win32 = 0,
06:44:16 msg_show   so %   yaml = {
06:44:16 msg_show   so %     found = { "/home/acc/.local/share/nvim/lazy/nvim-treesitter/parser/yaml.so" }
06:44:16 msg_show   so %   }
06:44:16 msg_show   so % }
folke commented 1 year ago

Ok, so this output is correct, but the previous one isn't.

Are you still initiallzing plug in your config? Those paths should not be on the rtp

folke commented 1 year ago

What does vim.pretty_print(vim.opt.rtp:get()) show? After your config is loaded and what does it show when inside that file?

luisiacc commented 1 year ago

Yes I was. I just removed the .vim/plugged folder and now it doesn't do it anymore. So now it's good. So apparently this is a problem when migrating from other plugin managers. Anyways big thank you @folke !!

luisiacc commented 1 year ago

What does vim.pretty_print(vim.opt.rtp:get()) show? After your config is loaded and what does it show when inside that file?

06:47:46 msg_show   vim.pretty_print(vim.opt.rtp:get()) { "/home/acc/.config/nvim", "/home/acc/.local/share/nvim/lazy/lazy.nvim", "/home/acc/.local/share/nvim/lazy/noice.nvim", "/home/acc/.local/share/nvim/lazy/nui.nvim", "/home/acc/.local/share/nvim/lazy/vim-surround", "/home/acc/.local/share/nvim/lazy/popup.nvim", "/home/acc/.local/share/nvim/lazy/nightfox.nvim", "/home/acc/.local/share/nvim/lazy/vim-dadbod", "/home/acc/.local/share/nvim/lazy/vim-repeat", "/home/acc/.local/share/nvim/lazy/cmp-nvim-lsp", "/home/acc/.local/share/nvim/lazy/rust-tools.nvim", "/home/acc/.local/share/nvim/lazy/null-ls.nvim", "/home/acc/.local/share/nvim/lazy/nvim-lsp-ts-utils", "/home/acc/.local/share/nvim/lazy/nvim-lspconfig", "/home/acc/.local/share/nvim/lazy/telescope.nvim", "/home/acc/.local/share/nvim/lazy/vim-gutentags", "/home/acc/.local/share/nvim/lazy/edge", "/home/acc/.local/share/nvim/lazy/refactoring.nvim", "/home/acc/.local/share/nvim/lazy/telescope-project.nvim", "/home/acc/.local/share/nvim/lazy/mason-lspconfig.nvim", "/home/acc/.local/share/nvim/lazy/mason.nvim", "/home/acc/.local/share/nvim/lazy/vim-fugitive", "/home/acc/.local/share/nvim/lazy/vim-markdown", "/home/acc/.local/share/nvim/lazy/dressing.nvim", "/home/acc/.local/share/nvim/lazy/inc-rename.nvim", "/home/acc/.local/share/nvim/lazy/indent-blankline.nvim", "/home/acc/.local/share/nvim/lazy/nvim-tree.lua", "/home/acc/.local/share/nvim/lazy/nvim-treesitter-endwise", "/home/acc/.local/share/nvim/lazy/feline.nvim", "/home/acc/.local/share/nvim/lazy/editorconfig-vim", "/home/acc/.local/share/nvim/lazy/vim-test", "/home/acc/.local/share/nvim/lazy/playground", "/home/acc/.local/share/nvim/lazy/nvim-ts-rainbow", "/home/acc/.local/share/nvim/lazy/nvim-navic", "/home/acc/.local/share/nvim/lazy/toggleterm.nvim", "/home/acc/.local/share/nvim/lazy/vim-startify", "/home/acc/.local/share/nvim/lazy/lightspeed.nvim", "/home/acc/.local/share/nvim/lazy/todo-comments.nvim", "/home/acc/.local/share/nvim/lazy/vim-visual-multi", "/home/acc/.local/share/nvim/lazy/harpoon", "/home/acc/.local/share/nvim/lazy/sqlite.lua", "/home/acc/.local/share/nvim/lazy/colorbuddy.nvim", "/home/acc/.local/share/nvim/lazy/poimandres.nvim", "/home/acc/.local/share/nvim/lazy/lush.nvim", "/home/acc/.local/share/nvim/lazy/nvim-juliana", "/home/acc/.local/share/nvim/lazy/gruvbox-material", "/home/acc/.local/share/nvim/lazy/fzf.vim", "/home/acc/.local/share/nvim/lazy/github-colors", "/home/acc/.local/share/nvim/lazy/nvim-web-devicons", "/home/acc/.local/share/nvim/lazy/plenary.nvim", "/home/acc/.local/share/nvim/lazy/nvim-spectre", "/home/acc/.local/share/nvim/lazy/django-plus.vim", "/home/acc/.local/share/nvim/lazy/one_monokai.nvim", "/home/acc/.local/share/nvim/lazy/nvim-snippy", "/home/acc/.local/share/nvim/lazy/tokyodark.nvim", "/home/acc/.local/share/nvim/lazy/nvim-noirbuddy", "/home/acc/.local/share/nvim/lazy/nvim-ts-autotag", "/home/acc/.local/share/nvim/lazy/nvim-treesitter", "/home/acc/.local/share/nvim/lazy/telescope-fzf-native.nvim", "/home/acc/.local/share/nvim/lazy/monokai.nvim", "/home/acc/.local/share/nvim/lazy/kimbox", "/home/acc/.local/share/nvim/lazy/tokyonight.nvim", "/home/acc/.local/share/nvim/lazy/vim-nightfly-guicolors", "/home/acc/.local/share/nvim/lazy/telescope-frecency.nvim", "/home/acc/.local/share/nvim/lazy/lspkind-nvim", "/home/acc/.local/share/nvim/lazy/asyncrun.vim", "/home/acc/.local/share/nvim/lazy/rose-pine", "/home/acc/.local/share/nvim/lazy/oh-lucy.nvim", "/home/acc/.local/share/nvim/lazy/darcula-solid.nvim", "/home/acc/.local/share/nvim/lazy/catppuccin", "/home/acc/.local/share/nvim/lazy/github-nvim-theme", "/home/acc/.local/share/nvim/lazy/fzf", "/home/acc/.local/share/nvim/lazy/vscode.nvim", "/home/acc/projects/the-matrix-theme", "/home/acc/.local/share/nvim/lazy/gruvbox-baby", "/home/acc/projects/handmade-hero-theme.nvim", "/home/acc/.local/share/nvim/lazy/nvim-colorizer.lua", "/home/acc/.local/share/nvim/lazy/copilot.lua", "/home/acc/.local/share/nvim/lazy/vim-snippets", "/home/acc/.local/share/nvim/lazy/nord-vim", "/usr/local/share/nvim/runtime", "/usr/local/share/nvim/runtime/pack/dist/opt/matchit", "/usr/local/lib/nvim", "/home/acc/.local/share/nvim/lazy/cmp-nvim-lsp/after", "/home/acc/.local/share/nvim/lazy/playground/after", "/home/acc/.local/share/nvim/lazy/poimandres.nvim/after", "/home/acc/.local/share/nvim/lazy/django-plus.vim/after", "/home/acc/.local/share/nvim/lazy/one_monokai.nvim/after", "/home/acc/.local/share/nvim/lazy/tokyodark.nvim/after", "/home/acc/.local/share/nvim/lazy/catppuccin/after", "/home/acc/.local/share/nvim/lazy/gruvbox-baby/after", "/home/acc/projects/handmade-hero-theme.nvim/after", "/home/acc/.config/nvim/after", "/home/acc/.local/state/nvim/lazy/readme" }
folke commented 1 year ago

And after you loaded your config? I'll add some special handling or at least some health checks for plugged and others

luisiacc commented 1 year ago

And after you loaded your config?

what do you mean?

folke commented 1 year ago

I mean when plug is enabled, what does the rtp look like after that?

luisiacc commented 1 year ago

vim.pretty_print(vim.opt.rtp:get())

06:59:24 msg_show   vim.pretty_print(vim.opt.rtp:get()) { "/home/acc/.local/share/nvim/lazy/lazy.nvim", "/home/acc/.vim", "/home/acc/.vim/plugged/undotree", "/home/acc/.vim/plugged/dressing.nvim", "/home/acc/.vim/plugged/popup.nvim", "/home/acc/.vim/plugged/plenary.nvim", "/home/acc/.vim/plugged/telescope.nvim", "/home/acc/.vim/plugged/telescope-fzf-native.nvim", "/home/acc/.vim/plugged/telescope-project.nvim", "/home/acc/.vim/plugged/sqlite.lua", "/home/acc/.vim/plugged/telescope-frecency.nvim", "/home/acc/.vim/plugged/copilot.vim", "/home/acc/.vim/plugged/fzf", "/home/acc/.vim/plugged/fzf.vim", "/home/acc/.vim/plugged/gitsigns.nvim", "/home/acc/.vim/plugged/django-plus.vim", "/home/acc/.vim/plugged/noice.nvim", "/home/acc/.vim/plugged/nui.nvim", "/home/acc/.vim/plugged/vim-smoothie", "/home/acc/.vim/plugged/nvim-treesitter", "/home/acc/.vim/plugged/nvim-treesitter-endwise", "/home/acc/.vim/plugged/nvim-ts-autotag", "/home/acc/.vim/plugged/playground", "/home/acc/.vim/plugged/todo-comments.nvim", "/home/acc/.vim/plugged/nvim-navic", "/home/acc/.vim/plugged/nvim-ts-rainbow", "/home/acc/.vim/plugged/nvim-lspconfig", "/home/acc/.vim/plugged/inc-rename.nvim", "/home/acc/.vim/plugged/mason.nvim", "/home/acc/.vim/plugged/mason-lspconfig.nvim", "/home/acc/.vim/plugged/nvim-lsp-ts-utils", "/home/acc/.vim/plugged/rust-tools.nvim", "/home/acc/.vim/plugged/nvim-dap", "/home/acc/.vim/plugged/nvim-dap-ui", "/home/acc/.vim/plugged/nvim-dap-virtual-text", "/home/acc/.vim/plugged/nvim-dap-python", "/home/acc/.vim/plugged/null-ls.nvim", "/home/acc/.vim/plugged/nvim-spectre", "/home/acc/.vim/plugged/cmp-nvim-lsp", "/home/acc/.vim/plugged/cmp-nvim-lua", "/home/acc/.vim/plugged/cmp-buffer", "/home/acc/.vim/plugged/cmp-path", "/home/acc/.vim/plugged/cmp-cmdline", "/home/acc/.vim/plugged/nvim-cmp", "/home/acc/.vim/plugged/cmp-calc", "/home/acc/.vim/plugged/cmp-snippy", "/home/acc/.vim/plugged/nvim-snippy", "/home/acc/.vim/plugged/lspkind-nvim", "/home/acc/.vim/plugged/vim-snippets", "/home/acc/.vim/plugged/nvim-autopairs", "/home/acc/.vim/plugged/vim-test", "/home/acc/.vim/plugged/lightspeed.nvim", "/home/acc/.vim/plugged/vim-visual-multi", "/home/acc/.vim/plugged/diffview.nvim", "/home/acc/.vim/plugged/Comment.nvim", "/home/acc/.vim/plugged/vim-gutentags", "/home/acc/.vim/plugged/vim-dadbod", "/home/acc/.vim/plugged/vim-surround", "/home/acc/.vim/plugged/vim-repeat", "/home/acc/.vim/plugged/vim-fugitive", "/home/acc/.vim/plugged/vim-markdown", "/home/acc/.vim/plugged/indent-blankline.nvim", "/home/acc/.vim/plugged/asyncrun.vim", "/home/acc/.vim/plugged/nvim-colorizer.lua", "/home/acc/projects/gruvbox-baby", "/home/acc/projects/the-matrix-theme", "/home/acc/projects/github-nvim-theme", "/home/acc/projects/handmade-hero-theme.nvim", "/home/acc/.vim/plugged/lush.nvim", "/home/acc/.vim/plugged/darcula-solid.nvim", "/home/acc/.vim/plugged/monokai.nvim", "/home/acc/.vim/plugged/colorbuddy.nvim", "/home/acc/.vim/plugged/nvim-noirbuddy", "/home/acc/.vim/plugged/nord-vim", "/home/acc/.vim/plugged/poimandres.nvim", "/home/acc/.vim/plugged/nvim-juliana", "/home/acc/.vim/plugged/catppuccin", "/home/acc/.vim/plugged/nightfox.nvim", "/home/acc/.vim/plugged/one_monokai.nvim", "/home/acc/.vim/plugged/edge", "/home/acc/.vim/plugged/vim-nightfly-guicolors", "/home/acc/.vim/plugged/tokyonight.nvim", "/home/acc/.vim/plugged/vscode.nvim", "/home/acc/.vim/plugged/github-colors", "/home/acc/.vim/plugged/rose-pine", "/home/acc/.vim/plugged/gruvbox-material", "/home/acc/.vim/plugged/oh-lucy.nvim", "/home/acc/.vim/plugged/tokyodark.nvim", "/home/acc/.vim/plugged/editorconfig-vim", "/home/acc/.vim/plugged/nvim-web-devicons", "/home/acc/.vim/plugged/nvim-tree.lua", "/home/acc/.vim/plugged/feline.nvim", "/home/acc/.vim/plugged/vim-startify", "/home/acc/.vim/plugged/toggleterm.nvim", "/home/acc/.vim/plugged/harpoon", "/home/acc/.vim/plugged/refactoring.nvim", "/home/acc/.config/nvim", "/home/acc/.local/share/nvim/lazy/gitsigns.nvim", "/home/acc/.local/share/nvim/lazy/cmp-snippy", "/home/acc/.local/share/nvim/lazy/cmp-calc", "/home/acc/.local/share/nvim/lazy/cmp-cmdline", "/home/acc/.local/share/nvim/lazy/cmp-path", "/home/acc/.local/share/nvim/lazy/cmp-buffer", "/home/acc/.local/share/nvim/lazy/cmp-nvim-lua", "/home/acc/.local/share/nvim/lazy/nvim-cmp", "/home/acc/.local/share/nvim/lazy/nvim-autopairs", "/home/acc/.local/share/nvim/lazy/Comment.nvim", "/home/acc/.local/share/nvim/lazy/noice.nvim", "/home/acc/.local/share/nvim/lazy/kimbox", "/home/acc/.local/share/nvim/lazy/django-plus.vim", "/home/acc/.local/share/nvim/lazy/vim-test", "/home/acc/.local/share/nvim/lazy/nightfox.nvim", "/home/acc/.local/share/nvim/lazy/harpoon", "/home/acc/.local/share/nvim/lazy/nvim-ts-rainbow", "/home/acc/.local/share/nvim/lazy/one_monokai.nvim", "/home/acc/.local/share/nvim/lazy/lightspeed.nvim", "/home/acc/.local/share/nvim/lazy/tokyonight.nvim", "/home/acc/.local/share/nvim/lazy/toggleterm.nvim", "/home/acc/.local/share/nvim/lazy/vim-nightfly-guicolors", "/home/acc/.local/share/nvim/lazy/edge", "/home/acc/.local/share/nvim/lazy/nui.nvim", "/home/acc/.local/share/nvim/lazy/vim-visual-multi", "/home/acc/.local/share/nvim/lazy/fzf.vim", "/home/acc/.local/share/nvim/lazy/fzf", "/home/acc/.local/share/nvim/lazy/vim-startify", "/home/acc/.local/share/nvim/lazy/telescope.nvim", "/home/acc/.local/share/nvim/lazy/darcula-solid.nvim", "/home/acc/.local/share/nvim/lazy/feline.nvim", "/home/acc/.local/share/nvim/lazy/monokai.nvim", "/home/acc/.local/share/nvim/lazy/lush.nvim", "/home/acc/.local/share/nvim/lazy/telescope-fzf-native.nvim", "/home/acc/.local/share/nvim/lazy/telescope-project.nvim", "/home/acc/.local/share/nvim/lazy/nvim-tree.lua", "/home/acc/.local/share/nvim/lazy/refactoring.nvim", "/home/acc/.local/share/nvim/lazy/telescope-frecency.nvim", "/home/acc/.local/share/nvim/lazy/colorbuddy.nvim", "/home/acc/.local/share/nvim/lazy/nvim-treesitter-endwise", "/home/acc/.local/share/nvim/lazy/asyncrun.vim", "/home/acc/.local/share/nvim/lazy/vim-dadbod", "/home/acc/.local/share/nvim/lazy/sqlite.lua", "/home/acc/.local/share/nvim/lazy/nvim-web-devicons", "/home/acc/.local/share/nvim/lazy/plenary.nvim", "/home/acc/.local/share/nvim/lazy/nvim-spectre", "/home/acc/.local/share/nvim/lazy/nvim-navic", "/home/acc/.local/share/nvim/lazy/cmp-nvim-lsp", "/home/acc/.local/share/nvim/lazy/rust-tools.nvim", "/home/acc/.local/share/nvim/lazy/mason-lspconfig.nvim", "/home/acc/.local/share/nvim/lazy/mason.nvim", "/home/acc/.local/share/nvim/lazy/null-ls.nvim", "/home/acc/.local/share/nvim/lazy/nvim-lsp-ts-utils", "/home/acc/.local/share/nvim/lazy/nvim-lspconfig", "/home/acc/.local/share/nvim/lazy/oh-lucy.nvim", "/home/acc/.local/share/nvim/lazy/tokyodark.nvim", "/home/acc/.local/share/nvim/lazy/popup.nvim", "/home/acc/.local/share/nvim/lazy/todo-comments.nvim", "/home/acc/.local/share/nvim/lazy/nvim-snippy", "/home/acc/.local/share/nvim/lazy/vim-repeat", "/home/acc/.local/share/nvim/lazy/nvim-juliana", "/home/acc/.local/share/nvim/lazy/nvim-colorizer.lua", "/home/acc/.local/share/nvim/lazy/editorconfig-vim", "/home/acc/.local/share/nvim/lazy/vim-snippets", "/home/acc/.local/share/nvim/lazy/vim-gutentags", "/home/acc/.local/share/nvim/lazy/indent-blankline.nvim", "/home/acc/.local/share/nvim/lazy/vscode.nvim", "/home/acc/.local/share/nvim/lazy/nvim-ts-autotag", "/home/acc/.local/share/nvim/lazy/nvim-treesitter", "/home/acc/.local/share/nvim/lazy/playground", "/home/acc/.local/share/nvim/lazy/gruvbox-baby", "/home/acc/.local/share/nvim/lazy/inc-rename.nvim", "/home/acc/.local/share/nvim/lazy/rose-pine", "/home/acc/.local/share/nvim/lazy/vim-surround", "/home/acc/.local/share/nvim/lazy/copilot.lua", "/home/acc/.local/share/nvim/lazy/nvim-noirbuddy", "/home/acc/.local/share/nvim/lazy/github-nvim-theme", "/home/acc/.local/share/nvim/lazy/gruvbox-material", "/home/acc/.local/share/nvim/lazy/nord-vim", "/home/acc/.local/share/nvim/lazy/vim-markdown", "/home/acc/.local/share/nvim/lazy/poimandres.nvim", "/home/acc/.local/share/nvim/lazy/dressing.nvim", "/home/acc/.local/share/nvim/lazy/vim-fugitive", "/home/acc/.local/share/nvim/lazy/github-colors", "/home/acc/.local/share/nvim/lazy/catppuccin", "/home/acc/.local/share/nvim/lazy/lspkind-nvim", "/usr/local/share/nvim/runtime", "/usr/local/share/nvim/runtime/pack/dist/opt/matchit", "/usr/local/lib/nvim", "/home/acc/.local/share/nvim/lazy/cmp-snippy/after", "/home/acc/.local/share/nvim/lazy/cmp-calc/after", "/home/acc/.local/share/nvim/lazy/cmp-cmdline/after", "/home/acc/.local/share/nvim/lazy/cmp-path/after", "/home/acc/.local/share/nvim/lazy/cmp-buffer/after", "/home/acc/.local/share/nvim/lazy/cmp-nvim-lua/after", "/home/acc/.local/share/nvim/lazy/django-plus.vim/after", "/home/acc/.local/share/nvim/lazy/one_monokai.nvim/after", "/home/acc/.local/share/nvim/lazy/cmp-nvim-lsp/after", "/home/acc/.local/share/nvim/lazy/tokyodark.nvim/after", "/home/acc/.local/share/nvim/lazy/playground/after", "/home/acc/.local/share/nvim/lazy/gruvbox-baby/after", "/home/acc/.local/share/nvim/lazy/poimandres.nvim/after", "/home/acc/.local/share/nvim/lazy/catppuccin/after", "/home/acc/.config/nvim/after", "/home/acc/.local/state/nvim/lazy/readme", "/home/acc/.vim/plugged/django-plus.vim/after", "/home/acc/.vim/plugged/playground/after", "/home/acc/.vim/plugged/cmp-nvim-lsp/after", "/home/acc/.vim/plugged/cmp-nvim-lua/after", "/home/acc/.vim/plugged/cmp-buffer/after", "/home/acc/.vim/plugged/cmp-path/after", "/home/acc/.vim/plugged/cmp-cmdline/after", "/home/acc/.vim/plugged/cmp-calc/after", "/home/acc/.vim/plugged/cmp-snippy/after", "/home/acc/projects/gruvbox-baby/after", "/home/acc/projects/handmade-hero-theme.nvim/after", "/home/acc/.vim/plugged/poimandres.nvim/after", "/home/acc/.vim/plugged/catppuccin/after", "/home/acc/.vim/plugged/one_monokai.nvim/after", "/home/acc/.vim/plugged/tokyodark.nvim/after", "/home/acc/.vim/after" }
demizer commented 9 months ago

This was happening to me for the last month after migrating to Lazy.nvim from Paq. Turns out, this line caused me much grief:

require("nvim-treesitter.configs").setup({
    parser_install_dir = "~/.config/nvim/treesitter", -- woopsie
})