Commit Graph

225 Commits

Author SHA1 Message Date
micchy326
19c63348c7 Add window/workDoneProgress/create response (#973) 2020-12-25 17:55:13 +00:00
Prabir Shrestha
5d0648cbe4 send clientInfo as part of InitializeParams (#971) 2020-12-24 12:40:51 -08:00
Prabir Shrestha
0c4e149ac5 add window.workDoneProgress client capability (#970) 2020-12-24 01:32:55 -08:00
Prabir Shrestha
3cdca33b2e added more dynamicRegistration set to false (#969) 2020-12-24 00:35: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
42c9618928 add references capabilities (#967) 2020-12-23 23:57:44 -08:00
Prabir Shrestha
d64a5156ea explicitly set dynamic registration to false and sort (#966) 2020-12-23 23:34:01 -08:00
Prabir Shrestha
f763ff829e add hover client capabilities (#965) 2020-12-23 23:23:22 -08:00
Prabir Shrestha
af55fd3a2c set synchornization client capabilities (#964) 2020-12-23 23:16:16 -08:00
Prabir Shrestha
632ae96876 add addtionalTextEdits for resolve support capability (#963) 2020-12-23 22:32:05 -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
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
860dcabb6b send server requests to stream (#918)
* send server requests to stream
* comment out method not found
2020-10-17 14:34:58 -07:00
mattn
46330cd0cb Set <nomodeline> to all of doautocmd (#904) 2020-09-17 22:36:19 +09:00
Prabir Shrestha
a8dd16f59a fix comment 2020-09-01 04:04:23 +00: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
Martin Kourim
1a01ffddbe Make sure signature_help and completion get properly disabled (#875)
* Make sure signature_help and completion get properly disabled

* Rename teardown -> _disable

Co-authored-by: Prabir Shrestha <mail@prabir.me>
2020-08-26 12:45:10 -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
mattn
04cef02eed Trigger didOpen for buffers already loaded (#873) 2020-07-29 20:32:31 +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
9389c28ae2 migrate diagnostics float cursor to use callbag (#846)
* use callbag for diagnostics float cursor
* fix feature flag test
2020-06-26 11:15:31 -07:00
Prabir Shrestha
c245bfd7a4 use callbag (#845)
* add callbag.vim

* add diagnostics

* add comments

* implement cancel

* optimize cancelled=1

* handle more cancel cases

* use callbag for echo.vim

* rename to _enable() _disable() and also check for changedtick

* move to internal

* group lsp#request

* ignore terminal for echo

* dont bother to subscribe if diagnostics echo not enabled

* remove deprecation comment

* update callbag.vim to v0.1.0

* fix lint issues
2020-06-25 07:42:28 -07: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
Bastien Laine
db85c226cd Add config.diagnostics to disable diagnostics per server (#828) 2020-05-30 14:32:18 -07: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
C. Wu
5c5649bdda Avoid autocmd-once for compatibility of VIM8.0 (#802) 2020-04-25 15:42:58 -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
hrsh7th
46308234a2 Implement register command (#735)
* Implemente register command

* Add server_name to command context

* Expose lsp_to_vim, vim_to_lsp API's as public
2020-03-03 13:09:41 +09:00
mattn
b2b3199f05 Handle empty buffer-name (#730) 2020-02-28 15:12:17 +09:00
mattn
80ec75e1da Export root_uri resolved (#729)
* Export root_uri resolved

* Avoid uninitialized
2020-02-25 17:39:16 +09:00
hrsh7th
6f3d2d4e79 Update diagnostics when document open (#727) 2020-02-25 11:08:49 +09:00
mattn
77f3536c8b Add lsp#activate() (#713)
Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2020-02-20 01:47:15 +09:00
Fujiwara Takuya
682a20caf5 g:lsp_diagnostics_{echo,float}_cursor are NOT exclusive (#711) 2020-02-09 19:01:12 -08:00
Fujiwara Takuya
52539a54ae Show diagnostics in a floating window (#700)
* fix comment

* fix indent

* support diagnostics in a floating window

* doc: add g:lsp_diagnostics_float_{cursor,delay}

* fix vint errors except unused variables

* suppress vint unused variable errors

* lint: use robust operator
2020-02-10 01:44:05 +09:00
itchyny
2526438c44 Register CursorMoved event only when required (#699) 2020-02-08 22:17:57 +09:00
mattn
bf8d206eca Cache signature_help_trigger_chars (#696)
* Cache signature_help_trigger_chars

* Move code to the part which updating init_results.

* Tweaking delay for signature help

* Disable warning of unused-variables
2020-01-31 00:31:53 +09:00
hrsh7th
70234feca4 Improve code action (#663)
* Improve code action

* Add LspCodeActionSync

* Fix miss argument

* Fix for the review

* Add utils and tests

* Remove unused function
2020-01-09 08:35:39 -08:00
mattn
896abb2d69 Ignore cmdwin (#664)
* Ignore cmdwin

* Ignore / cmdwin
2020-01-09 08:07:29 -08:00
hrsh7th
fef60795ec Improve signature help with lexima.vim (#638)
* Improve signature help with lexima.vim

* Fix buffer change problem

* Display signature help after cursor jumped

* Fix event

* Add _ prefix for inner functions
2020-01-04 09:17:03 -08:00
prabirshrestha
6bb1252a9c show long of starting server 2020-01-04 09:12:12 -08:00
hrsh7th
f769a450b2 Fix CompleteDone (#637)
* Move some codes to completion.vim that related to handling CompleteDone.

* Add abort

* Fix test

* Add l: prefix to self vars

* Disable unused vars

* Restore position

* Support snippet simple case and vim-lsp-snippets

* Support g:lsp_text_edit_enabled

* Fix for v:null results

* Fix multi-byte chars

* Add document

* Fix for vim-lsp-snippets for now

* Prepare to future improvements

* More clalify line comment

* User get_user_data instead of extract_user_data

* Always use [''] pattern for accessing dictionary property

* Fix misspelling

* More strict check for completionProvider.resolveProvider

* Fix obj.key to obj['key']

* Store completed_item id to the user_data

* Fix omni tests

* Apply for the review
- Rename expand_text_simply -> simple_expand_text
- to_col -> _lsp_to_vim
- Rename user_data key

* Add example tests

* Add timeout to completionItem/resolve in completion.vim

* Fix timeout feature

* Add timeout log

* Fix documents
2020-01-02 01:08:34 -08:00
Prabir Shrestha
4468bbc2bd add lsp#_new_command() and lsp#_last_command() (#648)
* add lsp#_new_command() and lsp#_last_command()

* remove log

* fix rename
2020-01-01 18:18:55 -08:00
Prabir Shrestha
67caa411c8 add initial support for type hierarchy (#641) 2019-12-31 17:12:55 -08:00
Prabir Shrestha
7ccab31b79 default hierarchicalDocumentSymbolSupport to false for documentSymbol (#630) 2019-12-26 12:52:42 -08:00
Thomas Faingnaert
2f725fb4c3 Implement semantic highlighting (#464) 2019-12-26 10:08:30 -08:00
Vu Le
d3ce720d43 no text document did save delay by default (#629) 2019-12-26 10:03:32 -08:00
mattn
a38c46d591 Unlet exited in server (#605)
* Unlet exited in server

* LspStopServer can be specified with name
2019-12-18 16:34:44 +09:00
mattn
0956e85875 Print color statuses (#602)
* Print color statuses

* Prefer single quoted strings
2019-12-16 18:37:38 -08:00