lspserver.completeItemsIsIncomplete = cItems.isIncomplete
endif
- var ultisniplist = UltiSnips#SnippetsInCurrentScope()
-
- for [key, info] in items(ultisniplist)
- echom key
- items->add({
- label: key,
- data: {
- entryNames: [key],
- },
- kind: 15,
- info: info,
- })
- endfor
+ if opt.lspOptions.ultisnipsSupport
+ var ultisniplist = UltiSnips#SnippetsInCurrentScope()
+ for [key, info] in items(ultisniplist)
+ items->add({
+ label: key,
+ data: {
+ #file: '/home/olex/TMP/test/test.js',
+ entryNames: [key],
+ },
+ kind: 15,
+ #detail: info,
+ documentation: info,
+ })
+ endfor
+ endif
# Get the keyword prefix before the current cursor column.
var chcol = charcol('.')
endif
endif
- if item->has_key('info')
- d.menu = item.info
- endif
-
d.user_data = item
completeItems->add(d)
endfor
showSignature: true,
# enable snippet completion support
snippetSupport: false,
+ # enable SirVer/ultisnips completion support
+ ultisnipsSupport: false,
# Use a floating menu to show the code action menu instead of asking for input
usePopupInCodeAction: false,
# ShowReferences in a quickfix list instead of a location list`
snippetSupport |Boolean| option. Enable snippet completion support.
Need a snippet completion plugin like vim-vsnip.
By default this is set to false.
+ultisnipsSupport |Boolean| option. Enable SirVer/ultisnips support.
+ Need a snippet completion plugin SirVer/ultisnips.
+ By default this is set to false.
usePopupInCodeAction |Boolean| option. When using the |:LspCodeAction|
command to display the code action for the current
line, use a popup menu instead of echoing.