-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error opening floating window and mapping issues #1
Comments
Yeah the hidden dependency on vimp for mappings isn't great, I do plan on cleaning that up. Thanks for the submission @akinsho always a pleasure to have you around 😊 I've only seen that error you mentioned when it fails to create the new window, it's then trying to position the cursor on a window it was ultimately unable to create. I can fix the error up by not trying to use the new_window value if it doesn't exist but the root of the issue of it being unable to create the window (assumed) is still unknown to me 🤔. Do you see anything else in messages at all? Also does the float even show up? |
@rmagatti I wonder if it might be due to how I've tried to work around the mapping issue since I can't see any other way to access this plugins functions without using vimp which I haven't/would rather not install 😅 . Maybe calling the use {
"rmagatti/goto-preview",
config = function()
local preview = require("goto-preview")
preview.setup {}
-- home grown copy of functionality from vimp etc.
as.nnoremap("gpd", preview.lsp_request(true))
end
} |
Hey @akinsho the PR should address the mapping issues. |
Now this one I'm not really sure what it is. Mind trying out the new mapping and letting me know if this new weirdly named buffer still happens? |
@rmagatti I just tried the PR which is helpful thanks, I'm still seeing the bug though so I'm trying to whittle it down to a minimal init.lua and see what might be triggering it |
@rmagatti done a bit of debugging with quite a minimal init.lua and it seems the underlying error I'm seeing is |
Created that new issue to track what you're describing, let's continue there so I can merge the PR and close this one. 😊 |
Hi @rmagatti,
Just tested this out as I was curious about this functionality, looks quite cool. I ran into an issue which is that I get
Error executing vim.schedule lua callback: ...site/pack/packer/start/goto-preview/lua/goto-preview.lua:78: Invalid window id: 1003
when trying to open the floating window i.e. usinggpd
the go to definition preview mapping.Also the plugin has a dependency on
vimp
which isn't documented but tbh I think also not really needed since you could export the functions and use them in the mapping which the plugin createse.g.
The text was updated successfully, but these errors were encountered: