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
Prabir Shrestha
28653fc51f
add border for documention popup ( #1174 )
2021-05-30 12:54:16 -07:00
rhysd
664720be06
add missing return on empty hover contents
2021-04-27 12:13:46 +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
rhysd
ab0b3530da
import quickpick.vim#3d4d574d16d2a6629f32e11e9d33b0134aa1e2d9
2021-04-04 21:33:49 +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
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
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
hrsh7th
5fc5e26f5f
Fix CodeAction sign ( #1101 )
2021-03-16 00:20:34 +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
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
a78536ad74
refactor LspHover ( #1063 )
...
* use callbag for hover
2021-02-22 04:35:01 -08:00
hrsh7th
6f8dfe19d5
Disable swapfile for documentation ( #1067 )
2021-02-12 19:54:48 +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
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
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
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
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
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
micchy326
7770b7d5a3
Add public api get window/workDoneProgress ( #979 )
...
* impl lsp#get_progress() for statusline plugin.
* add workDoneProgress spec link
* refactor s:handle_work_done_progress()
* [workDoneProgress] prevent to subscribe multiple times
* [workDoneProgress] Fixed s:lsp_progress['percentage'] to always be float
* [workDoneProgress] support multiple progress registration.
* [workDoneProgress] Fixed s:lsp_progress['percentage'] to uinteger
* [workDoneProgress] fix for vint
* [workDoneProgress] rename variable
* [workDoneProgress] add test
* [workDoneProgress] write document
* [workDoneProgress] initialize s:progress_ui when enable/disable
* [workDoneProgress] refactor test code
* [workDoneProgress] add lsp_progress_updated
* [workDoneProgress] fix typo
* [workDoneProgress] refactor token handling
* [workDoneProgress] Fixed differences from
specifications(messages->message)
* [workDoneProgress] fix test
2020-12-31 10:51:20 -08:00
Prabir Shrestha
5743ae2110
Diagnostics signs revamp ( #994 )
2020-12-31 01:23:26 -08:00
Prabir Shrestha
bc98be823d
add enable check ( #993 )
2020-12-30 15:41:22 -08:00
Prabir Shrestha
1489cf8295
Revamp diagnostics virtual text ( #990 )
2020-12-30 14:49:44 -08:00
Prabir Shrestha
6bb6069f94
Diagnostics for all buffers ( #982 )
...
* render diagnostics in loclist and fix args paser
* document --buffers flag for LspDocumentDiagnostics
* do not show diagnostics if it is disabled for buffer
* remove old code and fix plug mapping for lsp-document-diagnostics
* add unit tests for document diagnostics command
2020-12-27 22:44:18 -08:00
yaegassy
124a0a6ab9
fix typo: diagnsotics & disable ( #984 )
2020-12-27 22:37:01 -08:00
Prabir Shrestha
5af4e7cdaa
use buf var for buffer level diagnostics enabled flag ( #983 )
2020-12-27 20:23:11 -08:00
Prabir Shrestha
8f5bec6ce9
add buffer state of disabled diagnostics state ( #981 )
2020-12-27 18:29:22 -08:00
Prabir Shrestha
778ebd3ca2
add internal/diagnostics/state.vim ( #978 )
...
* add internal/diagnostics/state.vim
* add unit tests
* add s:enabled
* clean up diagnostics state during server exit
* remove echom
* add tests for lsp_server_exit
* reset when enable
* add notify function
* add link to diagnostics spec
2020-12-27 11:27:17 -08:00
micchy326
630015f8f5
fix LspNextReference ( #976 )
2020-12-26 10:29:54 -08:00
Prabir Shrestha
f9c8184c74
Rename to highlight_references to document_highlight to match lsp ( #968 )
...
* rename highlight_references to document_highlight
* add dynamicRegistration to false for documentHighlight client capabilities
2020-12-24 00:12:45 -08:00
Prabir Shrestha
5c91c59f2a
add lsp#utils#buffer#get_indent_size() ( #957 )
2020-12-23 11:48:46 -08:00
Prabir Shrestha
b316729ef5
use callbag to implement document format with timeout ( #956 )
...
* use callbag to implement document format with timeout
* document lsp#stream() with example
* send message to stream when using lsp#_new_command
* use -- for args parsing and add g:lsp_document_format_sync_timeout
* throw string exception
* use new func for <plug>(lsp-document-format)
* document g:lsp_format_sync_timeout
* rename to document_formatting
* add document_range_formatting.vim
* remove formatting from ui/vim.vim
* document :LspDocumentRangeFormatSync
* add LspDocumentFormatSync example in README.md
2020-12-22 22:08:32 -08:00
Subhaditya Nath
29f93922c3
Fix highlight_references ( #947 )
...
matchadd() matchdelete() are window-local functions, and the matches are
window-local. So, use window-local variable to store and delete them.
Otherwise, the highlights are often not deleted properly, and remain
fixed. (The issue is not consistently reproducible, but frequent)
2020-12-11 20:46:50 -08:00
Trevor Stone
e1adf0f84e
Fix lsp-type-hierarchy plug mapping and a typo. ( #934 )
...
Fixes #933 .
2020-11-20 01:28:21 +00:00
Prabir Shrestha
36cc104764
fix is_error for highlight_references ( #920 )
2020-10-18 09:07:22 -07:00
Prabir Shrestha
51eb1f6676
add support for window/showMessageRequest ( #919 )
...
* show message request
* materialize so doesn't throw error and add message to input list
* fix lint issues and rename flag to lsp_show_message_request_enabled
* use action and fix filter
* document g:lsp_show_message_request_enabled
2020-10-18 08:46:03 -07:00
Prabir Shrestha
9abaa02ad8
refactor type_hierarchy to different file ( #916 )
...
* refactor type_hierarchy to different file
* fix not supported
2020-10-17 10:32:49 -07:00
Prabir Shrestha
a9ac38e0f4
update callbag.vim to v0.3.0 and better handling of errors using materalize ( #899 )
...
* use materialize() for highlight references
* re-enable highlight references by default
* unlet s:Dispose()
* fix checking for isUndefined()
* update callbag to v0.3.0
* dispose if exists
2020-08-31 21:02:34 -07:00
Prabir Shrestha
eb0e5fb885
use callbag for Highlight references ( #891 )
2020-08-30 11:11:51 -07:00