Table of Contents
(๐ Click to expand/collapse)
ไฝฟ็จbufferlineๆฟๆขbarbarไฝไธบๆ ็ญพ็ฎก็
github
Language-Server Protocol (LSP)
To leverage LSP auto-completions and other functionalities, after you open a
file in Neovim, run :MasonInstall <server>
to use
mason installation feature.
Use Tab
to list available servers.
ๆฏๆ็ฒ่ดดๅๅฒๆต่ง
nvim-neoclip
sudo apt-get install sqlite3 libsqlite3-dev
blackๅฎ่ฃ
pip3 install black -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
vale
curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s latest
markdownlink
Total: 58
github/copilot.vim - ๅบ่ณๅพฎ่ฝฏ็ไธๆฌพAI็ๆไปฃ็ ็ๆไปถ
abecodes/tabout.nvim
karb94/neoscroll.nvim - ๆปๅฑๆไปถ
AckslD/nvim-neoclip.lua - ็ฒ่ดดๅๅฒๆต่ง
ๅๆณจ้ -visual_modeไธๆ/
ๆฏๆ่ฟ็จssh็ปๅฝๅ็ๅคๅถ็ฒ่ดด
Note that,
Key-mappings
(๐ Click to expand/collapse)
Modes: ๐=normal ๐=visual ๐=select ๐=insert ๐=command
Key
Mode
Action
Plugin or Mapping
Space +e
๐
Open file tree
NvimTree
Space +o
๐
Open symbols
Symbols-outline
Space +f
๐
Open file finder
Telescope
Space +h
๐
Remove highlight
nohlsearch<
Space +/
๐
Toggle comment
Comment.nvim
Space +?
๐
Open cheats
cheat.sh
Space +'
๐
Open marks
which-key marks
Space +z
๐
Zen mode
zen-mode.nvim
Space +P
๐
Projects
project.nvim
Ctrl +s
๐
show signature help
vim.lsp.buf.signature_help()
Alt +s
๐
snippet selection
telescope luasnip extension
Key
Mode
Action
Plugin or Mapping
f
๐
find next chacharacter
HopChar1CurrentLineAC or Lightspeed_f
F
๐
find prprevious character
HopChar1CurrentLineBC or Lightspeed_F
s
๐
find chacharacter
HopChar2 or Lightspeed_s
S
๐
find word
HopWord or Lightspeed_S
Alt +a
๐
select all
ggVG
Alt +a
๐
increment number
C-A
Alt +x
๐
decrement number
C-X
Key
Mode
Action
Tab / Shift-Tab
๐
Navigate completion-menu
Enter
๐
Select completion or expand snippet
Up or Down
๐
Movement in completion pop-up
] +d
๐
Next diagnostic
[ +d
๐
Previous diagnostic
Space +l +j or Space +l +k
๐
Next/previous LSP diagnostic
Ctrl +e
๐
Close pop-up
Tab / Shift-Tab
๐ ๐
Navigate snippet placeholders
Space +l
๐
keybindings for lsp
g +a
๐
code actions
g +d
๐
goto definition
g +D
๐
goto declaration
g +I
๐
goto implementation
g +p
๐
peek implementation
g +r
๐
goto references
g +s
๐
show signature help
Key
Mode
Action
Space +m +f
๐
Build File
Space +m +p
๐
Build Project
Space +m +e
๐
Edit Tasks
Space +m +l
๐
List Tasks
Space +r +f
๐
Run File
Space +r +p
๐
Run Project
Key
Mode
Action
Space +g +j or Space +g +k
๐
Next/previous Git hunk
Space +g +p
๐
Preview hunk
Space +g +l
๐
Blame line
Space +g +s
๐ ๐
Stage hunk
Space +g +u
๐
Undo stage hunk
Space +g +R
๐ ๐
Reset hunk
Key
Mode
Action
Space +g +g
๐
Open lazy git UI
Key
Mode
Action
Space +f
๐
File search
Space +P
๐
Project search
Space +s +s
๐
Grep search
Space +F +l
๐
Reopen last search
Space +b +f
๐
Buffers
Space +s +c
๐
Colorschemes
Space +s +C
๐
Command history
Space +s +h
๐
Find help
Space +s +k
๐
Keymap search
Space +s +M
๐
Man Pages search
Space +s +r
๐
Register search
Space +s +t
๐
Grep string under cursor
Space +s +t
๐
Grep raw
Space +F +b
๐
Builtin search
Space +F +f
๐
Current buffer search
Space +F +g
๐
Git files search
Space +F +i
๐
Installed plugins
Space +F +p
๐
Project search
Space +F +i
๐
Installed plugins
Within Telescope window
CR
๐ ๐
Multi/Single Open
Ctrl +c
๐ ๐
Exit telescope
Ctrl +v
๐ ๐
Open in a vertical split
Ctrl +s
๐ ๐
Open in a split
Ctrl +t
๐ ๐
Open in a tab
Tab
๐ ๐
Toggle Selection + Next
Shift +Tab
๐ ๐
Toggle Selection + Prev
Key
Mode
Action
Space +Space
๐
show harpoon shortlist
Space +a
๐
add file to shortlist
Space +1
๐
jump to first file on shortlist
Space +2
๐
jump to second file on shortlist
Space +3
๐
jump to third file on shortlist
Space +4
๐
jump to forforthle on shortlist
Key
Mode
Action
Space +n +c
๐
class docdocumentation
Space +n +f
๐
function docdocumentation
Key
Mode
Action
Space +q +d
๐
quit without saving session
Space +q +l
๐
restore last session
Space +q +s
๐
restore last session from current dir
Key
Mode
Action
Space +b +f
๐
find buffer
Space +b +b
๐
toggle buffer groups
Space +b +p
๐
pick buffer
Space +b +1
๐
goto buffer 1
Space +b +h
๐
Close all to left
Space +b +l
๐
Close all to right
Space +b +D
๐
Sort by directory
Space +b +L
๐
Sort by language
Key
Mode
Action
Space +t +d
๐
diagnostics
Space +t +f
๐
definitions
Space +t +r
๐
references
Space +t +t
๐
todo
Space +t +w
๐
workspace diagnostics
Key
Mode
Action
Ctrl +h
๐
copilot#Accept("<CR>")
Ctrl +e
๐
close cmp menu
Alt +]
๐
<Plug>(copilot-next)
Alt +[
๐
<Plug>(copilot-previous)
Alt +</kbd>
๐
"<Cmd>vertical Copilot panel<CR>"
clangd_extensions.nvim
You can use mason to install these:
cargo install selene # if you want to use selene instead of luacheck
brew install hadolint # if you want to lint dockerfiles
pip install vim-vint # for vim linting
# install llvm and clang_format for clang stuff
npm install -g @fsouza/prettierd # if you want to use prettierd
pip install yapf flake8 black # for python stuff
# if you want to use the markdown thingy
brew install vale markdownlint-cli
cp -r ~ /.config/lvim/.vale ~ /.config/vale
# fix the address inside .vale.ini
cp ~ /.config/lvim/vale_config.ini ~ /.vale.ini
# if you want the latex stuff
# brew install --cask mactex-no-gui # for mac
# or install zathura and chktex on linux
comment
visual_mode
gc line comment
gb block comment
[โ] ๅธฆๅพๆ ๅญไฝ
[] chatgpt็ๆไปถ็ปๆ