Commit Graph

551 Commits

Author SHA1 Message Date
ray-x
451d761f76 features side panel for symbol reference 2022-09-16 21:21:28 +10:00
sp4ke
8278f71878
make sure merge luadev config from user (#229)
Co-authored-by: spike <spike@w530>
2022-09-12 11:13:11 +10:00
ray-x
443fd4d585 issue #228 codelens sign missing 2022-09-08 00:43:24 +10:00
ray-x
10fd76d6d0 default severity 2022-09-07 17:01:01 +10:00
ray-x
8d00282020 volar and diangnostic severity level check 2022-09-07 16:55:59 +10:00
ray-x
9afcd37854 issue #227 2022-09-06 07:55:30 +10:00
ray-x
c70d032b08 mason setup 2022-09-04 23:25:46 +10:00
ray-x
af7fc7d649 some updates for mason 2022-09-04 14:34:46 +10:00
ray-x
d8f19f6fc1 range_code_action deprecated in neovim 0.8 2022-09-02 23:49:01 +10:00
ray-x
df7f4d7229 better format ts_context text 2022-09-01 09:19:37 +10:00
ray-x
fb87a0b1b7 long line improvement 2022-09-01 04:32:14 +10:00
ray-x
927c464b70 optimize for go and ts_contex 2022-08-29 18:20:27 +10:00
ray-x
e9a40aca40 diagnostic: show line diagnostic: offset the floating windows to first error pos 2022-08-29 14:28:01 +10:00
ray-x
edee3e39c6 merge changes for treesitter symbole context 2022-08-27 11:49:08 +10:00
sp4ke
a7886fc055
Fix keymap buffer (#223)
* apply key mapping to selected buffer only

* <help> filetype should not be handled by navigator

Co-authored-by: spike <spike@w530>
2022-08-25 08:59:00 +10:00
yyk
de018d9ae3
Fix invalid buffer in defer fn. (#221) 2022-08-24 03:40:30 +10:00
ray-x
1b262556c0 reuse telecsope color scheme 2022-08-21 19:58:54 +10:00
rayx
b4ff1c43b9
Update codelens.lua 2022-08-09 03:40:23 -07:00
ray-x
ebd88f5d09 re-order code action so null-ls is not the first to see 2022-08-09 15:55:05 +10:00
ray-x
28d245510f using neovim 0.7 API 2022-08-05 19:48:27 +10:00
ray-x
f05d2ec142 lint, expand tab to space for treesitter folding 2022-08-04 19:17:00 +10:00
ray-x
9f151cf718 definition preview, show more contents and allow scroll 2022-08-04 11:07:16 +10:00
ray-x
b131251ad8 send floating view result to quickfix; de-duplicate references 2022-08-01 22:32:15 +10:00
ray-x
8978bdb1e3 issue #219 missing end 2022-08-01 08:45:14 +10:00
ray-x
ae251289b3 issue #218 range format operator 2022-08-01 03:09:43 +10:00
ray-x
a9c223cc22 de-duplicate 2022-07-31 23:17:03 +10:00
ray-x
6c0e286170 update readme for on_attach 2022-07-31 15:49:00 +10:00
ray-x
f24a337f5d switch between buffer type 2022-07-31 15:41:08 +10:00
ray-x
3d87ed3b87 issue #217 README missing symbols 2022-07-31 02:01:51 +10:00
ray-x
5713f79265 clear autocmd #191 2022-07-29 19:02:43 +10:00
ray-x
01ef2ce1a1 typo highlight 2022-07-29 17:16:07 +10:00
ray-x
547f2bc15d doc highlight config options update 2022-07-29 16:43:00 +10:00
ray-x
dc0b8504bb allow document_highlight to be configurable, update REWADME 2022-07-29 09:59:02 +10:00
ray-x
486085070d #191 cleanup 2022-07-29 09:21:33 +10:00
ray-x
fca2fa5aaa some version of neovim does not support underline etc 2022-07-28 09:38:27 +10:00
rayx
49dbca889d
Update clients.lua 2022-07-27 06:43:42 -07:00
ray-x
861ae038dd underdouble is not supported by 0.7.x 2022-07-27 18:21:11 +10:00
ray-x
dcc40278c5 use create_autocmd API; split clients.lua into 3 files 2022-07-27 18:17:07 +10:00
ray-x
6736293182 split sumneko 2022-07-27 17:25:02 +10:00
ray-x
10ef469286 issue #214 lsp_installer loading 2022-07-27 17:20:07 +10:00
ray-x
89dd02c927 using neovim 0.7.0 api for autocmd 2022-07-27 14:36:29 +10:00
ray-x
bbdf86a66e refactor highlight setup. it is for #216 and also using API from neovim 0.7 now 2022-07-27 12:17:02 +10:00
ray-x
ed47d386e6 chore selene setup 2022-07-27 02:37:26 +10:00
ray-x
c3ef990390 lint 2022-07-27 00:24:40 +10:00
ray-x
de5c88c766 lint pipeline 2022-07-26 20:35:09 +10:00
ray-x
348ab9dced mason support #215 2022-07-26 14:29:38 +10:00
ray-x
967fd32bae prevent autocmd being call in a loop 2022-07-20 00:51:16 +10:00
ray-x
4aef8dc5f2 dartls installer not working #212 2022-07-19 12:37:17 +10:00
ray-x
0de6c290cf issue #211 tsserver not working 2022-07-19 07:58:55 +10:00
ray-x
9aad2978dc resend filetype if lsp not ready 2022-07-18 21:43:55 +10:00
ray-x
49c3e5cd4d prevent compare number to bool. As the name for html LSP is html 2022-07-18 08:18:19 +10:00
ray-x
47545e03c0 default border hl to FloatBorder 2022-07-18 07:53:13 +10:00
ray-x
e5d16e4488 renaming highight group from GHxxx to Guihuaxxx 2022-07-18 07:45:23 +10:00
ray-x
3d9a9582dd bugfix #206 diagnostic failure 2022-07-17 09:33:41 +10:00
rayx
05dfed9ed9
issue #171 multiple lsp server started (#205)
* issue #171 multiple lsp server started

* neovim 0.6.1
2022-07-17 09:26:26 +10:00
ray-x
05753da8db add deprecate message 2022-07-12 11:09:56 +10:00
ray-x
85e3f6e045 Allow user pass the lua-dev setup into navigator 2022-07-10 11:05:05 +10:00
ray-x
c30ccd07c9 add options for lsp.buf.format()
update keymap doc
2022-07-09 19:23:48 +10:00
ray-x
4c5d0e67d0 remove table nil handling 2022-07-07 20:28:17 +10:00
ray-x
be6da35767 improve treesitter folding 2022-07-07 14:02:29 +10:00
ray-x
f567f1b99c dedup definition for script languages 2022-07-07 14:02:14 +10:00
ray-x
a93f7cb20f dedup reference results 2022-07-07 10:18:15 +10:00
ray-x
289f67013d indent fallback if treesitter not found 2022-07-06 10:05:58 +10:00
ray-x
56b00b83d5 diagnostic func failed to keymap 2022-07-05 02:13:24 +10:00
ray-x
3fe9a876c4 bugfix hover keymaps not mapped correctly 2022-07-04 10:03:54 +10:00
rayx
acca6009e0
[Breaking] using vim.keymap.set, breaking changes (#200)
* using vim.keymap.set, breaking changes

* update keymaps

* doc updates
2022-07-04 00:13:19 +10:00
ray-x
a225d18eaf new tests for hierarchy, refactor reference_spec test 2022-07-03 21:29:00 +10:00
ray-x
7d84a9f0c0 issue #201 vfn nil 2022-07-03 20:09:28 +10:00
ray-x
22e858f261 #195 update doc for rust-tool, make client/bufnr require fields for mapping.setup(opts) when calling from rust/clangd on_attach 2022-07-03 11:37:56 +10:00
ray-x
724d5f3439 add scope info in treesitter panel 2022-07-02 20:51:12 +10:00
ray-x
3dc8c02c39 add scope info in panel 2022-07-02 20:49:54 +10:00
ray-x
91d1366b65 update treesitter for 0.6.1 pipeline 2022-07-02 12:20:11 +10:00
ray-x
d951a5fcd2 fix for test failure 2022-07-02 11:12:58 +10:00
ray-x
68eb18c310 offset for definition preview 2022-06-30 01:39:06 +10:00
ray-x
8d77c3ab1e bug fix for #166 not all items shown in listview. Also add flag allow control when the ts info will be added
update readme
2022-06-29 14:53:50 +10:00
rayx
9f7bd6ebff
Feature/198 calltree (#199)
* refactor hierarchy.lua

* show side panel for hierarchy

* allow call hierarchy to fold and expand to show call tree

* update command maps
2022-06-28 14:40:19 +10:00
ray-x
aba0d89745 remove traceback logs 2022-06-27 08:51:03 +10:00
ray-x
c1b0694bef map incoming/outgoing calls handler 2022-06-27 08:47:50 +10:00
ray-x
9dee73010b optimize treesitter symbol tree 2022-06-26 19:46:23 +10:00
ray-x
1b3a02df3e symbol indent level for embedded struct 2022-06-24 12:10:08 +10:00
rayx
1f6103ed95
Side panel (#197)
* add sidepanel

* revert some changes and fix nil indent level

* Add side panel; bugfix for ctags
2022-06-22 01:56:17 +10:00
ray-x
7bfd9157fe update TS fold 2022-06-17 19:36:21 +10:00
ray-x
48e35f4e56 hold ctags windows untils ctags cmd finished 2022-06-17 02:21:56 +10:00
ray-x
27442d2784 simpily codeaction and range_code_action keymapping and code 2022-06-16 13:40:06 +10:00
ray-x
3ad93531b5 unit tests for treesitter 2022-06-15 19:34:17 +10:00
ray-x
61a82559d6 add treesitter tests 2022-06-15 17:37:45 +10:00
ray-x
f8985d7aa2 allow skip lsp clients setup 2022-06-14 08:56:49 +10:00
ray-x
516d643ffe lsp installer update issue #181 2022-06-12 20:44:20 +10:00
ray-x
6b4cfa3d59 symbol layout update 2022-06-12 08:39:23 +10:00
ray-x
cce0e90544 gui listview updates, allow listview cover more spaces 2022-06-11 16:11:11 +10:00
rayx
2f35446fbe
issue #192 pylsp range missing (#193)
* issue #192 pylsp range missing
2022-06-11 16:09:49 +10:00
ray-x
1908ea5175 improve line rendering when trim long text 2022-06-08 16:56:46 +10:00
ray-x
6c3ee44729 bugfix workspace symbol from multiple lsp clients 2022-06-07 02:19:53 +10:00
ray-x
6e937e9019 workspace symbole search improvements. allows to show interactive search results in the symbol list. 2022-06-06 20:20:20 +10:00
ray-x
01801ba8fa change ts not load notify level 2022-06-03 21:36:23 +10:00
ray-x
d0ab595b93 code action flicker 2022-06-02 19:24:55 +10:00
ray-x
3f49769abc lint all codes 2022-06-02 01:41:26 +10:00
ray-x
32ddd66dd2 fix for issue#191 2022-05-28 19:37:15 +10:00
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
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
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
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
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
ray-x
03d0aaa05d add tflint 2022-04-25 19:51:11 +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
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
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
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
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
studierer
035917c57a
add more lsp (#152) 2022-03-05 21:27:25 +11:00
ray-x
3e03e37d9f update terraform setup 2022-03-04 17:25:27 +11:00
ray-x
5773f66d14 terraform updates 2022-03-04 17:20:03 +11:00
ray-x
74eccbd799 Merge branch 'master' into neovim_0.7 2022-03-01 21:42:06 +11:00
ray-x
0346fc3c0f hash key update 2022-03-01 21:41:52 +11:00
ray-x
b2d846647b Merge branch 'master' into neovim_0.7 2022-02-26 19:27:06 +11:00
ray-x
cfe8738ad5 disable filetype 'gitcommit' 2022-02-26 19:25:40 +11:00
ray-x
982fe81922 Merge branch 'master' into neovim_0.7 2022-02-26 19:01:36 +11:00
ray-x
d024335c91 update client loading 2022-02-26 19:01:12 +11:00
ray-x
41593cb7e4 remove json from auto highlight autocmd 2022-02-26 18:06:36 +11:00
ray-x
429cd16292 remove json from highlight autocmd 2022-02-26 18:05:50 +11:00
ray-x
2c7334e1b6 Merge branch 'master' into neovim_0.7 2022-02-24 19:08:41 +11:00
ray-x
3adbbaf509 remove terraform from auto highlight 2022-02-24 19:07:57 +11:00