1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 21:00:06 +08:00
SpaceVim/bundle/indent-blankline.nvim/autoload/indent_blankline/helper.vim
2021-08-11 21:29:53 +08:00

12 lines
293 B
VimL

function! indent_blankline#helper#GetListChar(key, fallback)
let l:list_chars = {}
for l:char in split(&listchars, ',')
let l:split = split(l:char, ':')
let l:list_chars[l:split[0]] = l:split[1]
endfor
return get(l:list_chars, a:key, a:fallback)
endfunction