Refact: change loading method
This commit is contained in:
parent
171c63a070
commit
ebdb4420b6
@ -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
|
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||||
ensure_installed = {"python", "css", "html", "lua", "javascript", "vue", "c", "markdown", "rst"},
|
ensure_installed = {"python", "css", "html", "lua", "javascript", "vue", "c", "markdown", "rst"},
|
||||||
highlight = {
|
highlight = {
|
||||||
|
Loading…
Reference in New Issue
Block a user