Closed chrisgrieser closed 1 year ago
Good idea. Thanks!
As of 0d9223f813f606ab20ff3af78faa9b1e89f047f9, if there is user-defined sign text and/or sign text highlights for diagnostics, those will be used by default.
The text is trimmed since I noticed that the manually set text gets padded (e.g., 'E'
gets padded with a trailing space to become 'E '
). If padding is desired, the symbol will have to be set manually.
Currently, when the user has not configured signs for diagnostics, this plugin falls back to
E
,W
,H
, andI
. https://github.com/dstein64/nvim-scrollview/blob/main/plugin/scrollview.vim#L108However, I think it might make more sense to use any diagnostic icons the user may have already set via
vim.fn.sign_define
.The user-set values can be retrieved by quering for these:
(I'd make a PR, but the respective file is in vimscript and not lua, in which I am not really knowledgable enough to not mess something up 🙈)