Compare commits

..

No commits in common. "8571a7b1b50ea1e6b462ad6c6445c5c85690a484" and "8013e0bd62f199bd14203c1351575290b7e0d10d" have entirely different histories.

3 changed files with 3 additions and 7 deletions

View file

@ -1,7 +1,8 @@
# Neovim cheat sheet
# Neovim command and keybind cheat sheet
## BASICS
- `;` leader key
- `:checkhealth [<pluginname>]` check base or plugin status
- `:checkhealth vim.lsp` show details of LSP attached to buffer
- `:verbose set expandtab?` check where `expandtab` has been set last
@ -88,7 +89,6 @@
- `cc` replace whole line
- `C` replace to the end of the line
- `yy` copy the current line
- `yygccp` comment and copy the current line
- `yap` "yank-around-paragraph"
- `yip` "yank-inside-paragraph"
- `yaW` copy word w/ dashes/underscores
@ -121,4 +121,3 @@
- `gf` open file under cursor in a new buffer
- `gx` open link under cursor in default browser
- `*` search word under cursor
- `Ctrl`+`l` remove search highlight

Binary file not shown.

View file

@ -47,10 +47,7 @@ vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("weeheavy-highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank({
higroup = "IncSearch",
timeout = 100,
})
vim.highlight.on_yank()
end,
})