Skip to content

A NeoVim Plugin to toggle the highlithing of text exceeding the column length.

License

Notifications You must be signed in to change notification settings

fouladi/toggle-overlength.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toggle-overlength.nvim

A Neovim plugin to toggle the highlithing of text exceeding the column length.

alt text

Installation

Install the plugin with your package manager:

lazy.nvim:

Here default configuration with a column length of 120.

{
    "fouladi/toggle-overlength.nvim",
    config = function()
        require("toggle-overlength").setup({})
    end,
}

Use other column lengths and colours if you prefer, for example:

{
    "fouladi/toggle-overlength.nvim",
    config = function()
        require("toggle-overlength").setup({
            column_length = 80, -- Set column length to 80
            ctermbg = "red", -- Set terminal background color to red
            guibg = "#ff0000", -- Set GUI background color to red
        })
    end,
}

Usage

After setup, the following commands will be automatically applied. Note that this command is used in toggle mode. This means that you can turn the highlighting on and off with the same command.

Commands:

Custom commands :ToggleHiOverLength to toggle the highlighting.

Key Mappings:

Optional key mappings are provided to quickly toggle (<leader>th) the highlighted rows.

About

A NeoVim Plugin to toggle the highlithing of text exceeding the column length.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages