diff options
author | aktersnurra <grydholm@kth.se> | 2021-04-19 21:43:23 +0200 |
---|---|---|
committer | aktersnurra <grydholm@kth.se> | 2021-04-19 21:43:23 +0200 |
commit | 23b895222a16925d39d04d45dedbedec9db0c752 (patch) | |
tree | eb5759eed884c1ddcb32f1b702e55dc4521bf60e /.config/nvim/lua/_treesitter | |
parent | 174cd547dc32bb6d50ab5da329ad1bc4d516c20a (diff) |
Updates to nvim
Diffstat (limited to '.config/nvim/lua/_treesitter')
-rw-r--r-- | .config/nvim/lua/_treesitter/init.lua | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/.config/nvim/lua/_treesitter/init.lua b/.config/nvim/lua/_treesitter/init.lua index 2b61051..b215e30 100644 --- a/.config/nvim/lua/_treesitter/init.lua +++ b/.config/nvim/lua/_treesitter/init.lua @@ -1,20 +1,11 @@ require'nvim-treesitter.configs'.setup { - ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages - highlight = { - enable = true, -- false will disable the whole extension - }, - playground = { - enable = true, - disable = {}, - updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code - persist_queries = false -- Whether the query persists across vim sessions - }, - rainbow = { - enable = false - }, - refactor = { - highlight_definitions = { - enable = false - } - } + ensure_installed = O.treesitter.ensure_installed, -- one of "all", "maintained" (parsers with maintainers), or a list of languages + ignore_install = O.treesitter.ignore_install, + highlight = { + enable = O.treesitter.highlight.enabled -- false will disable the whole extension + }, + -- indent = {enable = true, disable = {"python", "html", "javascript"}}, + -- TODO seems to be broken + indent = {enable = {"javascriptreact"}}, + autotag = {enable = true}, } |