lambdalisue/vim-glyph-palette

Icons are narrowed in mintty

Open

#20 opened on Mar 20, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Vim Script (16 forks)github user discovery
help wanted

Repository metrics

Stars
 (132 stars)
PR merge metrics
 (PR metrics pending)

Description

Hi, if I use the plugin in mintty the characters get narrowed after applying palette:

Screenshot 2023-03-19 204830 This may be related to the following issue: https://github.com/mintty/mintty/issues/1104 I'm not sure if it is 100% correct way, but if I apply following update to function! s:apply():

@@ -43,7 +43,7 @@ function! s:apply() abort
   endif
   let w:glyph_palette_matches = map(
         \ copy(b:glyph_palette_palette),
-        \ { -> matchadd(v:key, v:val) },
+        \ { -> matchadd(v:key, v:val.' ') },
         \)
endfunction

the issue gets fixed:

Screenshot 2023-03-19 204706

Thank you!

Contributor guide