mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
33 lines
931 B
Lua
33 lines
931 B
Lua
-- nvim-treesitter – https://github.com/nvim-treesitter/nvim-treesitter/
|
||
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
|
||
if not status_ok then
|
||
return
|
||
end
|
||
|
||
configs.setup({
|
||
ensure_installed = "all",
|
||
sync_install = false,
|
||
ignore_install = { "" }, -- List of parsers to ignore installing
|
||
autopairs = {
|
||
enable = true,
|
||
},
|
||
highlight = {
|
||
enable = true, -- false will disable the whole extension
|
||
disable = { "" }, -- list of language that will be disabled
|
||
additional_vim_regex_highlighting = true,
|
||
},
|
||
indent = { enable = true, disable = { "yaml", "css" } },
|
||
context_commentstring = {
|
||
enable = true,
|
||
enable_autocmd = false,
|
||
},
|
||
rainbow = {
|
||
enable = true,
|
||
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
|
||
max_file_lines = nil, -- Do not enable for files with more than n lines, int
|
||
},
|
||
playground = {
|
||
enable = true,
|
||
},
|
||
})
|