From e9980268cb59f6246fa65bda2688af3fc96ece4e Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 19 Apr 2023 20:28:02 +0800 Subject: Use placeholders in golang completion --- .vim/after/plugin/lsp.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to '.vim/after/plugin/lsp.vim') diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index cbc5b15..63a9fd2 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -28,6 +28,9 @@ if executable('gopls') \ 'name': 'gopls', \ 'cmd': {server_info->['gopls']}, \ 'allowlist': ['go'], + \ 'initialization_options': { + \ 'ui.completion.usePlaceholders': v:true, + \ }, \ }) endif -- cgit v1.2.3