-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completion-menu overlap with cmdline view #134
Comments
Fixed! |
Thank you for the quick fix! Is that something I am required to configure manually now? |
Highlight works for me. Not sure what the problem is. Can you check with a minimal.lua? |
Feel free to open a new issue :) |
@folke Is it not a highlight but a cursorline? |
Yes! That's it indeed. NuiMenu uses the cursorline for that |
If you want to enable/disable the cursorline in active windows, use this: -- show cursor line only in active window
vim.api.nvim_create_autocmd({ "InsertLeave", "WinEnter" }, {
callback = function()
local ok, cl = pcall(vim.api.nvim_win_get_var, 0, "auto-cursorline")
if ok and cl then
vim.wo.cursorline = true
vim.api.nvim_win_del_var(0, "auto-cursorline")
end
end,
})
vim.api.nvim_create_autocmd({ "InsertEnter", "WinLeave" }, {
callback = function()
local cl = vim.wo.cursorline
if cl then
vim.api.nvim_win_set_var(0, "auto-cursorline", cl)
vim.wo.cursorline = false
end
end,
}) |
Thanks! Your method is very straight forward. |
Describe the bug
Using
cmdline
view places the popup (not nvim-cmp) completion menu on top of cmdline, Cant see what is being typedAlso, the highlight for the currently selected item from popupmenu is no longer visible
Screenshots
config
The text was updated successfully, but these errors were encountered: