Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiyaowong/virtcolumn.nvim
Display a line as the colorcolumn
https://github.com/xiyaowong/virtcolumn.nvim
neovim
Last synced: about 2 months ago
JSON representation
Display a line as the colorcolumn
- Host: GitHub
- URL: https://github.com/xiyaowong/virtcolumn.nvim
- Owner: xiyaowong
- Created: 2022-04-15T05:06:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T13:06:24.000Z (8 months ago)
- Last Synced: 2024-04-28T04:45:51.792Z (5 months ago)
- Topics: neovim
- Language: Lua
- Homepage:
- Size: 34.2 KB
- Stars: 72
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-neovim - xiyaowong/virtcolumn.nvim - Display a line as colorcolumn. (Utility / Cursorline)
README
# virtcolumn.nvim
**Display a character as the colorcolumn.**
![image](https://user-images.githubusercontent.com/47070852/163523348-ad949d3f-4fc4-461f-98ee-0291af613396.png)
This plugin is based on [lukas-reineke/virt-column.nvim](https://github.com/lukas-reineke/virt-column.nvim),
then why not submit pr, but a new repository, because the content of the modification of this plugin
and the original use of the way completely incompatible, and can even be considered two completely different plugins## Install
requires nvim0.7+nightly which has `nvim_create_autocmd`
Same as other normal plugins, use your favourite plugin manager to install.
## Configuration
This plugin is aiming for zero configuration, you just need to install and make
sure this plugin loaded and it will automatically handle `colorcolumn`
e.g. `set cc=80` `au FileType gitcommit setl cc=50,72`by default
```lua
vim.g.virtcolumn_char = '▕' -- char to display the line
vim.g.virtcolumn_priority = 10 -- priority of extmark
```### highlight
**`VirtColumn`**
Highlight of virtual column character.
Use `ColorColumn`s background color by default, otherwise link to `NonText`