aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-07-27 20:59:51 -0500
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-29 17:00:23 +0200
commit5202b7b0986b2a4be8b14e02010fd7390575d775 (patch)
treed3e94f10aee9782cd6bf64cac2ff837328c97845 /doc
parentrst: update highlight queries (diff)
downloadnvim-treesitter-5202b7b0986b2a4be8b14e02010fd7390575d775.tar
nvim-treesitter-5202b7b0986b2a4be8b14e02010fd7390575d775.tar.gz
nvim-treesitter-5202b7b0986b2a4be8b14e02010fd7390575d775.tar.bz2
nvim-treesitter-5202b7b0986b2a4be8b14e02010fd7390575d775.tar.lz
nvim-treesitter-5202b7b0986b2a4be8b14e02010fd7390575d775.tar.xz
nvim-treesitter-5202b7b0986b2a4be8b14e02010fd7390575d775.tar.zst
nvim-treesitter-5202b7b0986b2a4be8b14e02010fd7390575d775.zip
Docs: rework readme
- Fix some typos - Remove some unnecessary text that was taking space - Use double quotes in lua examples (this seems to be the convention in the source code) - Sort list of languages so they are easy to find.
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-treesitter.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 7bf4b5780..1f455457a 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -32,14 +32,14 @@ By default, everything is disabled. To enable support for features, in your `ini
require'nvim-treesitter.configs'.setup {
highlight = {
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
custom_captures = { -- mapping of user defined captures to highlight groups
-- ["foo.bar"] = "Identifier" -- highlight own capture @foo.bar with highlight group "Identifier", see :h nvim-treesitter-query-extensions
},
},
incremental_selection = {
enable = true,
- disable = { 'cpp', 'lua' },
+ disable = { "cpp", "lua" },
keymaps = { -- mappings for incremental selection (visual mappings)
init_selection = 'gnn', -- maps in normal mode to init the node/scope selection
node_incremental = "grn", -- increment to the upper named parent
@@ -73,10 +73,10 @@ By default, everything is disabled. To enable support for features, in your `ini
disable = {},
keymaps = {
["iL"] = { -- you can define your own textobjects directly here
- python = "(function_definition) @function",
- cpp = "(function_definition) @function",
- c = "(function_definition) @function",
- java = "(method_declaration) @function"
+ python = "(function_definition) @function",
+ cpp = "(function_definition) @function",
+ c = "(function_definition) @function",
+ java = "(method_declaration) @function"
},
-- or you use the queries from supported languages with textobjects.scm
["af"] = "@function.outer",
@@ -96,7 +96,7 @@ By default, everything is disabled. To enable support for features, in your `ini
["im"] = "@call.inner"
}
},
- 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
<