plugins.blink-cmp.settings.sources.cmdline
cmdline
or buffer
.
Type: null or (list of (string or raw lua code)) or raw lua code
Default:
null
Plugin default:
lib.nixvim.mkRaw ''
function()
local type = vim.fn.getcmdtype()
-- Search forward and backward
if type == '/' or type == '?' then return { 'buffer' } end
-- Commands
if type == ':' then return { 'cmdline' } end
return {}
end
''
Declared by:
plugins.blink-cmp.settings.sources.default
Default sources.
Type: null or (list of (string or raw lua code)) or raw lua code
Default:
null
Plugin default:
[
"lsp"
"path"
"snippets"
"buffer"
]
Declared by:
plugins.blink-cmp.settings.sources.min_keyword_length
Minimum number of characters in the keyword to trigger.
Type: null or unsigned integer, meaning >=0, or raw lua code
Default:
null
Plugin default: 0
Declared by:
plugins.blink-cmp.settings.sources.per_filetype
Sources per filetype.
Type: null or (attribute set of ((list of string) or raw lua code)) or raw lua code
Default:
null
Plugin default: { }
Declared by:
plugins.blink-cmp.settings.sources.transform_items
Function to transform the items before they’re returned.
Type: null or raw lua code
Default:
null
Plugin default: lib.nixvim.mkRaw "function(_, items) return items end"
Declared by: