mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
43 lines
1 KiB
Lua
43 lines
1 KiB
Lua
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
configs.setup({
|
|
ensure_installed = {
|
|
"lua",
|
|
"vim",
|
|
},
|
|
ignore_install = { "phpdoc" }, -- List of parsers to ignore installing
|
|
highlight = {
|
|
enable = true,
|
|
disable = { "css" }, -- list of language that will be disabled
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
-- context_commentstring = {
|
|
-- enable = true,
|
|
-- enable_autocmd = false,
|
|
-- config = {
|
|
-- Languages that have a single comment style
|
|
-- typescript = "// %s",
|
|
-- css = "/* %s */",
|
|
-- scss = "/* %s */",
|
|
-- html = "<!-- %s -->",
|
|
-- svelte = "<!-- %s -->",
|
|
-- vue = "<!-- %s -->",
|
|
-- jsx = "{/* %s */}",
|
|
-- json = "",
|
|
-- },
|
|
-- },
|
|
rainbow = {
|
|
enable = true,
|
|
disable = { "html" },
|
|
equery = "rainbow-parens",
|
|
strategy = require("ts-rainbow").strategy.global,
|
|
},
|
|
autotag = { enable = true },
|
|
incremental_selection = { enable = true },
|
|
indent = { enable = true, disable = { "python", "css" } },
|
|
autopairs = {
|
|
enable = true,
|
|
},
|
|
})
|