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

146 Commits

Author SHA1 Message Date
jdhao 71040c76c6 replace vim-sneak with hop.nvim 2021-10-18 22:53:22 +08:00
jdhao 66be7b9379 use local variable 2021-10-18 22:32:58 +08:00
jdhao 6464539399 nvim-notify update 2021-10-18 22:32:38 +08:00
jdhao e2bcb7d8f4 transition from nvim-compe to nvim-cmp 2021-10-18 21:57:06 +08:00
jdhao b6488d44c1 which-key conf 2021-10-17 07:50:38 +08:00
jdhao 6c14d23707 update which-key.nvim conf 2021-10-17 03:08:05 +08:00
jdhao 6cc198010a remove registers.nvim
Which-key.nvim can show register content too, with much more features.
I found this info on https://toroid.org/modern-neovim.
2021-10-17 02:52:40 +08:00
jdhao a85bebdf02 remove some dead mappings
I am not really sure what they do anyway.
2021-10-17 02:12:45 +08:00
jdhao 768d02b040 update indentBlankline conf 2021-10-16 21:10:57 +08:00
jdhao 3a32e04af1 replace vim-auto-save with AutoSave.nvim 2021-10-16 00:08:36 +08:00
jdhao 3557b7fb09 update which-key conf 2021-10-10 23:51:05 +08:00
jdhao 96898255a0 add which-key.nvim 2021-10-07 23:37:35 +08:00
jdhao fefc56d1e2 show border for diagnostics floating window 2021-09-23 23:12:47 +08:00
jdhao 36711d4a46 update registers.nvim settings 2021-09-09 15:55:25 +08:00
jdhao 83719b7827 update zen-mode.nvim settings
FileType autocmd may be triggered unexpectedly so that ZenMode command
is called at the wrong time.
2021-09-01 01:32:46 +08:00
jdhao 4f07f06e31 Add plugin zen-mode.nvim 2021-08-30 00:47:58 +08:00
jdhao 3c047c8674 update bufferline.nvim settings 2021-08-27 23:08:57 +08:00
jdhao 9f2b846011 Add treesitter parser for vim script again 2021-08-23 22:50:30 +08:00
jdhao 3ae5e1e354 Remove vim parser for treesitter
It is not yet usable: the highlighting is not good compared to regex
based highlighting.
2021-08-22 15:29:00 +08:00
jdhao 81b6a5e207 Enable treesitter highlight for Vim script, closes #17 2021-08-22 02:08:33 +08:00
jdhao 13cc96c00b chore: nvim-bufferline.lua has been renamed to bufferline.nvim 2021-08-21 20:43:25 +08:00
jdhao 42a0663184 Reduce timeout for nvim-notify 2021-08-20 01:12:35 +08:00
jdhao bac94b47a0 Format with stylua 2021-08-18 01:43:08 +08:00
jdhao 7fc6af04ee update neoscroll config 2021-08-17 22:50:06 +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 4f9fbc6092 update barbar.nvim settings 2021-08-14 00:15:56 +08:00
jdhao 4f25c7323e update treesitter settings
TS highlighting for bash is not so good.
2021-08-14 00:01:09 +08:00
jdhao fd354680c0 update barbar.nvim settings 2021-08-13 23:27:52 +08:00
jdhao f9feafa5bb Use barbar.nvim for tabline 2021-08-13 02:05:13 +08:00
jdhao 082a8ab6b5 refactor: rename on_attach to custom_attach 2021-08-12 00:30:07 +08:00
jdhao 9c9e1d639c Add sumneko_lua LSP 2021-08-12 00:12:07 +08:00
jdhao 69c22793e1 update nvim-bqf settings 2021-08-09 23:01:21 +08:00
jdhao 8dffa8bd23 chore: formatting and fix spell errors 2021-08-07 03:15:22 +08:00
jdhao e4cfefe76b chore: remove trailing sapces 2021-07-30 01:50:20 +08:00
jdhao c8777db448 update nvim-lsp settings
We shouldn't let the diagnostic window perstist forever. Close the
diagnostic windows when certain events happen.
2021-07-29 22:31:36 +08:00
jdhao 84680878a2 use vim.cmd instead of vim.api.nvim_exec 2021-07-29 00:09:42 +08:00
jdhao 175ba14e5d update lsp hover window border conf
Floating window border supports rounded style by default, no need to use
customized one.
2021-07-20 00:35:40 +08:00
jdhao 155d9a1f9b More update on nvim-lsp config
Change border from sharp corner to curved corner.
2021-07-17 00:47:19 +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 ffb0601aca Use pylsp instead of pyls
It seems that pyls, the original python language server has lost its
momentum, and pylsp is a community driven fork of pyls. So
nvim-lspconfig has dropped support for pyls in https://github.com/neovim/nvim-lspconfig/pull/1074.
See also https://github.com/palantir/python-language-server/issues/935
and https://github.com/python-lsp/python-lsp-server/issues/27.
2021-07-15 23:33:02 +08:00
jdhao 4689c4b22f Use lua to configure lua plugins 2021-07-14 00:51:30 +08:00
jdhao 64819a99ce update nvim-lsp config
Add mapping for LSP code actions and remove useless mappings.
2021-07-13 01:21:38 +08:00
jdhao bc0a08394b Add treesitter 2021-07-12 23:47:11 +08:00
jdhao 3dce4506eb update packer and plugin settings 2021-07-09 23:31:44 +08:00