Files
dotfiles/.config/nvim/lua/plugins/treesitter.lua
2025-01-05 14:09:30 +01:00

86 lines
1.9 KiB
Lua

return {
-- add more treesitter parsers, used for e.g. theming and other plugins
-- https://github.com/nvim-treesitter/nvim-treesitter#supported-languages
{
"nvim-treesitter/nvim-treesitter",
-- opts will be merged with the parent spec
opts = {
ensure_installed = {
"bash",
"c",
"comment",
"css",
"diff",
"git_config",
"git_rebase",
"go",
"gomod",
"html",
"http",
"javascript",
"json",
"lua",
"make",
"markdown",
"markdown_inline",
"php",
"proto",
"python",
"query",
"graphql",
"regex",
"rst",
"rust",
"scss",
"svelte",
"swift",
"sql",
"terraform",
"tsx",
"typescript",
"vim",
"vue",
"yaml",
},
autotag = {
enable = true,
},
-- Hier kommt die neue Konfiguration
indent = { enable = true },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
-- Operator-Hervorhebung
playground = {
enable = true,
disable = {},
updatetime = 25,
persist_queries = false,
keybindings = {
toggle_query_editor = "o",
toggle_hl_groups = "i",
toggle_injected_languages = "t",
toggle_anonymous_nodes = "a",
toggle_language_display = "I",
focus_language = "f",
unfocus_language = "F",
update = "R",
goto_node = "<cr>",
show_help = "?",
},
},
},
},
-- https://github.com/nvim-treesitter/nvim-treesitter-context
{
"nvim-treesitter/nvim-treesitter-context",
dependencies = { "nvim-treesitter/nvim-treesitter" },
},
{
"windwp/nvim-ts-autotag",
},
}