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

172 Commits

Author SHA1 Message Date
jdhao
4f07f06e31 Add plugin zen-mode.nvim 2021-08-30 00:47:58 +08:00
jdhao
fcfada7a89 Move vimSum to opt 2021-08-28 00:59:43 +08:00
jdhao
abc40fc42f only use treesitter for macOS 2021-08-28 00:36:41 +08:00
jdhao
65731b60b4 Make more plugins opt 2021-08-27 00:51:56 +08:00
jdhao
aa6af21a15 Colorscheme plugins as opt plugins 2021-08-27 00:02:45 +08:00
jdhao
470e35439a Remove chadTree
I rarely use it and it is updated everyday with a meaningless bot, which
is really annoying for me.
2021-08-25 22:41:38 +08:00
jdhao
9b888f0f1a Revert "fix: loading order not correct for committia and vim-fugitive"
This reverts commit 236462864fd57eddaad5a75e35ea463eb144d62d.

committia does not depends on vim-fugitive.
2021-08-25 22:27:04 +08:00
jdhao
673603e01b No need to use packadd for packer
It is a start plugin that will be loaded automatically.
2021-08-25 22:22:56 +08:00
jdhao
236462864f fix: loading order not correct for committia and vim-fugitive 2021-08-25 21:52:27 +08:00
jdhao
4c76932e56 fix typo: require --> requires 2021-08-25 21:48:08 +08:00
jdhao
13cc96c00b chore: nvim-bufferline.lua has been renamed to bufferline.nvim 2021-08-21 20:43:25 +08:00
jdhao
30774cac5b Use nvim-hlslens instead of vim-anzu 2021-08-18 23:21:51 +08:00
jdhao
5817b1c207 Add colorscheme everforest 2021-08-18 01:53:27 +08:00
jdhao
bac94b47a0 Format with stylua 2021-08-18 01:43:08 +08:00
jdhao
61d6045e67 Try chadtree :) fast as fuck? 2021-08-17 22:55:53 +08:00
jdhao
c2968eeda4 Use neoscroll instead of vim-smoothie 2021-08-15 01:32:23 +08:00
jdhao
9f0fe39727 Change bufferline plugin to nvim-bufferline
It looks better than barbar.nvim, IMO.
2021-08-15 00:41:05 +08:00
jdhao
07c80f948d Use proper true or false value for boolean variables
In lua, 0 and empty string is true, which is counter-intuitive and
different from vim script. So we need to use proper boolean type for vim
script global variables, instead of numbers.
2021-08-14 01:23:43 +08:00
jdhao
f9feafa5bb Use barbar.nvim for tabline 2021-08-13 02:05:13 +08:00
jdhao
37e9487076 Use delimitMate instead of auto-pairs 2021-08-12 00:51:44 +08:00
jdhao
69c22793e1 update nvim-bqf settings 2021-08-09 23:01:21 +08:00
jdhao
e0c4b9d8d9 update vim-anzu and vim-cool settings
We shouldn't set them as opt, otherwise *, and n , N etc. do not work in
normal mode, unless we activate them on CmdlineEnter events.
2021-08-09 22:53:53 +08:00
jdhao
2b6e229ee1 Add plugin nvim-bqf 2021-08-08 23:27:37 +08:00
jdhao
de7b35e0de change plugin load condition
vim-searchlight needs to work when we press n or N or * etc, not just
after pressing / and ?.
2021-08-08 22:37:12 +08:00
jdhao
1ead4f7824 Change plugin load condition 2021-08-08 22:04:56 +08:00
jdhao
ac4bb6c162 Change ultisnips load condition
Benefit of doing this:

+ No change of cursor line position after entering insert mode. Previous,
  if we load ultisnips on InsertEnter, the cursor line will moved
  automatically (e.g., if cursor line is on bottom of the screen, when
  we enter insert mode, now we are at the middle of the screen, like
  Ctrl-E is used before entering insert mode), which is really annoying!
+ We can see the snippets in nvim-compe auto-completion menu. Previously,
  the snippets are not shown on the nvim-compe completion menu (snippet
  expansion works though, it is just we can not see snippets in the
  completion menu), possibly due to the loading order of ultisnips and
  nvim-compe, because we load them both on event InsertEnter. After
  changing ultisnips to a start plugin, this issue is gone.
2021-08-08 21:34:03 +08:00
jdhao
7ecfdda8ff Move packer compile autocmd to new place 2021-08-07 21:47:37 +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
4d3c038cb5 Remove neodark theme
It does not have good highlight for Markdown links.
2021-08-04 01:57:51 +08:00
jdhao
6996b6b24f ALE is not needed (use nvim-lsp instead) 2021-08-01 00:46:00 +08:00
jdhao
9a1066b4e9 Add wilder.nvim for cmdline auto-completion 2021-08-01 00:43:24 +08:00
jdhao
116be0f851 Add doom-one colorscheme 2021-07-30 01:58:47 +08:00
jdhao
3f0c6650f2 Update load condition for vim-fugitive
See https://stackoverflow.com/a/38088814/6064933 for how to check if we
are inside a Git repository.
2021-07-29 23:11:30 +08:00
jdhao
13dc38343e update packer settings for fugitive.vim 2021-07-29 00:10:04 +08:00
jdhao
3cdb08c5f1 update flog setting (make it opt) 2021-07-27 00:02:06 +08:00
jdhao
7ff53d1b91 update fugitive settings 2021-07-27 00:01:45 +08:00
jdhao
69e9a6b872 Add plugin vim-flog for better git-log display 2021-07-26 23:54:25 +08:00
jdhao
edd74337a9 Use vim.cmd instead of vim.api.nvim_exec 2021-07-24 12:45:54 +08:00
jdhao
4ff301a728 Add committia.vim for better git commit experience
It can show git diff in a separate split, which is better than git
commit --verbose.
2021-07-24 01:38:54 +08:00
jdhao
f7a84825ad vim-tmux-focus-events is now obsolete
See also b1330e04ff
2021-07-24 01:31:09 +08:00
jdhao
fae45c5dc8 Clean the code 2021-07-24 01:18:15 +08:00
jdhao
081763697b Remove plugin vim-titlecase
I cann't even remember when I used it last time.
2021-07-24 01:12:18 +08:00
jdhao
ba490516e7 Fix fugitive git index related error for packer.nvim 2021-07-18 18:00:40 +08:00
jdhao
6ed7a50ac8 Remove usage of VimEnter event for packer.nvim
VimEnter can not really decrease the Nvim startup time.
2021-07-18 18:00:25 +08:00
jdhao
d7ad230e01 change onedark theme to onedark.nvim 2021-07-17 01:49:15 +08:00
jdhao
4689c4b22f Use lua to configure lua plugins 2021-07-14 00:51:30 +08:00
jdhao
9c434b472e update packer.nvim settings
Change matching pattern so that we do not confuse this plugins.lua with
files of the same name in other path.
2021-07-13 01:34:18 +08:00
jdhao
9004e09b76 update semshi settings
Only use it on Windows. Treesitter highlighting may be enough.
2021-07-13 01:06:06 +08:00