mirror of
https://github.com/zoriya/virtcolumn.nvim.git
synced 2026-06-02 08:55:05 +00:00
update repo info and readme
This commit is contained in:
@@ -1 +0,0 @@
|
||||
github: [lukas-reineke]
|
||||
@@ -1,22 +0,0 @@
|
||||
name: Pull request check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: JohnnyMorganz/stylua-action@1.0.0
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --check .
|
||||
|
||||
block-fixup:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Block Fixup Commit Merge
|
||||
uses: 13rac1/block-fixup-merge-action@v2.0.0
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
The MIT Licence
|
||||
|
||||
Copyright (c) 2021 Lukas Reineke
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -1,47 +1,32 @@
|
||||
# virt-column.nvim
|
||||
# virtcolumn.nvim
|
||||
|
||||
Display a character as the colorcolumn.
|
||||
**Display a character as the colorcolumn.**
|
||||
|
||||
<img width="900" src="https://user-images.githubusercontent.com/12900252/143544703-d94d6e9e-75f8-407d-976e-0fd5b341d751.png" alt="Screenshot" />
|
||||

|
||||
|
||||
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
|
||||
|
||||
Use your favourite plugin manager to install.
|
||||
Same as other normal plugins, use your favourite plugin manager to install.
|
||||
|
||||
#### Example with Packer
|
||||
## Configuration
|
||||
|
||||
[wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim)
|
||||
This plugin is aiming for zero configuration, you just need to install and make
|
||||
sure this plugin loaded and it will automatically handle `colorcolumn`
|
||||
|
||||
### char
|
||||
|
||||
```lua
|
||||
-- init.lua
|
||||
require("packer").startup(
|
||||
function()
|
||||
use "lukas-reineke/virt-column.nvim"
|
||||
end
|
||||
)
|
||||
vim.g.virtcolumn_char = '▕' -- by default
|
||||
```
|
||||
|
||||
#### Example with Plug
|
||||
### highlight
|
||||
|
||||
[junegunn/vim-plug](https://github.com/junegunn/vim-plug)
|
||||
**`VirtColumn`**
|
||||
|
||||
```vim
|
||||
" init.vim
|
||||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'lukas-reineke/virt-column.nvim'
|
||||
call plug#end()
|
||||
```
|
||||
Highlight of virtual column character.
|
||||
|
||||
## Setup
|
||||
|
||||
To configure virt-column.nvim you need to run the setup function.
|
||||
|
||||
```lua
|
||||
require("virt-column").setup()
|
||||
```
|
||||
|
||||
Please see `:help virt-column.txt`for more details and all possible values.
|
||||
|
||||
## Thanks
|
||||
|
||||
Thank you @francium for the idea.
|
||||
Use `ColorColumn`s background color by default, otherwise link to `NonText`
|
||||
|
||||
@@ -7,7 +7,7 @@ ffi.cdef "int curwin_col_off(void);"
|
||||
---@diagnostic disable-next-line: undefined-field
|
||||
local curwin_col_off = ffi.C.curwin_col_off
|
||||
|
||||
local NS = api.nvim_create_namespace "virt-column"
|
||||
local NS = api.nvim_create_namespace "virtcolumn"
|
||||
|
||||
---@param cc string
|
||||
---@return number[]
|
||||
|
||||
Reference in New Issue
Block a user