Fix documentation after #35

This commit is contained in:
Stephan Seitz 2020-05-02 16:20:44 +02:00
parent 0207836eb2
commit b28bc0defa
2 changed files with 28 additions and 24 deletions

View file

@ -88,6 +88,7 @@ in your `init.vim`:
```lua ```lua
lua <<EOF lua <<EOF
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
modules = {
highlight = { highlight = {
enable = true, -- false will disable the whole extension enable = true, -- false will disable the whole extension
disable = { 'c', 'rust' }, -- list of language that will be disabled disable = { 'c', 'rust' }, -- list of language that will be disabled
@ -100,6 +101,7 @@ require'nvim-treesitter.configs'.setup {
scope_incremental = "<leader>f" -- "grc" by default scope_incremental = "<leader>f" -- "grc" by default
} }
}, },
}
ensure_installed = 'all' -- one of 'all', 'language', or a list of languages ensure_installed = 'all' -- one of 'all', 'language', or a list of languages
} }
EOF EOF

View file

@ -30,6 +30,7 @@ By default, everything is disabled. To enable support for features, in your `ini
> >
lua <<EOF lua <<EOF
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
modules = {
highlight = { highlight = {
enable = true, -- false will disable the whole extension enable = true, -- false will disable the whole extension
disable = { 'c', 'rust' }, -- list of language that will be disabled disable = { 'c', 'rust' }, -- list of language that will be disabled
@ -42,6 +43,7 @@ By default, everything is disabled. To enable support for features, in your `ini
scope_incremental = "<leader>f" -- "grc" by default scope_incremental = "<leader>f" -- "grc" by default
} }
}, },
}
ensure_installed = 'all' -- can be one of 'all', 'language' or {'language1', 'language2' ... } ensure_installed = 'all' -- can be one of 'all', 'language' or {'language1', 'language2' ... }
} }
< <