1025 Commits

Author SHA1 Message Date
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
Prabir Shrestha
87cd0e6137 start quickpick in insert mode by default (#1021) 2021-01-04 22:53:21 -08:00
Prabir Shrestha
89135264c2 embed quickpick.vim and add experimental quickpick support for codelens (#1019) 2021-01-05 05:26:54 +00:00
obcat
58dc3b183c Add title to Lsp(Document|Workspace)Symbol quickfix window (#936)
Co-authored-by: mattn <mattn.jp@gmail.com>
2021-01-05 13:11:18 +09:00
Prabir Shrestha
cb506f5112 add line in codelens (#1015) 2021-01-03 14:31:16 -08:00
Prabir Shrestha
7d15d0f581 convert more of codelens to callbag (#1013) 2021-01-03 02:06:03 -08:00
Linda_pp
513fef901e Fix typos in documents (#1012) 2021-01-03 01:34:32 -08:00
Prabir Shrestha
62ef9585a1 remove CodeLensSync (#1011) 2021-01-02 23:12:09 -08:00
Prabir Shrestha
6d928e18ba use reduce instead of storing local variable (#1010) 2021-01-02 23:08:19 -08:00
Prabir Shrestha
8cff8be67d update callbag.vim to 62a31fd03dfceb0e94a19295a1f6d3d0f2a954ed to support reduce() (#1009) 2021-01-02 23:04:38 -08:00
hrsh7th
d2cbe800e7 Fix cursor position calculation on complete done (#1008) 2021-01-03 14:13:16 +09:00
Prabir Shrestha
1a7a6e08de add support for codeLens/resolve (#1007) 2021-01-02 19:25:19 -08:00
Prabir Shrestha
2ba5289300 update callbag.vim to c721874292709dcf9024496e85f06236f56f66bf 2021-01-03 00:38:58 +00:00
Prabir Shrestha
0cf7e0f8d3 update callbag to 110c554484bd21520c5f75983f9a3ccd72330018 to support flatMap (#1006) 2021-01-02 16:34:38 -08:00
Prabir Shrestha
d78d219abd allow to enable or disable diagnostics per buffer (#1005) 2021-01-02 14:20:05 -08:00
Prabir Shrestha
268341fe60 Diagnostics refactor movements (#1004) 2021-01-02 13:59:31 -08:00
Prabir Shrestha
7c43b01635 refactor diagnostics get buffer first error line to use the new internal state (#1003) 2021-01-02 13:06:07 -08:00
mattn
e846a999f7 Fix function argument (#1002)
Fixes #1000
2021-01-02 12:09:12 -08:00
Linda_pp
748a8e3aea Improve error message at unsupported feature (#1001) 2021-01-03 01:58:03 +09:00
hrsh7th
f6a66a11b5 Fix cursor position after completion (#998)
* Fix cursor position after completion

* Calculate end position

* Add comments
2021-01-02 17:38:16 +09:00
Prabir Shrestha
098509278d refactor diagnostics count to using diagnostics state (#999) 2021-01-02 00:14:05 -08:00
Prabir Shrestha
2eb8d16413 refactor diagnostics under cursor to use the new internal diagnostics state (#997) 2021-01-01 11:31:07 -08:00
Prabir Shrestha
efd07d859e Revamp diagnostics highlights (#995) 2020-12-31 23:13:19 -08:00
Prabir Shrestha
b4f710f143 use callbag share for stream and avoid directly using s:Stream (#996)
Returns a shared version of callbag when calling lsp#stream so that there is a refcount to avoid accidental unsubscriptions and new subscribers will auto subscribe.
2020-12-31 22:14:27 -08:00