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
Describe the bug
After debugging my configuration I found that nvim-hlslens interferes with the completion popup opened by blink.cmp. Specifically, it appears that nvim-hlslens causes the completion popup to be dismissed after hitting the <Tab> key twice in commandline mode.
Since "blink.cmp" works fine with every other plugin in my configuration, my suspicion is that "hlslens" has some unexpected behaviour.
Does nvim-hlslens modify the commandline in anyway?
To Reproduce using nvim -u mini.lua
Example: cat mini.lua
-- <insert rocks.nvim bootstrap code (see end of issue)> or install the plugins using other means (latest git revision for both).require("blink-cmp").setup({
keymap= {
cmdline= {
["<Tab>"] = { "select_next", "fallback" },
["<S-Tab>"] = { "select_prev", "fallback" },
},
},
completion= {
list= {
selection="auto_insert",
},
},
})
require("hlslens").setup()
Open neovim with minimal configuration
Start typing a command, e.g. ":ro"
Press <Tab> at least twice
Expected behavior
The completion popup is dismissed after pressing the second <Tab> and it shouldn't.
Screenshots
Additional Context
rocks.nvim bootstrap snippet
do-- Specifies where to install/use rocks.nvimlocalinstall_location=vim.fs.joinpath(vim.fn.stdpath("data"), "rocks")
-- Set up configuration options related to rocks.nvim (recommended to leave as default)localrocks_config= {
rocks_path=vim.fs.normalize(install_location),
}
vim.g.rocks_nvim=rocks_config-- Configure the package path (so that plugin code can be found)localluarocks_path= {
vim.fs.joinpath(rocks_config.rocks_path, "share", "lua", "5.1", "?.lua"),
vim.fs.joinpath(rocks_config.rocks_path, "share", "lua", "5.1", "?", "init.lua"),
}
package.path=package.path..";" ..table.concat(luarocks_path, ";")
-- Configure the C path (so that e.g. tree-sitter parsers can be found)localluarocks_cpath= {
vim.fs.joinpath(rocks_config.rocks_path, "lib", "lua", "5.1", "?.so"),
vim.fs.joinpath(rocks_config.rocks_path, "lib64", "lua", "5.1", "?.so"),
}
package.cpath=package.cpath..";" ..table.concat(luarocks_cpath, ";")
-- Add rocks.nvim to the runtimepathvim.opt.runtimepath:append(
vim.fs.joinpath(rocks_config.rocks_path, "lib", "luarocks", "rocks-5.1", "rocks.nvim", "*")
)
end-- If rocks.nvim is not installed then install it!ifnotpcall(require, "rocks") thenlocalrocks_location=vim.fs.joinpath(vim.fn.stdpath("cache"), "rocks.nvim")
ifnotvim.uv.fs_stat(rocks_location) then-- Pull down rocks.nvimvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/nvim-neorocks/rocks.nvim",
rocks_location,
})
end-- If the clone was successful then source the bootstrapping scriptassert(vim.v.shell_error==0, "rocks.nvim installation failed. Try exiting and re-entering Neovim!")
vim.cmd.source(vim.fs.joinpath(rocks_location, "bootstrap.lua"))
vim.fn.delete(rocks_location, "rf")
end
Thanks a lot for the work on this plugin, I really enjoy using it.
The text was updated successfully, but these errors were encountered:
nvim --version
:v0.10.3
6.12.7-arch1-1
Describe the bug
After debugging my configuration I found that
nvim-hlslens
interferes with the completion popup opened byblink.cmp
. Specifically, it appears thatnvim-hlslens
causes the completion popup to be dismissed after hitting the<Tab>
key twice in commandline mode.Since "blink.cmp" works fine with every other plugin in my configuration, my suspicion is that "hlslens" has some unexpected behaviour.
Does
nvim-hlslens
modify the commandline in anyway?To Reproduce using
nvim -u mini.lua
Example:
cat mini.lua
<Tab>
at least twiceExpected behavior
The completion popup is dismissed after pressing the second
<Tab>
and it shouldn't.Screenshots
Additional Context
rocks.nvim bootstrap snippet
Thanks a lot for the work on this plugin, I really enjoy using it.
The text was updated successfully, but these errors were encountered: