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 /README.md | |
| parent | 0207836eb2aaa876d52ffddd1ec89ec347c67996 (diff) | |
| parent | a33bccaaf0c69146dfe330feb52e05c975054468 (diff) | |
Merge pull request #37 from theHamsta/node-movement
Add 'nvim-treesitter/node-movement'
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -92,7 +92,7 @@ require'nvim-treesitter.configs'.setup { enable = true, -- false will disable the whole extension disable = { 'c', 'rust' }, -- list of language that will be disabled }, - textobj = { -- this enables incremental selection + incremental_selection = { -- this enables incremental selection enable = true, disable = { 'cpp', 'lua' }, keymaps = { -- mappings for incremental selection (visual mappings) @@ -100,6 +100,16 @@ require'nvim-treesitter.configs'.setup { 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 } EOF @@ -124,6 +134,7 @@ Some of these features are : - [x] Incremental selection - [ ] Syntax based code folding - [x] Consistent syntax highlighting (the api is not quite stable yet) + - [x] Cursor movement in node hierachy You can find the roadmap [here](https://github.com/nvim-treesitter/nvim-treesitter/projects/1). The roadmap and all features of this plugin are open to change, and any suggestion will be highly appreciated! |
