1025 Commits

Author SHA1 Message Date
Prabir Shrestha
28653fc51f add border for documention popup (#1174) 2021-05-30 12:54:16 -07:00
Luis David Licea Torres
324ae1e1eb Fixed typo in docs (#1162)
The word "running" appeared twice, so it was removed. The updated line is 79 characters long.
2021-05-29 13:02:42 -07:00
Linda_pp
1f98a06566 check if selected items are empty on handling code action (fix #1156) (#1157) 2021-05-03 15:40:37 +09:00
Linda_pp
b6898841c7 fix error on editing empty file (#1154) 2021-04-29 14:53:56 +09:00
Linda_pp
80f4b269b5 Merge pull request #1151 from rhysd/fix-1141
Add missing return on empty hover contents
2021-04-27 12:19:58 +09:00
rhysd
664720be06 add missing return on empty hover contents 2021-04-27 12:13:46 +09:00
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
Linda_pp
bba0f45c89 Merge pull request #1132 from rhysd/quickpick-3d4d574
Import quickpick.vim#3d4d574d16d2a6629f32e11e9d33b0134aa1e2d9
2021-04-04 21:38:43 +09:00
rhysd
ab0b3530da import quickpick.vim#3d4d574d16d2a6629f32e11e9d33b0134aa1e2d9 2021-04-04 21:33:49 +09:00
Linda_pp
a0023fcc1e Merge pull request #1131 from rhysd/completion-inser-text-refactoring
Make helper function to get completion text from CompletionItem
2021-04-03 14:49:22 +09:00
rhysd
fd8bd1c799 make helper function to get completion text from CompletionItem 2021-04-03 14:44:32 +09:00
Linda_pp
84706b229a Merge pull request #1129 from rhysd/about-maintainers
Include maintainers information in document
2021-04-03 09:54:27 +09:00
rhysd
6f8f49c96e include maintainers information in document
so that users can easily contact to maintainers without making issues on
repository.
2021-04-03 01:26:07 +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
4d40d0dfd0 Merge pull request #1130 from rhysd/ci-checkout-v2
Use checkout action v2
2021-04-02 22:09:59 +09:00
rhysd
d9e03c391a use checkout action v2
since it's slightly faster than v1 and actively maintained
2021-04-02 21:59:26 +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
obcat
7d7ded98dd Silence plug mappings (#1125) 2021-03-28 21:52:25 +09:00
Josh Stone
a31d2aa1f1 Use -wrap=0 in *-nowrap plug mappings (#1121)
Using `--nowrap` doesn't work, but the related commands document that
you should use `-wrap=0`, which does work in the mappings too.

Co-authored-by: mattn <mattn.jp@gmail.com>
2021-03-28 13:37:19 +09:00
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