mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
feat/refacto: add configs.lua, setup install
- 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`
This commit is contained in:
parent
37932fc3d3
commit
62ce7744db
5 changed files with 170 additions and 121 deletions
|
|
@ -4,6 +4,13 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue