fixed for blink breaking changes

This commit is contained in:
Oliver Hartmann 2025-02-17 10:23:21 +00:00
parent d5e60bf5ef
commit 59ae868284

View File

@ -80,17 +80,7 @@ return {
-- elsewhere in your config, without redefining it, via `opts_extend`
sources = {
default = { 'copilot', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'codeium' },
-- optionally disable cmdline completions
-- cmdline = {},
cmdline = function()
local type = vim.fn.getcmdtype()
-- Search forward and backward
if type == '/' or type == '?' then return { 'buffer' } end
-- Commands
if type == ':' or type == '@' then return { 'cmdline', 'buffer' } end
return {}
end,
providers = {
copilot = {
name = 'copilot',
@ -121,6 +111,29 @@ return {
},
},
cmdline = {
sources = function()
local type = vim.fn.getcmdtype()
-- Search forward and backward
if type == '/' or type == '?' then return { 'buffer' } end
-- Commands
if type == ':' or type == '@' then return { 'cmdline', 'buffer' } end
return {}
end,
completion = {
trigger = {
show_on_blocked_trigger_characters = {},
show_on_x_blocked_trigger_characters = nil, -- Inherits from top level `completion.trigger.show_on_blocked_trigger_characters` config when not set
},
menu = {
auto_show = nil, -- Inherits from top level `completion.menu.auto_show` config when not set
draw = {
columns = { { 'label', 'label_description', gap = 1 } },
},
}
}
},
completion = {
list = {
selection = {