vim:ftplug:fzf: Complete list of TUI Unicode chars

This excludes more characters than needed.

Fixes: 86af2da785 ("vim:ftplug:fzf:TODO: Look up other Unicode chars")
This commit is contained in:
2024-10-14 11:53:02 +02:00
parent aa901099b0
commit 8a101134c7

View File

@@ -1,5 +1,15 @@
" Do not highlight Unicode box drawing chars as non-ascii
" TODO: Look into fzf source code for all other possible Unicode chars
let w:ignore_non_ascii_chars = '─│╭╮╰╯▌┃' .. get(w:, 'ignore_non_ascii_chars', '')
let w:ignore_non_ascii_chars = get(w:, 'ignore_non_ascii_chars', '')
" Do not highlight Unicode chars used for the TUI
" Unicode "Box Drawing" block
let w:ignore_non_ascii_chars ..= '\u2500-\u257f'
" Unicode "Block Elements" block
let w:ignore_non_ascii_chars ..= '\u2580-\u259f'
" Unicode "Block elements" subblock of the "Symbols for Legacy Computing" block
" (i.e. 1/8th block symbols)
let w:ignore_non_ascii_chars ..= '\U0001fb70-\U0001fb89'
" Braille symbols for spinner
let w:ignore_non_ascii_chars ..= '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏'
" Update after changes
call HighlightNonASCIIChars()