jdhao
d86f599483
update the fold level allowed for statuscol.nvim
2024-11-08 22:57:33 +01:00
jdhao
8dfae271d0
use plaintext for pyright hover request
...
see my comment here for the details: https://www.reddit.com/r/neovim/comments/1gdv1rc/comment/lvt9nlm/
2024-11-07 21:53:32 +01:00
jdhao
1141a18c5f
update config for pyright
2024-11-06 23:19:55 +01:00
jdhao
9769c24633
Switch Python LSP for completion and add ruff
...
pyright servers type checking, completion, and ruff servers linting and
diagnostics (ruff can also format Python files, but it is slightly
different from black)
2024-11-05 22:09:33 +01:00
jdhao
97f72936ac
Enable LSP format also for visual selection
2024-11-05 22:04:49 +01:00
jdhao
94cade03be
enable inlayhint for lua_ls server
...
The client side inlayhint can be enabled by uncommentting the code in
this PR.
2024-11-05 22:01:23 +01:00
jdhao
b9cf3cc6ed
update conf for plugin live-command.nvim
2024-09-20 21:26:28 +02:00
jdhao
154cde3d71
Add plugin live-command.nvim
2024-09-19 22:07:03 +02:00
jdhao
db380ca7a7
remove inspect() from lua _G table
...
Nvim nows provides `vim.inspect()` and `vim.print()`.
2024-09-01 21:47:21 +02:00
jdhao
9071e045eb
Make * and # search case aware
...
By default, when you press `*` to search word under the cursor, the
option `smartcase` is ignored. This means that if you press `*` when
your cursor is on `The`, the lower case one `the` is also searched.
In this commit, we translate star and # search into normal search so that
'smartcase' option is respected.
2024-08-30 01:01:04 +02:00
jdhao
e3930e8aa7
remove unused plugins
2024-08-25 23:36:29 +02:00
jdhao
21522bd194
update config for yanky
2024-08-25 23:34:03 +02:00
jdhao
a3c8b3d5b5
Update configuration for nvim-cmp
...
1. restrict max width of the completion menu. Here I am using
lspkind.nvim to achieve this. There are other native ways to do this,
see also https://github.com/hrsh7th/nvim-cmp/discussions/609 and
https://github.com/hrsh7th/nvim-cmp/issues/980
2. remove cmp-emoji as it is rarely used and interfere when I write
Python
3. lower the transparency for popup menu
2024-08-20 01:04:02 +02:00
jdhao
f9780c2dff
update config for bufferline.nvim
...
Do not show buffer number and use a mapping to pick buffer instead.
2024-08-17 17:29:33 +02:00
jdhao
256c37a946
update vim-fugitive mapping
2024-08-17 15:16:08 +02:00
jdhao
d90273df8e
remove lua_ls conf in favor of lazydev.nvim
...
The removed settings are already set by lazydev.nvim.
2024-08-15 23:44:50 +02:00
jdhao
a602d98819
fix git mapping issue
...
`<cmd> `mapping must end with `<CR>`
2024-08-09 22:23:04 +02:00
jdhao
9ff76931e3
update git related mappings
2024-08-09 22:19:13 +02:00
jdhao
f1062a3d8f
filter fold level sign for statuscol.nvim
...
Only show fold signs for fold level below a certain level to avoid
clutter the left side columns with a lot of folding signs
2024-08-07 00:14:19 +08:00
jdhao
fd6df981cd
Update nvim-ufo settings
2024-08-06 23:58:54 +08:00
jdhao
8af8ebd72a
remove statusline.lua
2024-08-06 17:25:33 +02:00
jdhao
4c697d89f3
change name of lualine config
2024-08-06 23:04:37 +08:00
jdhao
794b098090
Add git blame mapping
2024-08-06 05:59:14 +08:00
jdhao
acc3ed7829
show error message only when no word is under cursor
2024-08-06 05:33:24 +08:00
jdhao
44e9e5a1ce
Fix lua_ls diagnostic warnings
2024-08-06 05:24:16 +08:00
jdhao
e165276763
fix error when there is no cursor word
2024-08-05 06:23:18 +08:00
jdhao
933b887281
update config for nvim-ufo
2024-08-05 05:50:45 +08:00
jdhao
69643e143a
use plugin nvim-ufo for better folding
...
The settings are copied from https://github.com/kevinhwang91/nvim-ufo/issues/4#issuecomment-1514537245 ,
with some modification.
2024-08-05 05:27:49 +08:00
jdhao
bbb8545403
update lualine config
...
- rearrange a few components
- add and remove a few components
2024-08-02 06:23:21 +08:00
jdhao
719fbfc1ab
update lua_ls settings
2024-07-31 05:42:33 +08:00
jdhao
cb8c9208e1
update which-key conf and some mappings
2024-07-25 04:00:17 +08:00
jdhao
2af616bb0d
Update hop.nvim conf to support Chinese
2024-06-26 03:33:24 +08:00
jdhao
3694d3c237
Update config for GitSigns
2024-06-26 03:25:01 +08:00
jdhao
69d8543495
remove emmylua since neovim has builtin annotation
...
Seee also this https://github.com/neovim/neovim/pull/24493
2024-05-20 22:09:07 +02:00
jdhao
050eacaee2
Stop showing percent location
...
The percent location is useless and just noise.
2024-02-23 06:11:21 +08: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
8d74fcb75c
Remove obsolete options for nvim-tree
2023-10-11 20:43:24 +02:00
jdhao
97af59e670
remove obsolete option for indent-blankline
2023-10-03 15:14:34 +02:00
jdhao
4d8ef868ad
upgrade indent-blankline to v3
2023-09-28 23:41:42 +02:00
jdhao
3137850db6
Show Py virtual env on statusline
2023-09-28 09:42:27 +02:00
jdhao
ad483a7dc0
Use the matained fork of hop.nvim
2023-09-16 14:47:43 +02:00
jdhao
e92362041c
fix hlslens issue when no pattern is found
...
The captured error message is not correct before.
2023-09-01 21:22:22 +02:00
jdhao
1391ca7ff1
feat: switch from packer.nvim to lazy.nvim
2023-08-27 23:14:31 +02:00
jdhao
946e65662b
fix nvimtree conf, close #215
2023-08-14 23:55:17 +02:00
jdhao
4a6379ca5d
update git-linker conf
...
1. Add configuration for azure devops
2. change the mappings slightly
2023-08-09 19:52:58 +02:00
jdhao
1608a36dd3
fix: conf is not local
2023-07-25 23:00:25 +02:00
jdhao
450f058da5
feat: support venv in Mypy
...
Specify the correct python executable path for mypy to work well.
2023-07-25 22:59:06 +02:00
jdhao
e2f348cb37
fix: missing nerdfonts
...
Since wezterm upgrade its support for Nerd Fonts 3.0, we should update
the codepoints used for some of the Unicode Icons. Their code points are
changed due to breaking changes in Nerd Fonts.
2023-07-25 22:53:20 +02:00
jdhao
fc8175d32d
feat: update diagnostic mappings
...
Use separate key mappings to show diagnostics for the current buffer and
all opened files.
2023-07-22 15:01:41 +02:00
jdhao
4034b6b673
feat: update pylsp conf
...
1. support using black as formatter
2. replace obsolete pyls-isort with maintained ones
2023-07-22 14:51:27 +02:00