mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
feat(blink): enable blink cmdline completions
This commit is contained in:
parent
14d2a9baa1
commit
011a35ccb8
1 changed files with 15 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ return {
|
||||||
version = not vim.g.lazyvim_blink_main and "*",
|
version = not vim.g.lazyvim_blink_main and "*",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
event = "InsertEnter",
|
event = { "InsertEnter", "CmdlineEnter" },
|
||||||
|
|
||||||
---@module 'blink.cmp'
|
---@module 'blink.cmp'
|
||||||
---@type blink.cmp.Config
|
---@type blink.cmp.Config
|
||||||
|
|
@ -41,6 +41,7 @@ return {
|
||||||
return LazyVim.cmp.expand(snippet)
|
return LazyVim.cmp.expand(snippet)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
appearance = {
|
appearance = {
|
||||||
-- sets the fallback highlight groups to nvim-cmp's highlight groups
|
-- sets the fallback highlight groups to nvim-cmp's highlight groups
|
||||||
-- useful for when your theme doesn't support blink.cmp
|
-- useful for when your theme doesn't support blink.cmp
|
||||||
|
|
@ -83,6 +84,19 @@ return {
|
||||||
|
|
||||||
cmdline = {
|
cmdline = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
keymap = {
|
||||||
|
preset = "cmdline",
|
||||||
|
-- ["<Tab>"] = { "show", "accept" },
|
||||||
|
-- ["<CR>"] = { "accept_and_enter", "fallback" },
|
||||||
|
},
|
||||||
|
completion = {
|
||||||
|
menu = {
|
||||||
|
auto_show = function(ctx)
|
||||||
|
return vim.fn.getcmdtype() == ":"
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
ghost_text = { enabled = true },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
keymap = {
|
keymap = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue