Commit Graph

848 Commits

Author SHA1 Message Date
Linda_pp
67a3561a54 add .gitattribute to highlight *.vimspec and .themisrc as Vim script on GitHub (#1122) 2021-03-28 13:27:58 +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
Jaen
350b3219cf Clarify that vim-plug should be installed first (#1114) 2021-03-20 10:59:38 -07:00
Linda_pp
4819b7474a include kind in code action list item (#1111) 2021-03-20 10:57:58 -07:00
Linda_pp
8a39ef5904 Add integration tests with gopls instead of rust-analyzer (#1108)
* Revert "remove flaky integration tests (#1098)"

This reverts commit 78c107085a.

* use gopls for integration tests instead of rust-analyzer

* specific Go and gopls versions via envvar on CI

* remove unused test helper for Rust test project

based on https://github.com/prabirshrestha/vim-lsp/pull/1108#discussion_r595689580

* include multibyte text in integration test case

based on https://github.com/prabirshrestha/vim-lsp/pull/1108#discussion_r595690354

* cache gopls binary on running CI workflows

* update doc to run integ tests
2021-03-20 10:54:17 -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
Prabir Shrestha
58f18ee40d document diagnostics and code action signs hint (#1099)
* document code action signs hint
* document diagnostics signs default hint
2021-03-14 20:48:28 -07:00
Prabir Shrestha
78c107085a remove flaky integration tests (#1098) 2021-03-14 13:23:20 -07: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
e214f1cfee add test case where newText is null for #1093 (#1094) 2021-03-13 23:50:58 +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
v0.1.4
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
7442e27a76 add lsp-workspace-symbol-search example in README.md 2021-01-10 20:17:23 +00: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
Prabir Shrestha
678c059238 update quickpick to 601f826 - fixes mapclear <buffer> (#1030) 2021-01-09 12:47:17 -08:00
Prabir Shrestha
e699b0fcb6 add LspDocumentSymbolSearch using quickpick (#1029) 2021-01-09 12:14:26 -08:00
Prabir Shrestha
c1a9a73864 update quickpick to 601f826b829d - do not call mapclear <buffer> (#1031) 2021-01-09 12:08:26 -08:00
Subhaditya Nath
03ca21d60a Improve documentation popup in neovim. Fix typo. (#1017)
* Typo fixed

* Improve placement of documentation popup in neovim

If the available space in either side of the completion popup is less
than 3/4 of the required width, then we shall place the documentation
popup below (or above, if necessary) of the completion popup.

Previously, the documentation was just squashed into whatever space was
available. It made documentation undreadable in some cases.
2021-01-09 11:13:44 -08:00
Subhaditya Nath
ac7eacd3a2 Fix prabirshrestha/vim-lsp#1016 (#1027)
Closes prabirshrestha/vim-lsp#1016
2021-01-08 17:25:32 +09:00
Subhaditya Nath
2ef2f768d3 Fix prabirshrestha/vim-lsp#1024 (#1028)
Closes prabirshrestha/vim-lsp#1024
2021-01-08 16:38:39 +09:00