Refact: change loading method

This commit is contained in:
Bertrand Benjamin 2022-08-20 05:58:36 +02:00
parent 171c63a070
commit ebdb4420b6
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
require'nvim-treesitter.configs'.setup {
local status, ts = pcall(require, "nvim-treesitter.configs")
if (not status) then return end
ts.setup {
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
ensure_installed = {"python", "css", "html", "lua", "javascript", "vue", "c", "markdown", "rst"},
highlight = {