fix ts bugs

This commit is contained in:
Chris 2021-07-05 19:56:08 -04:00
parent 6258b2b4ba
commit 0b7e8e1b07

View file

@ -100,7 +100,7 @@ require("nvim-treesitter.configs").setup {
-- indent = {enable = true, disable = {"python", "html", "javascript"}}, -- indent = {enable = true, disable = {"python", "html", "javascript"}},
-- TODO seems to be broken -- TODO seems to be broken
indent = { enable = { "javascriptreact" } }, indent = { enable = { "javascriptreact" } },
autotag = { enable = O.plugin.ts_autotag.active }, -- autotag = { enable = O.plugin.ts_autotag.active },
textobjects = { textobjects = {
swap = { swap = {
enable = O.plugin.ts_textobjects, enable = O.plugin.ts_textobjects,
@ -134,9 +134,9 @@ require("nvim-treesitter.configs").setup {
show_help = "?", show_help = "?",
}, },
}, },
rainbow = { -- rainbow = {
enable = O.plugin.ts_rainbow.active, -- enable = O.plugin.ts_rainbow.active,
extended_mode = true, -- Highlight also non-parentheses delimiters, boolean or table: lang -> boolean -- 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 -- max_file_lines = 1000, -- Do not enable for files with more than 1000 lines, int
}, -- },
} }