diff options
author | mattn <mattn.jp@gmail.com> | 2020-01-29 23:46:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 23:46:10 +0900 |
commit | 21d4e0de702bf11498036ba95463e593f2c28d29 (patch) | |
tree | 09009e3a798169f9383e878c51b19a6f8798852c | |
parent | 73f40e2308586197424a875b5717a0c9514ddc36 (diff) | |
parent | bc5b624da72f4a6843dbf05c4b04c9f5716c7cae (diff) | |
download | vim-lsp-settings-21d4e0de702bf11498036ba95463e593f2c28d29.tar.gz vim-lsp-settings-21d4e0de702bf11498036ba95463e593f2c28d29.tar.bz2 vim-lsp-settings-21d4e0de702bf11498036ba95463e593f2c28d29.zip |
Merge pull request #116 from mattn/fix-dup-candidate
Remove duplicate candidate in command completion
-rw-r--r-- | autoload/lsp_settings.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim index 536d993..08bc138 100644 --- a/autoload/lsp_settings.vim +++ b/autoload/lsp_settings.vim @@ -114,7 +114,7 @@ function! lsp_settings#complete_uninstall(arglead, cmdline, cursorpos) abort call add(l:installers, l:conf.command) endfor endfor - return filter(l:installers, 'stridx(v:val, a:arglead) == 0') + return filter(uniq(l:installers), 'stridx(v:val, a:arglead) == 0') endfunction function! lsp_settings#complete_install(arglead, cmdline, cursorpos) abort @@ -151,5 +151,5 @@ function! lsp_settings#complete_install(arglead, cmdline, cursorpos) abort call add(l:installers, l:conf.command) endif endfor - return filter(l:installers, 'stridx(v:val, a:arglead) == 0') + return filter(uniq(l:installers), 'stridx(v:val, a:arglead) == 0') endfunction |