* 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
* 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
* 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>
* 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.
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.
* Remove typed_pattern
* Rename asyncomplete_refresh_pattern to vim_lsp_refresh_pattern
* Fix textEdit to clear inserted text
* Fix when startcol can not be found
* Find first item for refresh_pattenr
* Fix
* Update doc
* Trim empty spaces right
* Use space
If g:lsp_preview_float is enabled there is no reason to close the
preview window on LspHover and LspSignatureHelp. Moreover the preview
window may be in use by other plugins or by the user.
Co-authored-by: mattn <mattn.jp@gmail.com>