Skip to content

Commit

Permalink
Merge pull request #278 from horriblename/fix-ts-context-keybind
Browse files Browse the repository at this point in the history
treesitter: fix ts incremental selection keybinds
  • Loading branch information
NotAShelf authored May 5, 2024
2 parents 5b982fa + 666de6a commit a20f84e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/release-notes/rl-0.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ Release notes for release 0.7

- Modified type for [](#opt-vim.visuals.fidget-nvim.setupOpts.progress.display.overrides)
from `anything` to a `submodule` for better type checking.

[horriblename](https://github.com/horriblename)

- Fix broken treesitter-context keybinds in visual mode
6 changes: 3 additions & 3 deletions modules/plugins/treesitter/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ in {
normal = mkSetBinding mappings.incrementalSelection.init ":lua require('nvim-treesitter.incremental_selection').init_selection()<CR>";

visualOnly = mkMerge [
(mkSetBinding mappings.incrementalSelection.incrementByNode ":lua require('nvim-treesitter.incremental_selection').node_incremental()<CR>")
(mkSetBinding mappings.incrementalSelection.incrementByScope ":lua require('nvim-treesitter.incremental_selection').scope_incremental()<CR>")
(mkSetBinding mappings.incrementalSelection.decrementByNode ":lua require('nvim-treesitter.incremental_selection').node_decremental()<CR>")
(mkSetBinding mappings.incrementalSelection.incrementByNode "<cmd>lua require('nvim-treesitter.incremental_selection').node_incremental()<CR>")
(mkSetBinding mappings.incrementalSelection.incrementByScope "<cmd>lua require('nvim-treesitter.incremental_selection').scope_incremental()<CR>")
(mkSetBinding mappings.incrementalSelection.decrementByNode "<cmd>lua require('nvim-treesitter.incremental_selection').node_decremental()<CR>")
];
};

Expand Down

0 comments on commit a20f84e

Please sign in to comment.