diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-31 22:20:30 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-31 22:20:30 +0200 |
commit | 7d1e8075b8f156f3f8c300326abf730a1a8f2875 (patch) | |
tree | 4fff845d6cd1b66e267ef76dfad122a174f2c7a4 /.config/nvim/lua/_treesitter | |
parent | 0ce9de258802b9c3259083e6f1ab5739e8e51084 (diff) |
Copying of Luke's dots
Diffstat (limited to '.config/nvim/lua/_treesitter')
-rw-r--r-- | .config/nvim/lua/_treesitter/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/nvim/lua/_treesitter/init.lua b/.config/nvim/lua/_treesitter/init.lua index b215e30..0cf6c56 100644 --- a/.config/nvim/lua/_treesitter/init.lua +++ b/.config/nvim/lua/_treesitter/init.lua @@ -1,9 +1,19 @@ require'nvim-treesitter.configs'.setup { ensure_installed = O.treesitter.ensure_installed, -- one of "all", "maintained" (parsers with maintainers), or a list of languages ignore_install = O.treesitter.ignore_install, + matchup = { + enable = true, -- mandatory, false will disable the whole extension + -- disable = { "c", "ruby" }, -- optional, list of language that will be disabled + }, highlight = { enable = O.treesitter.highlight.enabled -- false will disable the whole extension }, + context_commentstring = { + enable = true, + config = { + css = '// %s' + } + }, -- indent = {enable = true, disable = {"python", "html", "javascript"}}, -- TODO seems to be broken indent = {enable = {"javascriptreact"}}, |