Commit Graph

128 Commits

Author SHA1 Message Date
hrsh7th
bc821a5bcd Add scroll keymapping 2021-01-25 21:02:45 +09: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
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
3ed0e7aa31 Workspace symbol search using quickpick (#1035) 2021-01-09 22:14:07 -08:00
Prabir Shrestha
e699b0fcb6 add LspDocumentSymbolSearch using quickpick (#1029) 2021-01-09 12:14:26 -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
d78d219abd allow to enable or disable diagnostics per buffer (#1005) 2021-01-02 14:20:05 -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
mattn
ee854b4c55 Add tcp feature (#985)
* Add tcp feature

* Update doc

* Update async.vim embed

* Update doc
2021-01-01 01:28:06 +09:00
Prabir Shrestha
5743ae2110 Diagnostics signs revamp (#994) 2020-12-31 01:23:26 -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
Prabir Shrestha
c4a867b51c add lsp_server_exit notification (#980) 2020-12-27 10:59:27 -08:00
Prabir Shrestha
46cdfe258b fixed document_highlight spelling 2020-12-25 18:04:26 +00:00
Prabir Shrestha
0c4e149ac5 add window.workDoneProgress client capability (#970) 2020-12-24 01:32:55 -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
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
Josip Ćavar
f8752f07d3 Fix typo (#948) 2020-12-11 14:05:01 -08:00
David Briscoe
ca209dc1b8 Document how to use netcat to setup a tcp server (#928)
Related to #469.
2020-11-14 11:56:51 -08:00
Subhaditya Nath
45babeb947 Improved neovim floating windows, and misc. other improvements (#921) 2020-11-15 01:37:01 +09:00
William Boman
fdb69ab913 populate location list with all modified changes in a WorkspaceEdit (#555) 2020-10-23 19:41:32 -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
Josh Stone
d2b6922250 Set Vim variables directly instead of win_execute (#911)
- `lsp#ui#vim#output#setcontent` can use `setbufvar`, as suggested in
  https://github.com/tpope/vim-sleuth/issues/68#issuecomment-699512260.
- The example customizing the popup highlighting can use `setwinvar`,
  just like the example in [Vim's popup documentation][1].

[1]: 373863ed48/runtime/doc/popup.txt (L49)
2020-09-26 10:16:21 -07:00
Josh Stone
ec3090d161 doc: remove a stray line from echo_delay (#910)
This was most likely a copy-paste error.
2020-09-25 18:59:50 -07:00
Prabir Shrestha
eb0e5fb885 use callbag for Highlight references (#891) 2020-08-30 11:11:51 -07:00
Jan Damm
e6912a01cd Make languageId configurable per lsp (#880)
* Make languageId configurable per lsp

* Fix linter warnings

* Use function to define languageId
2020-08-23 10:25:53 -07:00
Prabir Shrestha
a18783de25 add lsp#stream() (#884) 2020-08-22 22:39:52 -07:00
mopp
983bed4f08 fix code snippet in PERFORMANCE section (#866)
The variable name was different from the implementation
11b1350700/plugin/lsp.vim (L6)
2020-07-12 21:18:18 +09:00
Prabir Shrestha
32fae1f0e9 use allowlist and blocklist instead (#847)
* use allowlist and blocklist instead
* add lsp#get_allowed_servers()
2020-06-26 16:13:09 -07:00
Prabir Shrestha
1fd74e47eb remove refrences to async.vim 2020-06-20 23:15:29 +00:00
Thomas Faingnaert
a3673dde78 [WIP] Popup documentation (#507)
* Show documentation in Vim popup

* Use timer

* Reuse logic from output.vim

* Change default text

* Rename functions

* Refactor

* Use v:event

* Add comment

* Remove log

* Refactor

* Implement documentation in Neovim

* Cleanup Neovim popup

* Let Neovim float take all available space

* Extract get_size_info

* Reuse sizing logic from output.vim

* Fix Neovim positioning being reset

* Update autoload/lsp/ui/vim/documentation.vim

Co-Authored-By: Christian Clason <christian.clason@uni-due.de>

* Make vint happy

* Retrigger Travis CI

* add g:lsp_documentation_float flag

* fix lint issues

Co-authored-by: Christian Clason <christian.clason@uni-due.de>
Co-authored-by: Prabir Shrestha <mail@prabir.me>
2020-06-20 12:21:25 -07:00
weiyang
b39f18ab8c [doc] Delete the wrong bracket (#838)
Signed-off-by: weiyang <weiyang.ones@gmail.com>
2020-06-16 19:41:34 -07:00
Prabir Shrestha
e0cacffe54 optimize lsp#omni#get_vim_completion_items() (#835)
* optimize

* fix two omni tests

* fix omni tests
2020-06-13 02:11:02 -07:00
ujihisa
33dcddfbe6 Trivial typofix (#836) 2020-06-11 08:25:53 +09:00
Daisuke Suzuki
18f2e922f7 Add support for code lens (#831) 2020-06-09 22:45:20 -07:00
Bastien Laine
db85c226cd Add config.diagnostics to disable diagnostics per server (#828) 2020-05-30 14:32:18 -07:00
marxin
37e8a77687 Document Preview windows closing (not displaying). (#653) 2020-05-30 21:16:40 +09:00
a5ob7r
848c525729 Fix var names in help about g:lsp_diagnostics_float_delay (#830)
Not lsp_diagnostics_echo_delay but lsp_diagnostics_float_delay.
2020-05-28 22:37:55 +09:00
John Schug
2ca2fe3854 Add support for the tagfunc option (#815)
* Add support for tagfunc option

* Consolidate various synchronous wait implementations

* Refactor to use lsp#utils#position#lsp_to_vim

Also marks get_symbol_text_from_kind as internal and fixes compatibility
with older vims.
2020-05-25 14:41:21 -07:00
Prabir Shrestha
8df76a63c0 [perf] add g:lsp_get_vim_completion_item_set_kind to enable or disable kind (#824)
* add g:lsp_get_vim_completion_item_set_kind to enable or disable kind
* enable lsp_get_vim_completion_item_set_kind for tests
2020-05-24 23:36:42 -07:00
Prabir Shrestha
3d0153bcf9 improve diff by using lua if available (#821)
* use lua if available for diff

* add docs

* sync with latest vim-lsc changes

* lazily init lua

* update vim to 8.2.0817

* update vim to 8.2.0817 for windows

* use vim 8.2.0814

* check for path 8.2.0775 before enabling lua

* use vim 8.2.0813 since it exists for both linux and windows

* update lua patch check

* optimize vimscript diff by using range

* fix lint issues
2020-05-24 13:03:32 -07:00
Cody Buell
a943fe558d Add ability to set unique hi for virtual text (#811)
Have virtual text default to vim-lsp defaults for each severity sign,
follow any set or link for a user defined Lsp*Text highlight group, but
allow for unique hi for Lsp*Virtual.

Updated documentation to reflect changes.  Fixed typo in README.md.
2020-05-08 21:37:30 -07:00
Eivy
c029ce1330 Jumping to diagnostics with command args '-nowrap' (#770)
* Add func 'lsp#utils#parse_command_options'

* Add wrap option to jumping to diagnostic

* Update doc

* Fix lint error

* Remove debug code
2020-05-02 18:41:55 -07:00
Timur Celik
e475e0a407 Add example for g:lsp_get_vim_completion_item (#797)
I added an example because there are some pitfalls if one is not fluent
in vimscript:
- using call() instead of :call
- passing a:item and varargs correctly
- variable name for FuncRef must be uppercase
- g:lsp_get_vim_completion_item must be a List

Co-authored-by: Prabir Shrestha <mail@prabir.me>
2020-05-02 18:32:23 -07:00
Tsuyoshi CHO
f1bc0a109e fix helptag : confilict vim-lsp-settings plugin's help (#807) 2020-04-29 17:16:15 -07:00
thinca
9a4f8de6be Add <mods> support for opening new window (#776)
* Commonalize some similar functions

* Add <mods> support for some commands

Supported commands:
- :LspDeclaration
- :LspDefinition
- :LspTypeDefinition
- :LspImplementation
2020-04-19 09:59:16 -07:00
Mitin Arseny
5dd94c66f7 lsp_diagnostics_updated autocommand (#783)
* feat: lsp_diagnostics_updated autocommand

* docs: remove lightline.vim

* docs: generalize not only for status line
2020-04-10 20:38:28 -07:00
Tsuyoshi CHO
a5b027193d help: fix blacklist description (#756) 2020-03-15 21:05:58 -07:00