dotfiles/dot_config/nvim/lua/utils/zenkaku.lua
2024-01-14 23:03:03 +09:00

16 lines
367 B
Lua
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ZenkakuSpace
vim.cmd([[
function! ZenkakuSpace()
highlight ZenkakuSpace cterm=underline guibg=lightred
endfunction
if has('syntax')
augroup ZenkakuSpace
autocmd!
autocmd ColorScheme * call ZenkakuSpace()
autocmd VimEnter,WinEnter,BufRead * let w:m1=matchadd('ZenkakuSpace', ' ')
augroup END
call ZenkakuSpace()
endif
]])