jdhao
64b41fbd58
use native lua api instead of vim.cmd
2024-12-19 22:01:04 +01:00
jdhao
a9fc298063
update documentation for resuming cursor position
2024-08-30 01:03:13 +02:00
jdhao
fa79647a63
Fix type for option relativenumber
...
"relativenumber" should be window local option, not buffer local option.
2024-08-29 21:45:07 +02:00
jdhao
4b4ff5f549
Add error handling for resuming the cursor
...
This will close issue #328 .
2024-08-29 21:41:13 +02:00
jdhao
12b0ff02b6
Move autocmd in viml to Lua
2024-08-27 23:12:33 +02:00
jdhao
8416508686
Enable nvim-tree to open dir during startup
...
Now when you open a directory when starting nvim, nvim-tree will be
opened to handle the directory correctly, see also issue #257 .
2024-01-07 15:24:47 +01:00
jdhao
359621b126
fix multi visual line delete issue
...
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-09-01 00:26:08 +02:00
jdhao
fc1c447319
fix multi-line yank issue, close #220
...
The previous way of keep the cursor while yanking is not perfect.
It will break multi-line yank (`{count}yy`).
2023-08-28 21:11:32 +02:00
jdhao
0d50eb723f
chore: add notification for packer compile
...
Also move the autocmd location.
2022-11-01 22:02:45 +08:00
jdhao
aaeb6a813a
format with stylua
2022-09-10 23:55:22 +08:00
jdhao
b35956e6cd
simplify and add new autocmd
2022-09-01 13:22:49 +08:00
jdhao
c3f8d75ece
refactor: use ctx table for lua autocmd callback
2022-08-21 18:20:21 +08:00
jdhao
e9a3d16260
refactor: move part of autocmd to lua script
2022-08-20 15:00:10 +08:00