Merge
This commit is contained in:
Zacharias-Brohn
2026-01-15 23:14:17 +01:00
4 changed files with 27 additions and 24 deletions
+16 -13
View File
@@ -1,13 +1,16 @@
require'nvim-treesitter.configs'.setup {
ensure_installed = "all",
ignore_install = { "ipkg" },
sync_install = true,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = {
enable = true,
},
}
local treesitter = require'nvim-treesitter'
treesitter.setup {}
vim.api.nvim_create_autocmd('FileType', {
callback = function(args)
local has_parser = pcall(vim.treesitter.get_parser, args.buf)
if not has_parser then
return
end
vim.treesitter.start()
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
})