Skip to content

Commit fe138c8

Browse files
committed
fix(hover): fix hover on set options format
1 parent ffb12a7 commit fe138c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/server/builtin.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,12 @@ class Builtin {
204204
contents: this.formatVimDocument(this.vimPredefinedVariableDocuments[name]),
205205
};
206206
// options
207-
} else if (isSomeMatchPattern(optionPattern, pre) && this.vimOptionDocuments[name.slice(1)]) {
207+
} else if (
208+
isSomeMatchPattern(optionPattern, pre)
209+
&& (this.vimOptionDocuments[name] || this.vimOptionDocuments[name.slice(1)])
210+
) {
208211
return {
209-
contents: this.formatVimDocument(this.vimOptionDocuments[name.slice(1)]),
212+
contents: this.formatVimDocument(this.vimOptionDocuments[name] || this.vimOptionDocuments[name.slice(1)]),
210213
};
211214
// builtin functions
212215
} else if (builtinFunctionPattern.test(next) && this.vimBuiltFunctionDocuments[name]) {

0 commit comments

Comments
 (0)