Commit Graph

548 Commits

Author SHA1 Message Date
ray-x
feb780fb10 reloaded client when failed 2022-05-22 11:36:25 +10:00
ray-x
ea2c207ec9 updates for client loading 2022-05-22 11:18:24 +10:00
ray-x
b249d1680a handle same lsp started multiple times (esp for those take long time to start ) issue #171 2022-05-21 10:26:20 +10:00
ray-x
13c3dd4072 disable logs when debug is not on 2022-05-20 15:07:42 +10:00
ray-x
a0eff2c5a3 Merge branch 'serverCapcities' 2022-05-20 14:59:02 +10:00
ray-x
51a05252a5 reformat reference_spec 2022-05-19 23:19:28 +10:00
Michael Adler
2e96dcd327
fix(sumneko): fix incorrect usage of runtime.path (#189)
This is quite tricky to get right, because there are two ways for
sumneko to search for files, namely:

1. Lua.runtime.path

When using `require`, how to find the file based on the input name.
Setting this config to `?/init.lua` means that when you enter `require
'myfile'`, `${workspace}/myfile/init.lua` will be searched from the
loaded files.  if `runtime.pathStrict` is `false`,
`${workspace}/**/myfile/init.lua` will also be searched.  If you want to
load files outside the workspace, you need to set
`Lua.workspace.library` first.

2. Lua.workspace.library

In addition to the current workspace, which directories will load files
from. The files in these directories will be treated as externally
provided code libraries, and some features (such as renaming fields)
will not modify these files.

The crucial point is that `Lua.runtime.path` only applies to
the *current* workspace. Thus it makes no sense to add any absolute
directories here. Absolute directories must be added to
workspace.library, which is already the case. The default value provided
by sumneko is what you typically would expect, so I have switched to it.

References:

- 076dd3e5c4/locale/en-us/setting.lua (L5-L13)
- e62d964ff5/script/config/config.lua (L151)
2022-05-19 23:09:16 +10:00
Michael Adler
ff4bcc6d83
doc(packer): depend on nvim-lspconfig (#188) 2022-05-18 23:19:21 +10:00
ray-x
8a32139e1a lsp installer path issue #187 2022-05-17 23:15:16 +10:00
rayx
a73fb38ef9
update resolved_capacities -> server_capacities (#185)
* update resolved_capacities

* format renaming

* remove comments

* remove mk_handler. update documentFormator

* bumpup test image to ubuntu 22.04

* add logs when neovim is lower than 0.8
2022-05-15 23:13:01 +10:00
ray-x
96ca715ea6 add logs when neovim is lower than 0.8 2022-05-15 22:40:22 +10:00
ray-x
45385ccc9a bumpup test image to ubuntu 22.04 2022-05-14 20:42:59 +10:00
ray-x
4d93172915 remove mk_handler. update documentFormator 2022-05-11 00:22:18 +10:00
ray-x
0ac13663cf remove comments 2022-05-08 21:52:21 +10:00
ray-x
500553ae6b format renaming 2022-05-08 21:09:44 +10:00
rayx
c416d99f6f
Merge branch 'master' into serverCapcities 2022-04-30 21:47:14 +10:00
ray-x
d1836f4299 update resolved_capacities 2022-04-30 21:45:26 +10:00
rayx
5131b30ad7
clangd on_attach 2022-04-30 21:38:40 +10:00
ray-x
eb75b09a33 issue #183 clangd missing bufnr 2022-04-28 23:06:44 +10:00
ray-x
93e28f36d0 issue #182 vim nottify in on_attach did not setup log level 2022-04-28 19:56:18 +10:00
ray-x
77b572dd5a terraform_lsp 2022-04-26 21:25:47 +10:00
rayx
794e86057d
Add funding 2022-04-25 19:56:36 +10:00
ray-x
03d0aaa05d add tflint 2022-04-25 19:51:11 +10:00
ray-x
9c67158d9c terraform filetype 2022-04-25 19:51:02 +10:00
ray-x
0c31d692ee https://github.com/ray-x/navigator.lua/pull/179 and issue #177 lsp codelens enable 2022-04-25 09:29:20 +10:00
ray-x
9ceeb41b6f issue #175 format on save 2022-04-24 20:02:53 +10:00
ray-x
0bdaf1f63c issue #175 ftdetect fix 2022-04-22 15:24:52 +10:00
ray-x
c2c1c57136 terraform tf/tfvars, diagnostic show&hide, diagnostic default override 2022-04-20 21:52:45 +10:00
0x7a7a
595263e8b4
fix diagnostic cfg path error (#173)
* fix diagnostic cfg path error

* add defult lsp.diagnostic setting

* Update navigator.lua

Simplify logic

Co-authored-by: rayx <rayx.cn@gmail.com>
2022-04-20 21:01:19 +10:00
ray-x
2f3e2847a3 add neovim 0.7.0 in test pipeline 2022-04-20 20:55:36 +10:00
ray-x
cd53b02f93 use native get_node_text 2022-04-20 20:54:40 +10:00
ray-x
15e6b315b7 add logs 2022-04-17 15:13:54 +10:00
ray-x
31f2f920e1 lsp encoding default value 2022-04-16 21:51:52 +10:00
ray-x
ab4daceede updates for go 1.18 2022-04-16 21:41:23 +10:00
ray-x
23e25c298e issue #164 disable declaration only in reference 2022-04-10 18:59:43 +10:00
ray-x
8b43ed23e2 change the way checking total number of clients attached #167 2022-04-08 17:01:40 +10:00
ray-x
8dbac5efc9 issue #168 ccls highlight 2022-04-08 16:14:47 +10:00
ray-x
d08d78f6a4 skip the reorder for codeaction. Null-ls is default to be in bottom of the list 2022-04-07 12:20:07 +10:00
ray-x
3d217bffce prevent recursion loop 2022-04-07 11:37:14 +10:00
ray-x
2ed33d7d60 stylua 2022-04-06 06:49:12 +10:00
ray-x
e55ae08e9d bugfix #163 defination not found 2022-04-06 06:47:47 +10:00
ray-x
d990da84a6 bugfix #161 callhierachy ccls assertion 2022-04-05 10:06:07 +10:00
ray-x
bb018d541b issue #161 ccls failure 2022-04-05 02:42:49 +10:00
ray-x
b69154f9ee nil handling 2022-04-04 22:37:55 +10:00
ray-x
5c8b3b9ca1 bugfix #157 failed to override clangd setup 2022-04-04 16:15:30 +10:00
ray-x
7f22411b1f issue #156 Can't disable virutal text 2022-03-17 03:03:49 +11:00
ray-x
77dd031f8a remove logs 2022-03-11 09:14:29 +11:00
ray-x
d8e4787bfb lsp installer sample update 2022-03-11 09:03:28 +11:00
ray-x
ab96133b47 support config from a lazy function 2022-03-10 12:25:31 +11:00
ray-x
34c3bc9c76 Merge branch 'master' into neovim_0.7 2022-03-09 09:46:50 +11:00