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
After visually selecting some lines and trying to type a command, for example :<,>s/foo/bar/ (<,> is automatically added by neovim as the selection range markers), when you just finished typing s and press <Up> (binded to "select_prev" when using enter preset), the completion menu will erase the <,> markers. The completion only works as intended if there is a space before s, for example: :<,> s/foo/bar/. Similar behaviour was observed when manually typing the line ranges, like :3,5s/foo/bar/ won't work, but :3,5 s/foo/bar/ will.
Relevant configuration
-- 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',
opts= {
keymap= { cmdline= { preset='enter' }},
},
},
{
'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,
},
},
})
neovim version
v0.10.3
blink.cmp version
main
The text was updated successfully, but these errors were encountered:
Hi, thanks for the fix! It works for visual range selection (:'<,'>), but for line number ranges (:3,5) it doesn't seem to be working. Is it possible to fix this as well?
Thank you for working on the fix!!!
I think the parsing has to be extended for a general list of special characters as well. doing :echo &buf<completion_key> inserts the selection and removes &
Make sure you have done the following
blink.cmp
<C-k>
on https://cmp.saghen.dev)Bug Description
After visually selecting some lines and trying to type a command, for example
:<,>s/foo/bar/
(<,>
is automatically added by neovim as the selection range markers), when you just finished typings
and press<Up>
(binded to"select_prev"
when usingenter
preset), the completion menu will erase the<,>
markers. The completion only works as intended if there is a space befores
, for example::<,> s/foo/bar/
. Similar behaviour was observed when manually typing the line ranges, like:3,5s/foo/bar/
won't work, but:3,5 s/foo/bar/
will.Relevant configuration
neovim
versionv0.10.3
blink.cmp
versionmain
The text was updated successfully, but these errors were encountered: