-
Notifications
You must be signed in to change notification settings - Fork 37
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
code_actions broken on nvim nightly #126
Comments
I ran into this too and did some digging. If you change line 27 in |
LTDR: It worked! 👍 Awesome find! I struggled a bit with Lazy plugin manager, trying to use the dev parameter to point to a version of dressing I had cloned locally. It worked, partly. For whatever reason Lazy could not find the branch I had created. Probably because it wasn't pushed to remote and I didn't want to do that just yet, so I cloned dressing instead =P But I can now confirm that doing the changes you suggested works! |
Signed-off-by: Chaz Leong <[email protected]>
Should be fixed! |
is it me, or its breaking on my config now after this commit ?? |
I updated neovim to |
I am on the latest neovim nightly
|
I have NVIM
CleanShot.2024-01-01.at.00.51.19.mp4 |
Describe the bug
Dressing overrides the built in vim.ui.select function and I believe using code_actions with this overridden selector got broken after these changes in nightly nvim: neovim/neovim@9281edb
I now get this, when opening up code-actions:
Error executing vim.schedule lua callback: ...vim/lazy/dressing.nvim/lua/dressing/select/telescope.lua:28: attempt to index a nil value
stack traceback:
...vim/lazy/dressing.nvim/lua/dressing/select/telescope.lua:28: in function <...vim/lazy/dressing.nvim/lua/dressing/select/telescope.lua:8>
...vim/lazy/dressing.nvim/lua/dressing/select/telescope.lua:132: in function 'select'
...are/nvim/lazy/dressing.nvim/lua/dressing/select/init.lua:70: in function 'fn'
vim/_editor.lua:343: in function <vim/_editor.lua:342>
If I use Telescope extension ui-select I get this:
Error executing vim.schedule lua callback: ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:35: attempt to index a nil value
stack traceback:
...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:35: in function <...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:23>
...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:96: in function 'select'
...ovim/HEAD-f1e9aa8/share/nvim/runtime/lua/vim/lsp/buf.lua:720: in function 'on_code_action_results'
...ovim/HEAD-f1e9aa8/share/nvim/runtime/lua/vim/lsp/buf.lua:789: in function 'handler'
...r/neovim/HEAD-f1e9aa8/share/nvim/runtime/lua/vim/lsp.lua:1516: in function 'fn'
vim/_editor.lua:343: in function <vim/_editor.lua:342>
Not sure if to report issue here or at telescope-ui-select.. or both!
System information
Mac
NVIM v0.10.0-dev-1482+gf1e9aa8f7-Homebrew
Build type: Release
LuaJIT 2.1.1697887905
vim.ui.select
backend? If so, which one?vim.ui.select, applied to code_actions from lisp
default
-- Paste your call to require("dressing").setup(...) in here
To Reproduce
Steps to reproduce the behavior:
If possible, provide a minimal file that will trigger the issue (see
tests/manual
for examples of short ways to call
vim.ui.*
):Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I borrowed some code from the creator of all those mini-plugins, namely the mini.pick plugin - pick.lua in his repo https://github.com/echasnovski/mini.nvim/tree/main - and used his ui_select to override
vim.ui.select, and it works without this error I get with either dressing or telescope-ui-select extension. Not sure what the difference is. I'm not that fluent in Lua :)
The text was updated successfully, but these errors were encountered: