aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-10-01 21:38:38 +0200
committerKiyan Yazdani <yazdani.kiyan@protonmail.com>2020-10-19 18:28:45 +0200
commitf7d92f663c07b9be35ceea0342c215ca396c48fb (patch)
tree4abaff961affb3c35443dd72423eb33fec2d502f /README.md
parentreadme: add nvim-treesitter-context (diff)
downloadnvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar
nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.gz
nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.bz2
nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.lz
nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.xz
nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.zst
nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.zip
feat(languagetree): implement language tree
Allow the LanguageTree to be used as an option for highlighting. Co-authored-by: Santos Gallegos <stsewd@protonmail.com> Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 0 insertions, 6 deletions
diff --git a/README.md b/README.md
index 320918cdb..575fc4161 100644
--- a/README.md
+++ b/README.md
@@ -104,7 +104,6 @@ All modules are disabled by default,
so you'll need to activate them by putting this in your `init.vim` file:
```lua
-lua <<EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = "all", -- one of "all", "language", or a list of languages
highlight = {
@@ -112,7 +111,6 @@ require'nvim-treesitter.configs'.setup {
disable = { "c", "rust" }, -- list of language that will be disabled
},
}
-EOF
```
Check [`:h nvim-treesitter-modules`](doc/nvim-treesitter.txt)
@@ -125,7 +123,6 @@ for a list of available modules and its options.
Consistent syntax highlighting.
```lua
-lua <<EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
@@ -135,7 +132,6 @@ require'nvim-treesitter.configs'.setup {
},
},
}
-EOF
```
## Incremental selection
@@ -143,7 +139,6 @@ EOF
Incremental selection based on the named nodes from the grammar.
```lua
-lua <<EOF
require'nvim-treesitter.configs'.setup {
incremental_selection = {
enable = true,
@@ -155,7 +150,6 @@ require'nvim-treesitter.configs'.setup {
},
},
}
-EOF
```
# External modules