feat: add treesitter textobjects
parent
9bd578f8f3
commit
0010431ba6
|
@ -225,10 +225,6 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
|
||||||
<li>
|
<li>
|
||||||
With mini-bracketed
|
With mini-bracketed
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
|
||||||
<code>[B</code>, <code>]B</code>, <code>[b</code>,
|
|
||||||
<code>]b</code>: buffer backward/forward
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<code>[D</code>, <code>]D</code>, <code>[d</code>,
|
<code>[D</code>, <code>]D</code>, <code>[d</code>,
|
||||||
<code>]d</code>: diagnostic backward/forward
|
<code>]d</code>: diagnostic backward/forward
|
||||||
|
@ -274,6 +270,20 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>
|
||||||
|
With
|
||||||
|
<a
|
||||||
|
href="https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
|
||||||
|
>nvim-treesitter/nvim-treesitter-textobjects</a
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>vif</code>, <code>vaf</code>: select inner/outer function
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
With
|
With
|
||||||
|
|
|
@ -103,7 +103,6 @@ vim.keymap.set("n", "q", ":q<CR>")
|
||||||
- `:A`: open alternate file
|
- `:A`: open alternate file
|
||||||
- With [echasnovski/mini.nvim](https://github.com/echasnovski/mini.nvim)
|
- With [echasnovski/mini.nvim](https://github.com/echasnovski/mini.nvim)
|
||||||
- With mini-bracketed
|
- With mini-bracketed
|
||||||
- `[B`, `]B`, `[b`, `]b`: buffer backward/forward
|
|
||||||
- `[D`, `]D`, `[d`, `]d`: diagnostic backward/forward
|
- `[D`, `]D`, `[d`, `]d`: diagnostic backward/forward
|
||||||
- `[Q`, `]Q`, `[q`, `]q`: quickfix backward/forward
|
- `[Q`, `]Q`, `[q`, `]q`: quickfix backward/forward
|
||||||
- `[T`, `]T`, `[t`, `]t`: tree-sitter backward/forward
|
- `[T`, `]T`, `[t`, `]t`: tree-sitter backward/forward
|
||||||
|
@ -117,6 +116,8 @@ vim.keymap.set("n", "q", ":q<CR>")
|
||||||
- `sr`: replace surround
|
- `sr`: replace surround
|
||||||
- With mini-trailspace
|
- With mini-trailspace
|
||||||
- `<Leader>tr`: trim trailing whitespace
|
- `<Leader>tr`: trim trailing whitespace
|
||||||
|
- With [nvim-treesitter/nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects)
|
||||||
|
- `vif`, `vaf`: select inner/outer function
|
||||||
- With [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
|
- With [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
|
||||||
- `<Space>gd`: go to definition
|
- `<Space>gd`: go to definition
|
||||||
- `<Space>k`: hover
|
- `<Space>k`: hover
|
||||||
|
|
Loading…
Reference in New Issue