You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Press either <c-y> to accept or <c-n> to navigate to the next option
Notice that the d character appears at the end of the completion, after the cursor
A few other things I've noticed:
This doesn't happen when completing ---@diagnostic, but it will happen when completing disable-next-line or missing-fields (as in, ---@diagnostic disable-next-line: missing-fields).
It is always the last character that is inserted at the end, so if I type ---@diagnostic di, an i will be inserted at the end, or if I type dis, it will be an s.
Config:
-- Run with `nvim -u repro.lua`vim.env.LAZY_STDPATH=".repro"load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
---@diagnosticdisable-next-line:missing-fieldsrequire("lazy.minit").repro({
spec= {
{
"saghen/blink.cmp",
-- please test on `main` if possible-- otherwise, remove this line and set `version = '*'`-- build = "cargo build --release",version="*",
opts= {
sources= {
default= {
"lsp",
},
},
},
},
{
"neovim/nvim-lspconfig",
opts= {
servers= {
lua_ls= {},
},
},
config=function(_, opts)
locallspconfig=require("lspconfig")
forserver, configinpairs(opts.servers) do-- passing config.capabilities to blink.cmp merges with the capabilities in your-- `opts[server].capabilities, if you've defined itconfig.capabilities=require("blink.cmp").get_lsp_capabilities()
lspconfig[server].setup(config)
endend,
},
},
})
Make sure you have done the following
blink.cmp
<C-k>
on https://cmp.saghen.dev)Bug Description
Reproduction:
repro.lua
---@diagnostic d
<c-y>
to accept or<c-n>
to navigate to the next optiond
character appears at the end of the completion, after the cursorA few other things I've noticed:
---@diagnostic
, but it will happen when completingdisable-next-line
ormissing-fields
(as in,---@diagnostic disable-next-line: missing-fields
).---@diagnostic di
, ani
will be inserted at the end, or if I typedis
, it will be ans
.Config:
Relevant configuration
neovim
versionNVIM v0.10.3 Build type: Release LuaJIT 2.1.1734355927
blink.cmp
versionv0.12.4
The text was updated successfully, but these errors were encountered: