+
+ Black hole register:
+
+ <Leader>d
: d
without yank
+ <Leader>c
: c
without yank
+ <Leader>x
: x
without yank
+
+
With
@@ -215,6 +209,7 @@
<Leader>f
: find files
<Leader>l
: find lines
<Leader>rg
: grep files
+ <Leader>g
: git status
With
helps:
- <Space>s
: find lsp symbols
- <Space>d
: go to definition
- <Space>r
: go to references
- <Space>i
: go to implementation
+ <Space>s
: list lsp symbols
+ -
+
<Space>r
, gr
: list references
+
+ -
+
<Space>i
, gi
: list
+ implementation
+
+ <Space>ca
: list code action
+
+
+ With ms-jpq/coq_nvim:
+
+
+ <C-Space>
: trigger completion
+
+
With
@@ -279,31 +287,6 @@
>
- -
- With mini-bracketed
-
- -
-
[D
, ]D
, [d
,
- ]d
: diagnostic backward/forward
-
- -
-
[Q
, ]Q
, [q
,
- ]q
: quickfix backward/forward
-
- -
-
[T
, ]T
, [t
,
- ]t
: tree-sitter backward/forward
-
-
-
-
-
With mini-comment
@@ -311,12 +294,6 @@
gc
: comment/uncomment selected lines
- -
- With mini-completion
-
- <C-Space>
: trigger completion
-
-
-
With mini-surround
+
+
+ With
+ stevearc/conform.nvim:
+
+
+ <Space>f
: format code
+
+
With
@@ -335,12 +323,24 @@
>:
- <Space>e
: float diagnostic
- <Space>k
: hover
+ ]d
, [d
: next/previous diagnostic
+ <Space>e
: current diagnostic
+ <Space>lr
: restart lsp server
+ gd
: go to definition
+ <Space>k
, gk
: hover
<F2>
: rename
- <Space>f
: format code
- <Space>ca
: code action
- <Space>ci
: organize imports
+
+
+
+
+ With
+ github/copilot.vim:
+
+
+ -
+
<M-Right>
: completion, replace Tab
+
diff --git a/posts/2023-05-03-neovim.md b/posts/2023-05-03-neovim.md
index 849215b..2a523bf 100644
--- a/posts/2023-05-03-neovim.md
+++ b/posts/2023-05-03-neovim.md
@@ -84,11 +84,6 @@ Advance:
- Support jump to Go definition with
[fatih/vim-go](https://github.com/fatih/vim-go).
-## Fold
-
-- `zR`: open all folds.
-- `za`, `zA`: toggle fold
-
## Keymap
Use both `\` and `;` as leader key:
@@ -103,16 +98,23 @@ Ground rules:
- `` prefix: prefer global keymap
- `` prefix: prefer lsp keymap, for coding of course :D
+- Black hole register:
+ - `d`: `d` without yank
+ - `c`: `c` without yank
+ - `x`: `x` without yank
- With [ibhagwan/fzf-lua](https://github.com/ibhagwan/fzf-lua):
- `f`: find files
- `l`: find lines
- `rg`: grep files
+ - `g`: git status
- With [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
helps:
- - `s`: find lsp symbols
- - `d`: go to definition
- - `r`: go to references
- - `i`: go to implementation
+ - `s`: list lsp symbols
+ - `r`, `gr`: list references
+ - `i`, `gi`: list implementation
+ - `ca`: list code action
+- With [ms-jpq/coq_nvim](https://github.com/ms-jpq/coq_nvim):
+ - ``: trigger completion
- With [nvim-tree/nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua),
inside nvim-tree:
- ``: toggle
@@ -129,28 +131,24 @@ Ground rules:
- With [tpope/vim-projectionist](https://github.com/tpope/vim-projectionist)
- `:A`: open alternate file
- With [echasnovski/mini.nvim](https://github.com/echasnovski/mini.nvim)
- - With mini-bracketed
- - `[D`, `]D`, `[d`, `]d`: diagnostic backward/forward
- - `[Q`, `]Q`, `[q`, `]q`: quickfix backward/forward
- - `[T`, `]T`, `[t`, `]t`: tree-sitter backward/forward
- - Support more languages with
- [nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
- With mini-comment
- `gcc`: comment/uncomment current line
- `gc`: comment/uncomment selected lines
- - With mini-completion
- - ``: trigger completion
- With mini-surround
- `sa`: add surround
- `sd`: delete surround
- `sr`: replace surround
-- With [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig):
- - `e`: float diagnostic
- - `k`: hover
- - ``: rename
+- With [stevearc/conform.nvim](https://github.com/stevearc/conform.nvim):
- `f`: format code
- - `ca`: code action
- - `ci`: organize imports
+- With [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig):
+ - `]d`, `[d`: next/previous diagnostic
+ - `e`: current diagnostic
+ - `lr`: restart lsp server
+ - `gd`: go to definition
+ - `k`, `gk`: hover
+ - ``: rename
+- With [github/copilot.vim](https://github.com/github/copilot.vim):
+ - ``: completion, replace `Tab`
## References / Thanks