diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -89,25 +89,27 @@ in your `init.vim`: 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 + enable = true, -- false will disable the whole extension + disable = { 'c', 'rust' }, -- list of language that will be disabled }, - incremental_selection = { -- this enables incremental selection + 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 + init_selection = 'gnn', -- maps in normal mode to init the node/scope selection + node_incremental = "grn", -- increment to the upper named parent + scope_incremental = "grc", -- increment to the upper scope (as defined in locals.scm) + scope_decremental = "grm", -- decrement to the previous scope } }, - node_movement = { -- this enables cursor movement in node hierarchy + node_movement = { -- allows cursor movement in node hierarchy 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>", + keymaps = { -- mappings for scope movement (normal mappings) + parent_scope = "<a-k>", -- default is to move with alt key hold + child_scope = "<a-j>", + next_scope = "<a-h>", + previous_scope = "<a-l>", } }, ensure_installed = 'all' -- one of 'all', 'language', or a list of languages @@ -134,7 +136,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 + - [x] Cursor movement in scope hierachy - [x] Statusline indicator (`require'nvim-treesitter'.statusline(size)`) You can find the roadmap [here](https://github.com/nvim-treesitter/nvim-treesitter/projects/1). |
