Skip to content

Commit b223eb2

Browse files
authored
lsp: implement goto features (#1030)
* Send doc text on didOpen * Rename clap#for() to clap#open_provider() * Notify didClose on BufDelete * Impl lsp picker * Introduce LanguageConfig * various minor refactorings * Separate syntax/sublime.rs * . * Impl on_move for lsp provider * Disable lsp plugin by default * Clippy fixes * fixes
1 parent 13801fc commit b223eb2

File tree

37 files changed

+1788
-857
lines changed

37 files changed

+1788
-857
lines changed

Cargo.lock

Lines changed: 132 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

autoload/clap.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ function! clap#_exit_provider() abort
177177
call clap#state#clear_post()
178178
endfunction
179179

180-
function! clap#_for(provider_id_or_alias) abort
180+
function! clap#_open_provider(provider_id_or_alias) abort
181181
let g:clap.provider.args = []
182-
call clap#for(a:provider_id_or_alias)
182+
call clap#open_provider(a:provider_id_or_alias)
183183
endfunction
184184

185185
" Sometimes we don't need to go back to the start window, hence clap#_exit_provider() is extracted.
@@ -263,7 +263,7 @@ function! s:try_register_is_ok(provider_id) abort
263263
return s:validate_provider(registration_info)
264264
endfunction
265265

266-
function! clap#for(provider_id_or_alias) abort
266+
function! clap#open_provider(provider_id_or_alias) abort
267267
if has_key(s:provider_alias, a:provider_id_or_alias)
268268
let provider_id = s:provider_alias[a:provider_id_or_alias]
269269
else
@@ -356,7 +356,7 @@ function! clap#(bang, ...) abort
356356
endif
357357
endif
358358

359-
call clap#for(provider_id_or_alias)
359+
call clap#open_provider(provider_id_or_alias)
360360
endfunction
361361

362362
function! clap#run(provider) abort

autoload/clap/handler.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let s:old_input = ''
99

1010
function! s:relaunch_providers() abort
1111
call clap#handler#exit()
12-
call timer_start(10, { -> clap#for('providers') })
12+
call timer_start(10, { -> clap#open_provider('providers') })
1313
call g:clap.input.set('')
1414
endfunction
1515

autoload/clap/impl/on_move.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if clap#maple#is_available()
2020
if a:error isnot v:null
2121
return
2222
endif
23-
call clap#state#render_preview(has_key(a:result, 'result') ? a:result.result : a:result)
23+
call clap#state#update_picker_preview(has_key(a:result, 'result') ? a:result.result : a:result)
2424
endfunction
2525

2626
function! s:dispatch_on_move_impl() abort

0 commit comments

Comments
 (0)