2020-04-25 16:35:10 +02:00
|
|
|
" Last Change: 2020 avril 25
|
2020-04-19 14:19:56 +02:00
|
|
|
|
|
|
|
|
if exists('g:loaded_nvim_treesitter')
|
|
|
|
|
finish
|
|
|
|
|
endif
|
|
|
|
|
|
2020-04-22 11:13:05 +02:00
|
|
|
augroup NvimTreesitter
|
|
|
|
|
augroup END
|
|
|
|
|
|
|
|
|
|
let g:loaded_nvim_treesitter = 1
|
|
|
|
|
|
2020-04-21 23:40:23 +02:00
|
|
|
lua << EOF
|
|
|
|
|
ts_installable_parsers = function()
|
2020-06-20 12:21:42 +02:00
|
|
|
return table.concat(require'nvim-treesitter.parsers'.available_parsers(), '\n')
|
2020-04-22 11:13:05 +02:00
|
|
|
end
|
|
|
|
|
ts_available_modules = function()
|
|
|
|
|
return table.concat(require'nvim-treesitter.configs'.available_modules(), '\n')
|
2020-04-21 23:40:23 +02:00
|
|
|
end
|
2020-04-22 11:13:05 +02:00
|
|
|
require'nvim-treesitter'.setup()
|
2020-04-21 23:40:23 +02:00
|
|
|
EOF
|