fzf.vim: Set w:ignore_non_ascii_chars only once

This commit is contained in:
2025-03-03 16:37:41 +01:00
parent 103355478b
commit 459453dc5e

View File

@@ -1,21 +1,22 @@
" vim: set ft=vim.fzf: " vim: set ft=vim.fzf:
let w:ignore_non_ascii_chars = get(w:, 'ignore_non_ascii_chars', '') " Do not highlight Unicode chars used by the fzf TUI. For this ignore the:
"
" Do not highlight Unicode chars used for the TUI " - Unicode "Box Drawing" block
" Unicode "Box Drawing" block " - Unicode "Block Elements" block
let w:ignore_non_ascii_chars ..= '\u2500-\u257f' " - Unicode "Block elements" subblock of the "Symbols for Legacy Computing"
" Unicode "Block Elements" block " block (i.e. 1/8th block symbols)
let w:ignore_non_ascii_chars ..= '\u2580-\u259f' " - Braille symbols for spinner
" Unicode "Block elements" subblock of the "Symbols for Legacy Computing" block " - Ellipses and wrap signs for long lines
" (i.e. 1/8th block symbols) " - Line ending indicators
let w:ignore_non_ascii_chars ..= '\U0001fb70-\U0001fb89' let w:ignore_non_ascii_chars =
" Braille symbols for spinner \ get(w:, 'ignore_non_ascii_chars', '') ..
let w:ignore_non_ascii_chars ..= '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏' \ '\u2500-\u257f' ..
" ellipsis and wrap sign for long lines \ '\u2580-\u259f' ..
let w:ignore_non_ascii_chars ..= '·↳' \ '\U0001fb70-\U0001fb89' ..
" Line endings \ '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏' ..
let w:ignore_non_ascii_chars ..= '␍␊' \ '·↳' ..
\ '␍␊'
" Update after changes " Update after changes
call HighlightNonASCIIChars() call HighlightNonASCIIChars()