nvim: treesitter.configs has stopped working
This commit is contained in:
@@ -2,13 +2,9 @@ return {
|
|||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
config = function()
|
config = function()
|
||||||
local configs = require('nvim-treesitter.configs')
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = { 'c' },
|
||||||
configs.setup {
|
callback = function() vim.treesitter.start() end,
|
||||||
ensure_installed = { 'c', 'cpp', 'lua', 'vimdoc', 'luadoc', 'vim', 'markdown' },
|
})
|
||||||
sync_install = false,
|
|
||||||
highlight = { enable = true },
|
|
||||||
indent = { enable = false }
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user