28 lines
570 B
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,
|
|
})
|