Skip to content

martinholy/widechar.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

widechar.nvim

A NeoVim plugin that highlights non-ASCII characters (outside the 0-127 range) in your code.

Features

  • 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

Installation

The plugin activates itself on startup — no setup() call is required unless you want to customize colors.

lazy.nvim

{ 'martinholy/widechar.nvim' }

vim.pack (NeoVim 0.12+)

vim.pack.add({
    'https://github.com/martinholy/widechar.nvim',
})

Usage

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.

Commands

  • :WideCharToggle — enable/disable highlighting in every attached buffer.

Customization

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
})

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages