init.lua/after/plugin/treesitter.lua

46 lines
752 B
Lua
Raw Permalink 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",
2024-02-24 19:16:50 +05:30
"css",
2024-02-10 22:51:14 +05:30
"diff",
"dockerfile",
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
"go",
"gomod",
"gosum",
2024-02-24 19:16:50 +05:30
"javascript",
2024-02-10 22:51:14 +05:30
"json",
"markdown",
"markdown_inline",
"nix",
"lua",
"toml",
2024-02-24 19:16:50 +05:30
"typescript",
2024-02-10 22:51:14 +05:30
"vim",
"vimdoc",
2024-02-24 19:16:50 +05:30
"vue",
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
})