feat: more neovim keymaps

main
sudo pacman -Syu 2023-10-03 12:50:32 +07:00
parent 6c21b4ff40
commit ed3a568181
2 changed files with 27 additions and 11 deletions

View File

@ -210,15 +210,6 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
<li><code>U</code>: toggle hidden</li>
</ul>
</li>
<li>
<p>
With
<a href="https://github.com/hrsh7th/nvim-cmp">hrsh7th/nvim-cmp</a>:
</p>
<ul>
<li><code>&lt;C-Space&gt;</code>: trigger completion</li>
</ul>
</li>
<li>
<p>
With
@ -281,6 +272,12 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
<li><code>gc</code>: comment/uncomment selected lines</li>
</ul>
</li>
<li>
With mini-completion
<ul>
<li><code>&lt;C-Space&gt;</code>: trigger completion</li>
</ul>
</li>
<li>
With mini-surround
<ul>
@ -302,7 +299,21 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
<li><code>&lt;Space&gt;e</code>: float diagnostic</li>
<li><code>&lt;Space&gt;k</code>: hover</li>
<li><code>&lt;F2&gt;</code>: rename</li>
<li><code>&lt;Space&gt;f</code>: format code</li>
<li><code>&lt;Space&gt;ca</code>: code action</li>
<li><code>&lt;Space&gt;ci</code>: organize imports</li>
</ul>
</li>
<li>
<p>
With
<a href="https://github.com/zbirenbaum/copilot.lua"
>zbirenbaum/copilot.lua</a
>
</p>
<ul>
<li><code>&lt;M-Space&gt;</code>: trigger copilot</li>
<li><code>&lt;M-l&gt;: accept copilot</code></li>
</ul>
</li>
</ul>

View File

@ -123,8 +123,6 @@ Ground rules:
- `c`: copy
- `p`: paste
- `U`: toggle hidden
- With [hrsh7th/nvim-cmp](https://github.com/hrsh7th/nvim-cmp):
- `<C-Space>`: trigger completion
- With [lewis6991/gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim):
- `]c`, `[c`: next/previous git change
- With [tpope/vim-projectionist](https://github.com/tpope/vim-projectionist)
@ -139,6 +137,8 @@ Ground rules:
- With mini-comment
- `gcc`: comment/uncomment current line
- `gc`: comment/uncomment selected lines
- With mini-completion
- `<C-Space>`: trigger completion
- With mini-surround
- `sa`: add surround
- `sd`: delete surround
@ -147,7 +147,12 @@ Ground rules:
- `<Space>e`: float diagnostic
- `<Space>k`: hover
- `<F2>`: rename
- `<Space>f`: format code
- `<Space>ca`: code action
- `<Space>ci`: organize imports
- With [zbirenbaum/copilot.lua](https://github.com/zbirenbaum/copilot.lua)
- `<M-Space>`: trigger copilot
- `<M-l>: accept copilot`
## References / Thanks