diff options
| author | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-05-03 11:19:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-03 11:19:28 +0200 |
| commit | 5cc7407c7f730c552120fc7d7d9a136ae6b7035f (patch) | |
| tree | 593390eedb3dd2218a2a143e8d5dbcd566780664 /doc | |
| parent | Merge pull request #39 from vigoux/incremental_selection (diff) | |
| parent | Add documentation for `node_movement`, rename: `textobj` -> `incremental_sele... (diff) | |
| download | nvim-treesitter-5cc7407c7f730c552120fc7d7d9a136ae6b7035f.tar nvim-treesitter-5cc7407c7f730c552120fc7d7d9a136ae6b7035f.tar.gz nvim-treesitter-5cc7407c7f730c552120fc7d7d9a136ae6b7035f.tar.bz2 nvim-treesitter-5cc7407c7f730c552120fc7d7d9a136ae6b7035f.tar.lz nvim-treesitter-5cc7407c7f730c552120fc7d7d9a136ae6b7035f.tar.xz nvim-treesitter-5cc7407c7f730c552120fc7d7d9a136ae6b7035f.tar.zst nvim-treesitter-5cc7407c7f730c552120fc7d7d9a136ae6b7035f.zip | |
Merge pull request #37 from theHamsta/node-movement
Add 'nvim-treesitter/node-movement'
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-treesitter.txt | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index 55ada1596..ceb834be1 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -30,19 +30,29 @@ By default, everything is disabled. To enable support for features, in your `ini > lua <<EOF require'nvim-treesitter.configs'.setup { - highlight = { - enable = true, -- false will disable the whole extension - disable = { 'c', 'rust' }, -- list of language that will be disabled - }, - textobj = { -- this enables incremental selection - enable = true, - disable = { 'cpp', 'lua' }, - keymaps = { -- mappings for visual selection - node_incremental = "<leader>e", -- "grn" by default, - scope_incremental = "<leader>f" -- "grc" by default - } - }, - ensure_installed = 'all' -- can be one of 'all', 'language' or {'language1', 'language2' ... } + highlight = { + enable = true, -- false will disable the whole extension + disable = { 'c', 'rust' }, -- list of language that will be disabled + }, + incremental_selection = { -- this enables incremental selection + enable = true, + disable = { 'cpp', 'lua' }, + keymaps = { -- mappings for incremental selection (visual mappings) + node_incremental = "<leader>e", -- "grn" by default, + scope_incremental = "<leader>f" -- "grc" by default + } + }, + node_movement = { -- this cursor movement in node hierachy + enable = true, + disable = { 'cpp', 'rust' }, + keymaps = { -- mappings for node movement (normal mappings) + move_up = "<a-k>", -- default is to move with alt key hold + move_down = "<a-j>", + move_left = "<a-h>", + move_right = "<a-l>", + } + }, + ensure_installed = 'all' -- one of 'all', 'language', or a list of languages } < |
