This repository has been archived on 2023-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/nvim/lua/config/treesitter.lua

58 lines
800 B
Lua

require("nvim-treesitter.configs").setup({
ensure_installed = {
"bash",
"c",
"cmake",
"cpp",
"css",
"dockerfile",
"glsl",
"graphql",
"haskell",
"http",
"html",
"java",
"javascript",
"jsdoc",
"json",
"json5",
"latex",
"lua",
"markdown",
"ninja",
"nix",
"org",
"perl",
"php",
"pug",
"python",
"regex",
"rst",
"ruby",
"rust",
"scala",
"scss",
"toml",
"tsx",
"typescript",
"vim",
"yaml",
"zig"
},
ignore_install = {},
highlight = {
enable = true,
disable = {},
},
indent = {
enable = true,
},
context_commentstring = {
enable = true,
},
})
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"