aboutsummaryrefslogtreecommitdiff
path: root/lua/custom-autocmd.lua
AgeCommit message (Collapse)Author
2024-01-07Enable nvim-tree to open dir during startupjdhao
Now when you open a directory when starting nvim, nvim-tree will be opened to handle the directory correctly, see also issue #257.
2023-09-01fix multi visual line delete issuejdhao
For TextYankPost event, it includes both yank and delete, we should only restore cursor position for yank, not for delete. Otherwise, it messes up with text deletion when you visually select multiple lines and delete them. See also issue reported here: https://github.com/jdhao/nvim-config/pull/222#issuecomment-1698634645
2023-08-28fix multi-line yank issue, close #220jdhao
The previous way of keep the cursor while yanking is not perfect. It will break multi-line yank (`{count}yy`).
2022-11-01chore: add notification for packer compilejdhao
Also move the autocmd location.
2022-09-10format with styluajdhao
2022-09-01simplify and add new autocmdjdhao
2022-08-21refactor: use ctx table for lua autocmd callbackjdhao
2022-08-20refactor: move part of autocmd to lua scriptjdhao