weilbith / nvim-code-action-menu

Pop-up menu for code actions to show meta-information and diff preview
MIT License
577 stars 19 forks source link

Strip newlines from lines passed to base window #56

Closed Slotos closed 2 years ago

Slotos commented 2 years ago

vim.api.nvim_buf_set_lines explodes if final argument table contains strings with newlines. To prevent that, this commit replaces newlines with spaces before passing the data to it.

Slotos commented 2 years ago

Rust analyzer yields quite a lot of strings with newlines when reporting code actions.