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