Commit Graph

890 Commits

Author SHA1 Message Date
Prabir Shrestha
c2c166975e use whileloop 2021-06-17 07:06:41 +00:00
Prabir Shrestha
bd5e5573f5 Revert "Revert "perf: parse array instead of combining it to string (#1175)" (#1199)"
This reverts commit fb0a72306e.
2021-06-17 06:51:38 +00:00
Prabir Shrestha
fb0a72306e Revert "perf: parse array instead of combining it to string (#1175)" (#1199)
This reverts commit f53a98754e.
2021-06-16 00:14:44 -07:00
naohiro ono
9ecbe24af9 Fix weird autocmd group names (#1195)
* Fix weird autocmd group names

Problem : augroup "0", "1", and "2" are registered.
Solution: Use proper operator for string concatenation.

* Update callbag.vim
2021-06-10 18:31:11 -07:00
Geoffrey Huntley
7e8812bbb7 docs: add opencollective integration to the readme (#1196) 2021-06-10 18:28:20 -07:00
hrsh7th
02db70be69 Avoid duplicated syn include (#1194) 2021-06-10 11:42:30 +09:00
mattn
516fd7ce95 diagnostics list can be v:null (#1190)
* diagnostics list can be v:null

Ref #1186

* ditto

* Small refactoring

* Use lsp#utils#iteratable for the list which possibly be v:null
2021-06-09 01:51:59 +09:00
mattn
61916a2ddd diagnostics list can be v:null (#1186)
* diagnostics can be v:null

* Fix indentation
2021-06-08 00:50:31 +09:00
Linda_pp
72b9a300c7 Set type of location list items for diagnostics (#1143)
* set type of location list items for diagnostics

* use s:get_diagnostic_severity_text() once while making location list from diagnostics results

Co-authored-by: mattn <mattn.jp@gmail.com>
2021-06-07 20:47:17 +09:00
vimuxx
f3bde658ab E119: Not enough arguments for function: lsp#ui#vim#call_hierarchy_incoming (#1182) 2021-06-06 23:21:27 -07:00
hrsh7th
ddd5abb5b6 Fix borderchars and debug=throw (#1178) 2021-06-02 12:56:57 +09:00
Piotr Usewicz
83c0e4fcab diagnsostics -> diagnostics (#1179) 2021-06-01 19:36:48 -07:00
Daisuke Suzuki
541ed984b1 Add LspAddTreeCallHierarchyIncoming (#1139) 2021-05-31 13:41:41 -07:00
woky
d0f6bd5ae7 More secure minimal.vimrc (#1158)
* More secure minimal.vimrc

Make minimal.vimrc not execute arbitrary code from Internet or local processes.
- Do not skip TLS checks. GitHub should have valid TLS certificate.
- Save plug.vim to home directory. /tmp is writeable by all local processes.

* miminal.vimrc: Make plug directory home local too
2021-05-31 13:34:29 -07:00
Prabir Shrestha
f53a98754e perf: parse array instead of combining it to string (#1175) 2021-05-30 13:17:54 -07:00
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