-
Notifications
You must be signed in to change notification settings - Fork 176
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
Bug: opening LSP definition in a vsplit in an unsaved buffer causes annoying message to popup #1677
Comments
Correct fzf-lua is to blame here but it shouldn’t popup in a vsplit (only if it replaces the current buffer). I’m assuming you’re not using |
It happens even with |
I’m confused how can this popup with nohidden, I’ll have to check this later when not AFK. The condition below can’t happen with fzf-lua/lua/fzf-lua/actions.lua Lines 159 to 170 in 2b6fb06
|
Screencast.From.2025-01-06.20-03-14.webm |
I believed you without the video, I’m just befuddled, until I can test this myself :) |
I'm investigating the issue. If I find anything I'll write a PR. |
Ty @iniw, AFAIK the location I linked is the only place save dialog is called in my code. |
Btw what’s the value or your |
Yeah, it is, and that branch is not being taken. Here's a log of all relevant variables in the Looks like the problem is coming from somewhere else.
That's a command AFAIK, wdym what value is set? |
Yes I meant what’s the output of |
Just |
This might be the issue, see Can you run |
|
That prevents the popup from appearing but now I get the following warning: And also, doesn't setting |
At least now we know what’s triggering the popup so I can solve it, I’m still not sure why this happens but I have a guess. can you add |
That does fix it! Thank you. |
Fantastic, now I know exactly what’s happening, using LSP pickers fzf-lua converts entries to URI so it can call specialty entries like We just turned the URI conversion off but you’re not missing out on much. I’ll look into fixing this later today. |
Yeah I don't think I've ever used that feature.
Fantastic, I'll add the Thanks for the excellent support today. The two issues I reported were super annoying, makes me so glad to have them fixed! Thanks a lot, again. |
see ibhagwan/fzf-lua#1677 for more details
Ty for being so responsive, the only way we get to perfection :) |
see ibhagwan/fzf-lua#1677 for more details
Found some more edge cases regarding same buffer splits and |
RTFM Checklist
man fzf
/ I am well versed in shell fzfOperating system
NixOS
Shell
zsh
Neovim version (
nvim --version
)NVIM v0.10.2
Fzf version (
fzf --version
)0.56.3 (v0.56.3)
Output of
:lua print(os.getenv('FZF_DEFAULT_OPTS'))
nil
Is the problem reproducible with
mini.sh
?mini.sh
mini.sh
mini.sh
(not relevant, requires LSP, Windows, etc)Fzf-lua configuration
Describe the bug / steps to reproduce
When I use
gad
with that config it opens the definition of the current symbol in a vertical split. The problem is that when I'm working on a modified and not-yet-saved buffer a message pops up complaining that I have to save the buffer before continuing. This is very disruptive.Cursor hovering over symbol, before I press
![image](https://private-user-images.githubusercontent.com/30220881/400567751-55e692a2-b9cf-4b3c-a294-62b28d18b7f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDQ1ODUsIm5iZiI6MTczODk0NDI4NSwicGF0aCI6Ii8zMDIyMDg4MS80MDA1Njc3NTEtNTVlNjkyYTItYjljZi00YjNjLWEyOTQtNjJiMjhkMThiN2Y1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE2MDQ0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1ZWE5Nzc2ZDRjMzJmMmY5OTY5YWUwMGNmZDcyYzA2MTc2MGJmY2U3YWQzZGQ0NGZiZDZkZTY4OTE0NTQ5NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Bt9t7bAxqualwgdG-D_9Pywv1UgoaCiEu_djOQPKaT0)
gad
:gad
pressed:C
pressed, to "Cancel" the popup:I am not exactly certain that this is a fzf-lua issue, but the whole "go to definition and split the buffer vertically" logic is done by fzf-lua, so it sounds like the right place to report it.
The text was updated successfully, but these errors were encountered: