* download rust-analyzer
* added empty testproject-rust
* add integration tests for LspDocumentFormatSync
* wipeout all buffer
* set shiftwidth and tabstop
* set gobal shiftwidth and tabstop
* remove tabstop
* sleep 100m
* remove l:got
* get latest line
* sleep 4000m
* use setl shiftwidth=4
* use %bwipeout!
* wait for rust-analyzer to start
* fix lint issues
* indent left
* remove log
* disable log
* set timeout to 10sec
* add 100m sleep
* download rust-analyzer for linux neovim
* add message to diagnostics test
* severity is optional in diagnostics
* download rust-analyzer for mac_neovim
* update README.md with test section
* 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
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)
Allow users to specify their query on the cmdline so they have easier
access to registers and vim-editing methods (especially with ctrl-f to
enter cmdline-window).
* 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
* Load `retriggerCharacters` for signature help.
The LSP (v3.15) specification dictates both `triggerCharacters` and
`retriggerCharacters` in SignatureHelpOptions to trigger Signature
Help. Currently, vim-lsp only loads `triggerCharacters` and not
`retriggerCharacters`.
This PR detects if the LSP server also sent `retriggerCharacters` along
`triggerCharacters`. If so, we append them to the list of
`triggerChars` and treat them as if they were regular `triggerChars`.
* Fix indentation to conform to existing style.
* 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
* Supply first argument to bufnr()
The first argument defaults to the empty string ('') in Vim >= 8.1.1924
and NeoVim >= 0.4.0, but needs to be specified in older versions. The
empty string and the string '%' are equivalent.
* Use bufnr('%') instead of bufnr('')
Language server can send textDocument/publishDiagnostics on starting the
server and it can make vim call error because the uri that language
server publish can be un-opened file. Fix by checking buffer is exist
before calling buf_clear_namespace.
Fixes#886
* text props for references, semantic high. bug.
Use text props for highlighting references, since they support
combining and look better with semantic highlighting.
Fix bug in semantic highlighting when invalid data for semantic
highlighting in the middle of file breaks semantic highlighting for the
half after erroneous line.
* Add SemanticHighlight prefix to log error message