Inlay hint (#1347)

* inlay hint

* implement inlayHints

* implement inlayHints

* update doc

* fix

* fix

* separate highlights

* update/clear

* use callbag

* remove from doc

* disable default

* update doc

* check version

* check label array

* call prop_remove()

* use lsp#utils#range#get_range()

* add comma

* add lsp_inlay_hints_mode

* own highlight

* update doc

* fix style check

* rename

lsp#utils#_has_virtual_text to lsp#utils#_has_nvim_virtual_text
lsp#utils#_has_vim9textprops to lsp#utils#_has_vim_virtual_text

* update doc

* fix version

* remove all
This commit is contained in:
mattn
2022-08-25 02:02:42 +09:00
committed by GitHub
parent e5d2d3f744
commit 4d8a27513d
8 changed files with 210 additions and 4 deletions

View File

@@ -69,6 +69,7 @@ function! lsp#enable() abort
call lsp#internal#show_message#_enable()
call lsp#internal#work_done_progress#_enable()
call lsp#internal#completion#documentation#_enable()
call lsp#internal#inlay_hints#_enable()
call s:register_events()
endfunction
@@ -540,6 +541,9 @@ function! lsp#default_get_supported_capabilities(server_info) abort
\ 'dynamicRegistration': v:false,
\ 'contentFormat': ['markdown', 'plaintext'],
\ },
\ 'inlayHint': {
\ 'dynamicRegistration': v:false,
\ },
\ 'implementation': {
\ 'dynamicRegistration': v:false,
\ 'linkSupport' : v:true