feat: more neovim keymaps
parent
6c21b4ff40
commit
ed3a568181
|
@ -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><C-Space></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><C-Space></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><Space>e</code>: float diagnostic</li>
|
||||
<li><code><Space>k</code>: hover</li>
|
||||
<li><code><F2></code>: rename</li>
|
||||
<li><code><Space>f</code>: format code</li>
|
||||
<li><code><Space>ca</code>: code action</li>
|
||||
<li><code><Space>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><M-Space></code>: trigger copilot</li>
|
||||
<li><code><M-l>: accept copilot</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue