feat: update nvim keymap

main
sudo pacman -Syu 2023-07-28 00:07:29 +07:00
parent aa47206b72
commit e3894d95f6
2 changed files with 6 additions and 4 deletions

View File

@ -293,11 +293,12 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
> >
</p> </p>
<ul> <ul>
<li><code>&lt;Space&gt;gd</code>: go to definition</li> <li><code>&lt;Space&gt;d</code>: go to definition</li>
<li><code>&lt;Space&gt;k</code>: hover</li> <li><code>&lt;Space&gt;k</code>: hover</li>
<li><code>&lt;F2&gt;</code>: rename</li> <li><code>&lt;F2&gt;</code>: rename</li>
<li><code>&lt;Space&gt;ca</code>: code action</li> <li><code>&lt;Space&gt;ca</code>: code action</li>
<li><code>&lt;Space&gt;gr</code>: go to references</li> <li><code>&lt;Space&gt;r</code>: go to references</li>
<li><code>&lt;Space&gt;i</code>: go to implementation</li>
<li><code>&lt;Space&gt;f</code>: format</li> <li><code>&lt;Space&gt;f</code>: format</li>
</ul> </ul>
</li> </li>

View File

@ -120,11 +120,12 @@ vim.keymap.set("n", "q", ":q<CR>")
- `vif`, `vaf`: select inner/outer function - `vif`, `vaf`: select inner/outer function
- `vic`, `vac`: select inner/outer class - `vic`, `vac`: select inner/outer class
- 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>d`: go to definition
- `<Space>k`: hover - `<Space>k`: hover
- `<F2>`: rename - `<F2>`: rename
- `<Space>ca`: code action - `<Space>ca`: code action
- `<Space>gr`: go to references - `<Space>r`: go to references
- `<Space>i`: go to implementation
- `<Space>f`: format - `<Space>f`: format
## References / Thanks ## References / Thanks