chentoast/marks.nvim

`builtin_marks` causes clipping in floating window

xbc5 opened this issue · 2 comments

xbc5 commented

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

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

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.