init.lua/after/plugin/treesitter.lua

42 lines
694 B
Lua
Raw Normal View History

2024-02-11 14:02:36 +05:30
require("nvim-treesitter.configs").setup({
2024-02-10 22:51:14 +05:30
ensure_installed = {
"bash",
"diff",
"dockerfile",
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
"go",
"gomod",
"gosum",
"json",
"markdown",
"markdown_inline",
"nix",
"lua",
"toml",
"vim",
"vimdoc",
2024-02-13 23:36:57 +05:30
"yaml",
2024-02-10 22:51:14 +05:30
},
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
2024-02-11 22:46:42 +05:30
incremental_selection = {
enable = true,
module_path = "nvim-treesitter.incremental_selection",
},
indent = {
enable = true,
module_path = "nvim-treesitter.indent",
},
2024-02-11 14:02:36 +05:30
})