A NeoVim plugin that highlights non-ASCII characters (outside the 0-127 range) in your code.
- Automatically highlights wide characters (non-ASCII) in lime green with a dark background
- Skips special buffers (
help,terminal,quickfix, etc.) - Lightweight and efficient
- Written in pure Lua
The plugin activates itself on startup — no setup() call is required unless you want to customize colors.
{ 'martinholy/widechar.nvim' }vim.pack.add({
'https://github.com/martinholy/widechar.nvim',
})Once installed, the plugin automatically highlights any character outside the ASCII range (0-127) whenever you open a buffer. Special buffers (help, terminal, quickfix, etc.) are skipped.
:WideCharToggle— enable/disable highlighting in every attached buffer.
You can customize the colors by passing them to the setup function:
require('widechar').setup({
fg = '#afd700', -- lime green foreground
bg = '#303030' -- dark gray background
})MIT