Skip to content

Commit f9a5d7b

Browse files
authored
Merge pull request #2568 from bhcleek/gopls/options/json-bools
lsp: use correct values for boolean json encoding
2 parents 0d9775b + 9550a23 commit f9a5d7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoload/go/lsp/message.vim

+4-4
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ function! go#lsp#message#ConfigurationResult(items) abort
190190
let l:config = {
191191
\ 'buildFlags': [],
192192
\ 'hoverKind': 'NoDocumentation',
193-
\ 'deepCompletion': go#config#GoplsDeepCompletion(),
194-
\ 'fuzzyMatching': go#config#GoplsFuzzyMatching(),
195-
\ 'completeUnimported': go#config#GoplsCompleteUnimported(),
196-
\ 'usePlaceholders': go#config#GoplsUsePlaceholders(),
193+
\ 'deepCompletion': go#config#GoplsDeepCompletion() ? v:true : v:false,
194+
\ 'fuzzyMatching': go#config#GoplsFuzzyMatching() ? v:true : v:false,
195+
\ 'completeUnimported': go#config#GoplsCompleteUnimported() ? v:true : v:false,
196+
\ 'usePlaceholders': go#config#GoplsUsePlaceholders() ? v:true : v:false,
197197
\ }
198198
let l:buildtags = go#config#BuildTags()
199199
if buildtags isnot ''

0 commit comments

Comments
 (0)