jdhao
72e6480933
Use LspAttach to configure buffer behavior ( #392 )
2025-03-30 20:54:53 +02:00
jdhao
265f171172
remove unused variable
2025-03-30 18:58:23 +02:00
jdhao
0816faee76
Separate diagnostic config from lsp ones ( #389 )
2025-03-30 17:58:09 +02:00
jdhao
5f662f143b
update various config after nvim 0.11 release ( #386 )
2025-03-28 20:27:02 +01:00
jdhao
f005a8303d
Nvim version bump ( #385 )
...
* update nvim version to 0.11.0
* replace deprecated nvim_err_write/nvim_err_writeln call
* replace deprecated func for diagnostic and lsp
* use vim.hl instead
* use new way to define diagnostic signs
2025-03-26 22:33:39 +01:00
jdhao
2383eb7075
switch back to nvim-cmp ( #381 )
2025-02-16 21:03:17 +01:00
jdhao
7e706515a8
silently format lua file using stylua
...
We need to disable the mapping set for LSP, otherwise the mapping set in
lua.vim will be overridden.
2024-12-19 23:45:15 +01:00
jdhao
5328c477a8
reformat with stylua
2024-12-19 22:16:23 +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
db380ca7a7
remove inspect() from lua _G table
...
Nvim nows provides `vim.inspect()` and `vim.print()`.
2024-09-01 21:47:21 +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
fd6df981cd
Update nvim-ufo settings
2024-08-06 23:58:54 +08:00
jdhao
719fbfc1ab
update lua_ls settings
2024-07-31 05:42:33 +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
1391ca7ff1
feat: switch from packer.nvim to lazy.nvim
2023-08-27 23:14:31 +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
jdhao
8746c7eb11
fix: omit the clangd missing message, close #180 ( #186 )
...
It is not necessary to install clangd if the user does not use neovim with CPP/C.
2023-03-13 19:55:00 +08:00
jdhao
7c44997289
refactor: lua language server rename ( #185 )
...
The lua language server from sumneko had changed its repo and created a
new organizational repo. See also https://github.com/neovim/nvim-lspconfig/pull/2439 .
2023-02-16 17:39:23 +08:00
bldur
53c17aea96
Add ltex-ls support to lsp. ( #166 )
...
* Add ltex-ls support to lsp.
Co-authored-by: bldur (https://github.com/bldur )
2022-11-28 17:35:43 +08:00
jdhao
2073f72e67
refactor: use local diagnostic module
2022-10-23 15:18:03 +08:00
jdhao
26921309ec
replace more viml with native lua code
2022-10-15 19:00:34 +08:00
jdhao
a6f716558b
update nvim-cmp lsp conf
2022-10-15 18:30:14 +08:00
jdhao
d40d87cb61
nvim 0.8 update
2022-10-04 19:34:20 +08:00
jdhao
aaeb6a813a
format with stylua
2022-09-10 23:55:22 +08:00
jdhao
0582f26abe
refactor: lsp mapping
2022-09-09 19:42:01 +08:00
jdhao
14860072d0
use local keymap
2022-09-06 21:53:44 +08:00
jdhao
bc9b0a8cf8
fix parameter for vim.notify
2022-08-26 19:47:56 +08:00
jdhao
d5b7584e68
add config dir to workspace.library for lua lsp
2022-08-18 13:15:20 +08:00
jdhao
2880d7bce3
chore: renaming
2022-08-14 20:16:00 +08:00
jdhao
fcbd7d3a0d
Merge pull request #62 from jdhao/lua-lsp
...
update lua lsp conf
2022-08-14 18:11:41 +08:00
jdhao
97f302084f
update sumneko lua settings
...
1. remove runtime.path settings. It seems that it is not necessary, 03a047ef52 .
2. update workspace.library, ref plugin ii14/emmylua-nvim
2022-08-14 17:53:40 +08:00
jdhao
cad9f5a214
make inspect() global
2022-08-14 11:39:37 +08:00
jdhao
ecde08941b
update lua-language-server conf
...
lua-language-server has changed its running method significantly, so we
need to change it in the nvim-lspconfig.
2022-08-13 23:08:25 +08:00
jdhao
95b7ee5bc8
lsp: only show diagnostic once for each line if cursor is not moved
...
This will help use to check signature help without it being overwritten
by diagnostic popups.
2022-05-18 13:32:35 +08:00
jdhao
4899a82b35
refactor: local fn = vim.fn
2022-05-15 21:16:02 +08:00
jdhao
a3795cd043
[nvim 0.7] use native lua autocmd for cleaner code
2022-04-16 12:07:48 +08:00
jdhao
f7bb7caba6
[nvim 0.7] vim.keymap.set opts update
2022-04-16 01:00:21 +08:00
jdhao
617fb733d7
[nvim 0.7] use the new vim.keymap interface
2022-04-16 00:17:10 +08:00
jdhao
38883b3fc5
fix: check if language server exists before using
2022-01-28 13:13:24 +08:00
jdhao
597b11638f
chore: use local variable lspconfig
2022-01-28 13:13:01 +08:00
jdhao
694f4d0ca1
add bash-language-server
2022-01-26 22:54:49 +08:00
jdhao
3928935402
update lsp setting
2022-01-23 16:13:34 +08:00
jdhao
dcffbf9a71
fix: lsp reference highlight isn't correctly linked
...
! is need to overwrite possible existing highlight group of the same
name.
2021-12-28 23:49:43 +08:00