showDiagInPopup: true,
# Don't print message when a configured language server is missing.
ignoreMissingServer: false,
- # Customize all LSP kinds from the completion popup
- lspKinds: {},
# Use a floating menu to show the code action menu instead of asking for input
usePopupInCodeAction: false
}
-export var defaultLspKinds: dict<string> = {
- text: 't',
- method: 'm',
- function: 'f',
- constructor: 'C',
- field: 'F',
- variable: 'v',
- class: 'c',
- interface: 'i',
- module: 'M',
- property: 'p',
- unit: 'u',
- value: 'V',
- enum: 'e',
- keyword: 'k',
- snippet: 'S',
- color: 'C',
- file: 'f',
- reference: 'r',
- folder: 'F',
- enumMember: 'E',
- constant: 'd',
- struct: 's',
- event: 'E',
- operator: 'o',
- typeParameter: 'T'
-}
-
-# get a custom LSP kind to use in the completion
-export def GetLspKind(name: string): string
- if has_key(lspOptions.lspKinds, name)
- return lspOptions.lspKinds[name]
- endif
-
- return defaultLspKinds[name]
-enddef
-
# set LSP options from user provided options
export def OptionsSet(opts: dict<any>)
for key in opts->keys()
popup window to display the message instead of
echoing in the status area. By default this is set to
true.
+usePopupInCodeAction When using the |:LspCodeAction| command to display the
+ code action for the current line, use a popup menu
+ instead of echoing.
+ By default this is set to false.
ignoreMissingServer Do not print a missing language server executable.
By default this is set to false.