-
Notifications
You must be signed in to change notification settings - Fork 284
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingcmdlineRelated to the command lineRelated to the command line
Description
Make sure you have done the following
- I have updated to the latest version of
blink.cmp
- I have read the README
Bug Description
i have this remaps and somehow blink.cmp breaks them
vim.cmd("cnoreabbrev W! w!")
vim.cmd("cnoreabbrev Q! q!")
vim.cmd("cnoreabbrev Qall! qall!")
vim.cmd("cnoreabbrev Wall! wall!")
vim.cmd("cnoreabbrev Wall wall")
vim.cmd("cnoreabbrev Wq wq")
vim.cmd("cnoreabbrev Wa wa")
vim.cmd("cnoreabbrev wQ wq")
vim.cmd("cnoreabbrev WQ wq")
vim.cmd("cnoreabbrev W w")
vim.cmd("cnoreabbrev Q q")
Relevant configuration
{
"saghen/blink.cmp",
lazy = false, -- lazy loading handled internally
version = "v0.*",
opts = {
keymap = {
preset = "default",
["<C-k>"] = { "select_prev", "fallback" },
["<C-j>"] = { "select_next", "fallback" },
["<CR>"] = { "accept", "fallback" },
},
sources = {
default = { "lsp", "path", "buffer" },
cmdline = function()
local type = vim.fn.getcmdtype()
-- Search forward and backward
if type == "/" or type == "?" or type == ":s" then
return { "buffer" }
end
-- Commands
if type == ":" then
return {}
end
return {}
end,
},
completion = {
list = {
selection = "manual",
},
accept = {
auto_brackets = {
enabled = true,
},
},
menu = {
enabled = true,
border = "rounded",
winhighlight = "Normal:None,FloatBorder:FloatBorder,Search:None",
scrolloff = 2,
scrollbar = true,
draw = {
padding = { 1, 0 },
columns = {
{ "label", gap = 2 },
{ "kind", "source_name", gap = 1 },
},
components = {
label = {
text = function(ctx)
return ctx.label -- .. ctx.label_detail
end,
},
source_name = {
text = function(ctx)
return "[" .. ctx.source_name .. "]"
end,
},
},
},
},
-- docs
documentation = {
auto_show = true,
auto_show_delay_ms = 0,
window = {
border = "rounded",
winhighlight = "Normal:None,FloatBorder:FloatBorder,Search:None",
},
},
},
},
opts_extend = { "sources.default" },
},
neovim version
NVIM v0.10.2 Build type: Release LuaJIT 2.1.1727870382 Run "nvim -V1 -v" for more info
blink.cmp
version: branch, tag, or commit
ADGEfficiency
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcmdlineRelated to the command lineRelated to the command line