mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
- configs.lua holds the `repositories` data - install health moved to health.lua - plugins loads _root.setup() on startup - install and list command are available through vim > use them with `:TSInstall lang` and `:TSInstallInfo`
17 lines
322 B
VimL
17 lines
322 B
VimL
" Last Change: 2020 avril 19
|
|
|
|
if exists('g:loaded_nvim_treesitter')
|
|
finish
|
|
endif
|
|
|
|
lua << EOF
|
|
ts_installable_parsers = function()
|
|
return table.concat(require'nvim-treesitter'.available_parsers(), '\n')
|
|
end
|
|
require'nvim-treesitter'._root.setup()
|
|
EOF
|
|
|
|
let g:loaded_nvim_treesitter = 1
|
|
|
|
augroup NvimTreesitter
|
|
augroup END
|