diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-08-31 19:04:14 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-08-31 21:34:57 +0200 |
| commit | 6352cdc943f707d3f6db5f0c8ed7820ba02f7ed5 (patch) | |
| tree | 04e3fd1b7fa1a9fd88a0b7e0b92d346166d70cd5 /ftdetect | |
| parent | 23b45422188c88101e92b5227144783bdb782a76 (diff) | |
Fix(modules): simplify configs.setup
This prevents a really weird bug were the following function call (after
loading the activated modules) could activate `highlight_current_scope`
```lua
require "nvim-treesitter.configs".setup(
{
highlight = {
enable = false, -- false will disable the whole extension
disable = {"html", "lua"} -- list of language that will be disabled
},
refactor = {
highlight_current_scope = {
enable = false,
inverse_highlighting = true,
disable = {"python", "markdown"}
},
highlight_definitions = {
enable = true,
disable = {"markdown"}
},
},
ensure_installed = "all",
disable = {"markdown"}, -- list of language that will be disabled
}
)
```
Diffstat (limited to 'ftdetect')
0 files changed, 0 insertions, 0 deletions
