mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
improve perf by not calling get_position() (#822)
This commit is contained in:
@@ -250,7 +250,7 @@ endfunction
|
||||
|
||||
function! lsp#omni#default_get_vim_completion_item(item, ...) abort
|
||||
let l:server_name = get(a:, 1, '')
|
||||
let l:complete_position = get(a:, 2, lsp#get_position())
|
||||
let l:complete_position = a:0 >= 2 ? a:2 : lsp#get_position()
|
||||
|
||||
let l:word = ''
|
||||
let l:expandable = v:false
|
||||
|
||||
Reference in New Issue
Block a user