Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcauley-penney/visual-whitespace.nvim
Highlight whitespace in visual mode
https://github.com/mcauley-penney/visual-whitespace.nvim
Last synced: 4 months ago
JSON representation
Highlight whitespace in visual mode
- Host: GitHub
- URL: https://github.com/mcauley-penney/visual-whitespace.nvim
- Owner: mcauley-penney
- Created: 2024-03-09T19:15:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-03-12T15:27:26.000Z (4 months ago)
- Last Synced: 2024-03-12T20:29:42.442Z (4 months ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Lists
- awesome-neovim - mcauley-penney/visual-whitespace.nvim - See whitespace characters in Visual selections, like VSCode. (Utility / Cursorline)
- trackawesomelist - mcauley-penney/visual-whitespace.nvim (โญ10) - See whitespace characters in Visual selections, like VSCode. (Recently Updated / [Mar 11, 2024](/content/2024/03/11/README.md))
- my-neovim-pluginlist - mcauley-penney/visual-whitespace.nvim - penney/visual-whitespace.nvim) ![](https://img.shields.io/github/last-commit/mcauley-penney/visual-whitespace.nvim) ![](https://img.shields.io/github/commit-activity/y/mcauley-penney/visual-whitespace.nvim) (View / listchars)
README
# visual-whitespace.nvim ๐
Reveal whitespace characters in visual mode, similar to VSCode.
![vis-ws](https://github.com/mcauley-penney/visual-whitespace.nvim/assets/59481467/5d8b1e9a-e1b6-479a-b1d1-fcf0162fa4a8)
## Installation and configuration
To install it with the default settings using Lazy:
```lua
{
'mcauley-penney/visual-whitespace.nvim',
config = true
}
````visual-whitespace` comes with the following default settings:
```lua
opts = {
highlight = { link = 'Visual' },
space_char = 'ยท',
tab_char = 'โ',
nl_char = 'โฒ'
},
```## Credit
- [This post on the Neovim subreddit](https://www.reddit.com/r/neovim/comments/1b1sv3a/function_to_get_visually_selected_text/), for doing a lot of the math for me
- [aaron-p1/match-visual.nvim](https://github.com/aaron-p1/match-visual.nvim)