blink.cmp icon indicating copy to clipboard operation
blink.cmp copied to clipboard

abbreviations does not work

Open Snikimonkd opened this issue 1 year ago • 0 comments

Make sure you have done the following

  • [X] I have updated to the latest version of blink.cmp
  • [X] 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

ca05bb33eb071d916d33af08cae8034c3d8002b5

Snikimonkd avatar Dec 20 '24 18:12 Snikimonkd