Skip to content

Commit

Permalink
Allow completion of C++ overloads (duplicates) (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakhnik authored and natebosch committed Aug 7, 2018
1 parent e4c263e commit cc74a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsc/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ endfunction
" `label` is always expected to be set and is used as the `abbr` shown in the
" popupmenu. This may be different from the inserted text.
function! s:CompletionItem(completion_item) abort
let item = {'abbr': a:completion_item.label}
let item = {'abbr': a:completion_item.label, 'dup': 1}
if has_key(a:completion_item, 'textEdit')
let item.word = a:completion_item.textEdit.newText
let item.start_col = a:completion_item.textEdit.range.start.character + 1
Expand Down

0 comments on commit cc74a14

Please sign in to comment.