Commit Graph

777 Commits

Author SHA1 Message Date
Agorgianitis Loukas
296fb98d19 Transform cygwin/msys2 paths to windows before encoding them to URIs (#1144)
* Transform cygwin paths to windows before encoding them to uris

* Transform windows paths to cygwin after decoding them from uris

Co-authored-by: mattn <mattn.jp@gmail.com>
2021-04-17 21:25:19 +09:00
tsufeki
89d2889c42 Show completion item detail when there is no documentation (#1133)
Co-authored-by: mattn <mattn.jp@gmail.com>
2021-04-17 21:04:02 +09:00
Prabir Shrestha
5277fc47f0 Revert "only call prop_remove if we have props to avoid clearing of welcome message for vim (#1084)" (#1145)
This reverts commit 627dab05e8.
2021-04-13 15:15:00 -07:00
hrsh7th
9dc382c04a Send workspace_config only if changed (#1137) 2021-04-12 20:16:39 +09:00
rhysd
ab0b3530da import quickpick.vim#3d4d574d16d2a6629f32e11e9d33b0134aa1e2d9 2021-04-04 21:33:49 +09:00
rhysd
fd8bd1c799 make helper function to get completion text from CompletionItem 2021-04-03 14:44:32 +09:00
Daisuke Suzuki
56124b0104 Always show the kind and name in CallHierarchy (#1128)
Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2021-04-02 22:23:39 +09:00
Linda_pp
ce3add957a Fix document layout and misspellings (#1127)
* fix document layout

* fix misspellings
2021-03-31 23:09:06 +09:00
Linda_pp
4d4a908224 select preferred action by default in quickpick (#1126)
spec: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
2021-03-30 02:30:38 +09:00
Prabir Shrestha
882376cc66 apply markdown for output (#1100) 2021-03-28 12:11:07 -07:00
Linda_pp
337d834443 Include command argument labels in Code Lens item's text (fix #1118) (#1119)
* fix index out of range error when no item in quickpick list

* update embedded quickpick to cf41eecb983c41e5fc45e83291b551a85fe554d3

* generate subtitle of codelens item from command arguments' labels

* add tests for lsp#ui#vim#code_lens#_get_subtitle()
2021-03-28 11:58:41 -07:00
Linda_pp
51adba85f0 use quickpick to choose Code Action (#1123)
Co-authored-by: mattn <mattn.jp@gmail.com>
2021-03-28 22:06:41 +09:00
Linda_pp
800c878209 Support show message notification by handling window/showMessage response (#1120)
* support window/showMessage

* describe g:lsp_show_message_log_level in documentation

* add tests for window/showMessage support

Co-authored-by: mattn <mattn.jp@gmail.com>
2021-03-28 21:58:20 +09:00
Linda_pp
b8e75ef927 Fix making location list from call hierarchy items (#1113)
* fix making location list from call hierarchy items (fix #1112)
* use kind and name when detail is not available on handling call hierarchy item
2021-03-21 11:48:11 -07:00
Prabir Shrestha
2ba31c2b9d update async.vim to 0fb846e1eb3c2bf04d52a57f41088afb3395212e (#1117)
avoid has_key check for on_stdout and on_stderr
2021-03-21 11:36:38 -07:00
Linda_pp
a3b58eb7c4 Handle disabled code action (#1115)
* handle disabled code action

* enable disabledSupport capability

Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2021-03-21 22:17:51 +09:00
hrsh7th
e889f80f0f Support plasticboy/vim-markdown (#1116) 2021-03-21 20:51:22 +09:00
Linda_pp
4819b7474a include kind in code action list item (#1111) 2021-03-20 10:57:58 -07:00
Linda_pp
84e9beb5c8 fix handling empty 'insertText' field (fix #1102) (#1109) 2021-03-19 01:34:37 +09:00
hrsh7th
8be2f495b8 Add cache for encoding/decoding uri (#1105) 2021-03-16 00:23:53 -07:00
Prabir Shrestha
24533c28ae add lsp_signature_help_delay to allow users to configure and default to 200 (#1106) 2021-03-15 22:47:30 -07:00
hrsh7th
5fc5e26f5f Fix CodeAction sign (#1101) 2021-03-16 00:20:34 +09:00
Linda_pp
d4f2fa13ac Fix calculating last line of text diff in Lua and add new CI for Vim on macOS (#1097)
* add CI workflow for Vim on macOS
* fix calculating last line of text diff in Lua
2021-03-14 19:53:47 +00:00
hrsh7th
6c21eb65da Improve markdown2 (#1096) 2021-03-14 20:07:40 +09:00
Linda_pp
f076e6a7c0 Use 'label' value when 'insertText' or 'filterText' is falsy (#1095)
* use label when filterText is falsy value

* use label when insertText is falsy value on completion done

* Revert "fix inserting "v:null" when newText in textEdit is null (#1093)"

This reverts commit 907f1c9667.

* Revert "add test case where newText is null for #1093 (#1094)"

This reverts commit e214f1cfee.
2021-03-14 01:59:08 +09:00
Linda_pp
907f1c9667 fix inserting "v:null" when newText in textEdit is null (#1093) 2021-03-13 23:32:36 +09:00
hrsh7th
74f43712eb Improve markdown rendering (#1092) 2021-03-13 20:57:14 +09:00
Prabir Shrestha
eb237a2ced [WIP] add codeaction sign support (#1085)
* add codeaction sign support

* add hl LspCodeActionText

* add docs

* add support for multiple servers

* only set signs if buffer exists
2021-03-06 10:56:44 -08:00
hrsh7th
fea03524cb Does not fire lsp_float_closed if floating-window does not exists (#1082) 2021-03-02 19:59:14 -08:00
Prabir Shrestha
627dab05e8 only call prop_remove if we have props to avoid clearing of welcome message for vim (#1084) 2021-03-02 19:55:48 -08:00
Prabir Shrestha
1cade410de refactor preview code (#1083) 2021-03-02 19:00:26 -08:00
Akinori Hattori
4e9a71c724 Fix preview without popup window (#1068) 2021-03-02 18:56:11 -08:00
Prabir Shrestha
ca2b527dc5 add lsp#notification() for proper $/cancel support (#1079) 2021-02-28 13:47:45 -08:00
Prabir Shrestha
a78536ad74 refactor LspHover (#1063)
* use callbag for hover
2021-02-22 04:35:01 -08:00
hrsh7th
6a2b97cd59 Add scroll keymapping (#1058)
* Add lsp#scroll function

* Update README.md

* Add example setting to docs
2021-02-22 20:51:48 +09:00
hrsh7th
6f8dfe19d5 Disable swapfile for documentation (#1067) 2021-02-12 19:54:48 +09:00
Prabir Shrestha
21a29936ed pass server_name as part of next notification in lsp#request (#1064) 2021-02-02 04:10:04 +00:00
hrsh7th
0c77beb2eb Fix #1059 (#1060) 2021-01-26 20:18:32 +09:00
Prabir Shrestha
7d5cd2763c remove log 2021-01-23 17:14:59 +00:00
Prabir Shrestha
cacfc79eb4 completion/resolve support for documentation and use the new floating window (#1052)
* doc

* floating window with completion/resolve

* add comments

* use _split_by_eol

* copy event

* fix dupe

* Fix size/markdown/detail

* - Improve for exceptional case
- Fix code style
- Support detail only case

* Add lsp_float_opened/lsp_float_closed

* remove old documentation code

* update documenation and change flags to use g:lsp_completion_documentation

Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2021-01-23 09:11:27 -08:00
Prabir Shrestha
7380d31c4f update callbag to 72acf412 - fixes undefined l:found (#1054) 2021-01-18 10:42:26 -08:00
Prabir Shrestha
51a566c878 default to using quickpick for codelens (#1053) 2021-01-18 09:54:59 -08:00
Daisuke Suzuki
17180038a8 add support for call hierarchy (#1046)
* add support for call hierarchy

* no need to use a timer

https://github.com/prabirshrestha/vim-lsp/pull/1046#discussion_r559003701

* add commands to README.md
2021-01-17 18:44:25 -08:00
Prabir Shrestha
951ed0ca0f add FloatingWindow support from vim-vital-vs (#1033) 2021-01-17 15:15:41 -08:00
Prabir Shrestha
90d61f1114 fix snippet (#1051)
* fix snippet
* add snippet test
2021-01-16 12:09:01 -08:00
Prabir Shrestha
6038748cb1 Improve completion perf (#1038)
* improve completion perf

* improve completion popup perf

* fix tests

* remove old s:get_vim_completion_item
2021-01-16 11:05:21 -08:00
jerojasro
3bca7e8c8a Fix/showsigpreview (#1042)
* ensure l:bufferlines is defined when using preview window

previously, when using the preview window to show signatures, the code
failed with an stacktrace like:

    "s:on_stdout client request on_notification() error",
    "Vim(return):E121: Undefined variable: l:bufferlines",
    "function <SNR>118_out_cb[2]..
    <SNR>107_on_stdout[79]..
    <SNR>92_request_on_notification[3]..
    <SNR>93_createNext[1]..
    <SNR>93_subscribeSourceCallback[2]..
    <lambda>738[1]..
    <SNR>94_handle_signature_help[48]..
    lsp#ui#vim#output#preview[39]..
    lsp#ui#vim#output#get_size_info, line 22"

This commit ensures that the required variable is properly defined in
all the situations (popup, nvim, preview window)

* removed superfluous return statement
2021-01-13 15:57:28 +09:00
mattn
db9b57bc03 update quickpick to 37e29b2 - fixes multi-byte strings (#1039) 2021-01-11 23:07:57 +09:00
Prabir Shrestha
3ed0e7aa31 Workspace symbol search using quickpick (#1035) 2021-01-09 22:14:07 -08:00
Prabir Shrestha
bed4d52443 update quickfix to 3c3d58508 - fix vim api update (#1036) 2021-01-09 22:10:43 -08:00