var ftypeOmniCtrlMap: dict<bool> = {}
var defaultKinds: 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',
- 'Contant': 'd',
- 'Struct': 's',
- 'Event': 'E',
- 'Operator': 'o',
- 'TypeParameter': 'T'
+ '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'
}
# Returns true if omni-completion is enabled for filetype 'ftype'.
# Map LSP complete item kind to a character
def LspCompleteItemKindChar(kind: number): string
- var kindMap: list<string> = ['',
- 'Text',
- 'Method',
- 'Function',
- 'Constructor',
- 'Field',
- 'Variable',
- 'Class',
- 'Interface',
- 'Module',
- 'Property',
- 'Unit',
- 'Value',
- 'Enum',
- 'Keyword',
- 'Snippet',
- 'Color',
- 'File',
- 'Reference',
- 'Folder',
- 'EnumMember',
- 'Contant',
- 'Struct',
- 'Event',
- 'Operator',
- 'TypeParameter'
+ var kindMap: list<string> = [
+ '',
+ 'Text',
+ 'Method',
+ 'Function',
+ 'Constructor',
+ 'Field',
+ 'Variable',
+ 'Class',
+ 'Interface',
+ 'Module',
+ 'Property',
+ 'Unit',
+ 'Value',
+ 'Enum',
+ 'Keyword',
+ 'Snippet',
+ 'Color',
+ 'File',
+ 'Reference',
+ 'Folder',
+ 'EnumMember',
+ 'Constant',
+ 'Struct',
+ 'Event',
+ 'Operator',
+ 'TypeParameter'
]
if kind > 25
# map the LSP symbol kind number to string
export def SymbolKindToName(symkind: number): string
- var symbolMap: list<string> = ['', 'File', 'Module', 'Namespace', 'Package',
- 'Class', 'Method', 'Property', 'Field', 'Constructor', 'Enum',
- 'Interface', 'Function', 'Variable', 'Constant', 'String', 'Number',
- 'Boolean', 'Array', 'Object', 'Key', 'Null', 'EnumMember', 'Struct',
- 'Event', 'Operator', 'TypeParameter']
+ var symbolMap: list<string> = [
+ '',
+ 'File',
+ 'Module',
+ 'Namespace',
+ 'Package',
+ 'Class',
+ 'Method',
+ 'Property',
+ 'Field',
+ 'Constructor',
+ 'Enum',
+ 'Interface',
+ 'Function',
+ 'Variable',
+ 'Constant',
+ 'String',
+ 'Number',
+ 'Boolean',
+ 'Array',
+ 'Object',
+ 'Key',
+ 'Null',
+ 'EnumMember',
+ 'Struct',
+ 'Event',
+ 'Operator',
+ 'TypeParameter'
+ ]
if symkind > 26
return ''
endif