chentoast / marks.nvim

A better user experience for viewing and interacting with Vim marks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`builtin_marks` causes clipping in floating window

xbc5 opened this issue · comments

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.

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.