-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
fix(popup): set modifiable
failed when vim.api.nvim_buf_set_lines
#575
fix(popup): set modifiable
failed when vim.api.nvim_buf_set_lines
#575
Conversation
feat: added test for `set nomodifiable` fix(popup): set modifiable regardless fix(popup): set modifiable globally fix(popup): set modifiable first fix(popup): added modifiable is false check
This reverts commit bcd45b1.
the change looks super where, can you rebase this branch because on your branch i cant find the original change, but its also not dropped in the changes. so i have no idea whats currently going on, other than the change doesnt look "correct". The right image shows the current HEAD while the left side shows the diff from this PR |
@Conni2461 now it should show the changes correctly. Didn't notice that the branch was not showing the changes completely, sorry 😅 |
lua/plenary/popup/init.lua
Outdated
if vim.o.modifiable == false then | ||
vim.o.modifiable = true | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this just enables this globally. change this setting, we probably dont want this?!
366c4f3
to
6b63839
Compare
6b63839
to
62d6c80
Compare
@Conni2461 I made the changes, kept it like the master branch and added the check in Now it works, but doesn't render the preview on the files. Don't know the reason. plenary-feat-modifiable-popup.mp4 |
this is a telescope issue, telescope creates the buffers for the file previewer. so we need to fix it here: https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/previewers/buffer_previewer.lua#L428 also why dont we do |
Not showing a preview with the new changes in the latest changes of [plenary.nvim PR nvim-telescope#575](nvim-lua/plenary.nvim#575). The error occurs when changing from `nomodifiable` to `modifiable`. Telescope itself works, but the previews don't render.
With the changes made in this PR and in telescope.nvim#3077 now it works perfectly. ![]() |
thanks :) |
) Not showing a preview with the new changes in the latest changes of [plenary.nvim PR #575](nvim-lua/plenary.nvim#575). The error occurs when changing from `nomodifiable` to `modifiable`. Telescope itself works, but the previews don't render.
) Not showing a preview with the new changes in the latest changes of [plenary.nvim PR #575](nvim-lua/plenary.nvim#575). The error occurs when changing from `nomodifiable` to `modifiable`. Telescope itself works, but the previews don't render. (cherry picked from commit 1084d07)
In the commit 0d0079c, I introduced a bug (sorry).
To reproduce:
Note
I used
Telescope cmdline
in the demo bellow, but it will apply to any plugin usingpopup.create
Bug:
Note
It will launch the
popup
but it won't fill itAfter the changes: