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
jdhao
80ceacbb02
fix vim.diagnostic.config() option name typo
2021-12-01 23:25:45 +08:00
jdhao
402d4012d1
[v0.6] change LSP and diagnostic according to latest API
2021-12-01 22:10:24 +08:00
jdhao
bd92419bf9
remove lsp omnifunc conf
...
I never used it.
2021-11-06 20:05:54 +08:00
jdhao
6281322fce
simplify lsp config
2021-11-06 20:03:21 +08:00
jdhao
ffe588870d
[breaking change] make it work for nvim 0.5.1
...
In nvim 0.5.1, the lsp handler signature has changed, see https://github.com/neovim/neovim/pull/15504
and LunarVim/LunarVim#1484 .
2021-11-06 12:56:54 +08:00
jdhao
2e69db6551
add global variable logging_level
2021-10-23 01:24:32 +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
a85bebdf02
remove some dead mappings
...
I am not really sure what they do anyway.
2021-10-17 02:12:45 +08:00
jdhao
fefc56d1e2
show border for diagnostics floating window
2021-09-23 23:12:47 +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
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
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
8dffa8bd23
chore: formatting and fix spell errors
2021-08-07 03:15:22 +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