Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.23 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.23 KB

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.