ucpr/dotfiles

バッファを開くたびに treesitter の parser のダウンロードが実行されてしまう

Closed this issue · 1 comments

why

https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#changing-the-parser-install-directory

これでした。解決

local pasers_path = vim.fn.expand("$HOME/.cache/nvim/treesitter/parsers")
vim.opt.runtimepath:append(pasers_path)

require 'nvim-treesitter.configs'.setup {
  parser_install_dir = pasers_path,
 ...
}