dotfiles/archive/nvim_old/.config/nvim/lua/user/treesitter.lua

24 lines
644 B
Lua
Raw Normal View History

2023-04-09 23:12:45 +02:00
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
if not status_ok then
return
end
configs.setup({
ensure_installed = { "bash", "c", "cpp", "javascript", "json", "lua", "python", "typescript", "tsx", "css", "rust", "java", "yaml", "markdown", "markdown_inline" }, -- one of "all" or a list of languages
ignore_install = { "phpdoc" }, -- List of parsers to ignore installing
2024-10-30 23:24:26 +01:00
highlight = {
enable = true,
additional_vim_regex_highlighting=false,
},
ident = { enable = true },
rainbow = {
enable = true,
extended_mode = true,
max_file_lines = nil,
},
2023-04-09 23:12:45 +02:00
autopairs = {
enable = true,
2024-10-30 23:24:26 +01:00
}
2023-04-09 23:12:45 +02:00
})