mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
- move parser list in `parsers.lua` - most `ft` variable where changed to `lang`, `ft` is only used on autocmd binding, and lang is used for everything else. Functions have been defined to make the switch between `ft` and `lang`
21 lines
444 B
VimL
21 lines
444 B
VimL
" Last Change: 2020 avril 25
|
|
|
|
if exists('g:loaded_nvim_treesitter')
|
|
finish
|
|
endif
|
|
|
|
augroup NvimTreesitter
|
|
augroup END
|
|
|
|
let g:loaded_nvim_treesitter = 1
|
|
|
|
lua << EOF
|
|
ts_installable_parsers = function()
|
|
return table.concat(require'nvim-treesitter.parsers'.available_parsers(), '\n')
|
|
end
|
|
ts_available_modules = function()
|
|
return table.concat(require'nvim-treesitter.configs'.available_modules(), '\n')
|
|
end
|
|
require'nvim-treesitter'.setup()
|
|
EOF
|