mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-06-06 16:38:24 +02:00
14 lines
328 B
Lua
14 lines
328 B
Lua
local treesitter = require "nvim-treesitter"
|
|
|
|
treesitter.install { "all" }
|
|
|
|
local parsers = treesitter.get_installed()
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = parsers,
|
|
callback = function()
|
|
vim.treesitter.start()
|
|
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
|
end,
|
|
})
|