1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

28 Commits

Author SHA1 Message Date
jdhao
e9ffd6c39d [fix] quit does not work for 2 windows
If current buf in remaning two or more windows are filetypes in the quit
list, we should also quit nvim also.
2022-03-29 21:41:44 +08:00
jdhao
22eead5d0f update matchparen highlight 2022-01-26 19:10:15 +08:00
jdhao
146ef5d0b8 use lua for may_create_dir 2022-01-13 20:27:48 +08:00
jdhao
6fd7155787 feat: create parent dir of current file if it does not exist 2022-01-13 01:51:19 +08:00
jdhao
85de00f374 refactor: resume edit position --> resume cursor position 2021-12-28 00:11:10 +08:00
jdhao
08d3d7ec08 fix bug in go to last edit position
If a go-to-line command is given, do not go to last edit position for
the file.
2021-12-20 22:15:34 +08:00
jdhao
db3b0024a6 drop auto-remove trailing whitespaces
When working with legacy code which is not well formatted, it will cause
large undesirable diffs.
2021-11-07 13:32:06 +08:00
jdhao
efd86f4467 change matchparen highlight 2021-11-05 20:52:39 +08:00
jdhao
9b9bd9dd46 remove trailing whitespace on save 2021-11-02 22:49:02 +08:00
jdhao
5ae2c7d1e0 remove redundant fold marks 2021-10-31 15:42:38 +08:00
jdhao
b0e38bedd1 change matchup higlight 2021-10-31 02:09:47 +08:00
jdhao
8986ace1b2 fix doc 2021-10-22 21:23:38 +08:00
jdhao
6464539399 nvim-notify update 2021-10-18 22:32:38 +08:00
jdhao
42a0663184 Reduce timeout for nvim-notify 2021-08-20 01:12:35 +08:00
jdhao
6205a913b7 Neovim --> Nvim 2021-08-08 22:51:01 +08:00
jdhao
7ecfdda8ff Move packer compile autocmd to new place 2021-08-07 21:47:37 +08:00
jdhao
644e8af39f refactor: set all custom highlight in one function 2021-08-07 21:33:00 +08:00
jdhao
8dffa8bd23 chore: formatting and fix spell errors 2021-08-07 03:15:22 +08:00
jdhao
d434627738 Fix: the loading condition for fugitive is wrong
We should load fugitive in the following two situations:

+ When we open nvim in a Git repository
+ When we are inside nvim and change the working directory to a Git
  reposity
2021-08-07 02:32:12 +08:00
jdhao
c4d050e99d Use nvim-notify for showing messages 2021-08-05 01:57:35 +08:00
jdhao
f7475f3e4f Refactor: use a unified log function 2021-07-24 14:53:48 +08:00
jdhao
b0eb7c4508 Simplify file reload logic 2021-07-24 13:11:24 +08:00
jdhao
dc6a510526 Update nvim-lspconfig settings
1. Customize document hover window border color.
2. Show also the source that generates a certain diagnostic message.
2021-07-17 00:22:33 +08:00
jdhao
b18a643145 Remove cmd line message auto-clear feature 2021-03-20 15:51:17 +08:00
jdhao
7085965e05 Refactor the auto-quit logic
Also quit quickfix window if it is the only window left.
2021-02-21 14:21:32 +08:00
jdhao
a360417822 Move cursor color autocmd to autocommands script 2021-02-17 17:05:40 +08:00
jdhao
94561247a9 Fix the issue that inccommand breaks one-line if-else statement
See also https://github.com/neovim/neovim/issues/8796
2020-11-06 22:33:41 +08:00
jdhao
d0827ae776 move custom settings to core/ directory 2020-10-31 01:13:09 +08:00