1
0
Fork 0
dotfiles/nvim/lua/plugins/treesitter.lua

28 lines
570 B
Lua

vim.pack.add({
gh("neovim-treesitter/nvim-treesitter"),
gh("neovim-treesitter/treesitter-parser-registry"),
})
require("nvim-treesitter").install {
"fish",
"lua",
"gitcommit",
"gitignore",
"http",
"html",
"css",
"javascript",
"json",
"yaml",
"markdown",
"markdown_inline",
"go",
}
vim.api.nvim_create_autocmd("FileType", {
pattern = { "http", "html", "go" },
callback = function()
vim.treesitter.start()
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
})