mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 01:55:08 +02:00
more treesitter
This commit is contained in:
parent
2e4314331b
commit
326f1e7060
3 changed files with 46 additions and 8 deletions
|
@ -1,3 +1,4 @@
|
|||
-- TODO refacor this whole file and treesitter in general
|
||||
-- if not package.loaded['nvim-treesitter'] then return end
|
||||
--
|
||||
-- Custom parsers
|
||||
|
@ -99,7 +100,7 @@ require("nvim-treesitter.configs").setup {
|
|||
-- indent = {enable = true, disable = {"python", "html", "javascript"}},
|
||||
-- TODO seems to be broken
|
||||
indent = { enable = { "javascriptreact" } },
|
||||
-- autotag = { enable = O.plugin.ts_autotag.active },
|
||||
autotag = { enable = O.plugin.ts_autotag.active },
|
||||
textobjects = {
|
||||
swap = {
|
||||
enable = O.plugin.ts_textobjects,
|
||||
|
@ -133,9 +134,9 @@ require("nvim-treesitter.configs").setup {
|
|||
show_help = "?",
|
||||
},
|
||||
},
|
||||
-- rainbow = {
|
||||
-- enable = O.plugin.ts_rainbow.active,
|
||||
-- extended_mode = true, -- Highlight also non-parentheses delimiters, boolean or table: lang -> boolean
|
||||
-- max_file_lines = 1000, -- Do not enable for files with more than 1000 lines, int
|
||||
-- },
|
||||
rainbow = {
|
||||
enable = O.plugin.ts_rainbow.active,
|
||||
extended_mode = true, -- Highlight also non-parentheses delimiters, boolean or table: lang -> boolean
|
||||
max_file_lines = 1000, -- Do not enable for files with more than 1000 lines, int
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue