chentoast / marks.nvim

A better user experience for viewing and interacting with Vim marks.
MIT License
848 stars 43 forks source link

`builtin_marks` causes clipping in floating window #79

Open xbc5 opened 2 years ago

xbc5 commented 2 years ago

It looks like an extra '.' appears in floating diagnostic windows pushing text to the right and causing clipping. The builtin_marks option is the culprit:

clipping

This appears when using LSP tools like vim.lsp.buf.hover() for example.

Here is a reproduction repo.

xbc5 commented 2 years ago

I just realised that is is related to #65. What is the filetype for popups?

chentoast commented 2 years ago

There is no filetype for popups, but you can set an autocmd on WinEnter, and check if your current window is floating via vim.api.nvim_win_get_config(). This will be a suitable workaround for now but I might add a config option that does this in the future.