diff options
author | Chris <[email protected]> | 2021-04-03 15:59:03 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-04-03 15:59:03 -0400 |
commit | 43f067e0b4dbb0f60e108ec35a162895afdea807 (patch) | |
tree | d4c1a2ca99cff4af5a3dddae3212aa9b10604983 /lua/nv-treesitter/init.lua | |
parent | 12c2b7dbad5dcd3b25d6e3cde62bd55eb7fb8df3 (diff) |
more options
Diffstat (limited to 'lua/nv-treesitter/init.lua')
-rw-r--r-- | lua/nv-treesitter/init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/nv-treesitter/init.lua b/lua/nv-treesitter/init.lua index 0dee10d8..f846a917 100644 --- a/lua/nv-treesitter/init.lua +++ b/lua/nv-treesitter/init.lua @@ -1,20 +1,20 @@ require'nvim-treesitter.configs'.setup { - ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages + ensure_installed = O.treesitter.ensure_installed, -- one of "all", "maintained" (parsers with maintainers), or a list of languages -- TODO seems to be broken - ignore_install = {"haskell"}, + ignore_install = O.treesitter.ignore_install, highlight = { - enable = true -- false will disable the whole extension + enable = O.treesitter.highlight.enabled -- false will disable the whole extension }, -- indent = {enable = true, disable = {"python", "html", "javascript"}}, indent = {enable = {"javascriptreact"}}, playground = { - enable = true, + enable = O.treesitter.playground.enabled, disable = {}, updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code persist_queries = false -- Whether the query persists across vim sessions }, autotag = {enable = true}, - rainbow = {enable = true}, + rainbow = {enable = O.treesitter.rainbow.enabled}, context_commentstring = {enable = true, config = {javascriptreact = {style_element = '{/*%s*/}'}}} -- refactor = {highlight_definitions = {enable = true}} } |