Files
dotfiles/.config/nvim/lua/plugins/treesitter.lua
T
cdanesi 47fb5d73f7 remove perl highlighting
enable additional_vim_regex_highlighting
2024-11-18 14:09:19 -05:00

60 lines
1.4 KiB
Lua

return {
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate",
dependencies = {
"windwp/nvim-ts-autotag",
},
config = function()
local treesitter = require "nvim-treesitter.configs"
treesitter.setup {
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
},
indent = { enable = true },
autotag = { enable = true },
ensure_installed = {
"bash",
"css",
"diff",
"dockerfile",
"git_config",
"git_rebase",
"gitcommit",
"gitignore",
"graphql",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"regex",
"sql",
"todotxt",
"vim",
"vimdoc",
"xml",
"tmux",
"toml",
"yaml",
},
ignore_install = {},
sync_install = true,
auto_install = true,
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = false,
node_decremental = "<bs>",
},
},
}
end,
}