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
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
64819a99ce
update nvim-lsp config
...
Add mapping for LSP code actions and remove useless mappings.
2021-07-13 01:21:38 +08:00
jdhao
3dce4506eb
update packer and plugin settings
2021-07-09 23:31:44 +08:00