marks.nvim icon indicating copy to clipboard operation
marks.nvim copied to clipboard

`builtin_marks` causes clipping in floating window

Open xbc5 opened this issue 3 years ago • 2 comments

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 avatar Aug 07 '22 20:08 xbc5

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

xbc5 avatar Aug 07 '22 20:08 xbc5

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.

chentoast avatar Aug 09 '22 17:08 chentoast