treesitter is cool

This commit is contained in:
2026-04-23 00:25:27 +02:00
parent 657764eab6
commit b4a88a9cb2
2 changed files with 16 additions and 8 deletions
+13 -8
View File
@@ -1,8 +1,13 @@
require("nvim-treesitter.config").setup { local treesitter = require "nvim-treesitter"
ensure_installed = "all",
sync_install = true, treesitter.install { "all" }
auto_install = true,
highlight = { enable = true, additional_vim_regex_highlighting = false }, local parsers = treesitter.get_installed()
indent = { enable = true, disable = {} },
autotag = { enable = true }, vim.api.nvim_create_autocmd("FileType", {
} pattern = parsers,
callback = function()
vim.treesitter.start()
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
})
+3
View File
@@ -66,6 +66,9 @@ return {
}, },
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
lazy = false,
branch = "main",
build = ":TSUpdate",
config = function() config = function()
require "config.treesitter" require "config.treesitter"
end, end,