Skip to content

rosstang/dimit.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dimit.nvim

A neovim plugin to dim inactive windows (change their background color).

It is mainly a rewrite of jceb/blinds.nvim, which uses lua and makes configuration easier, and works with package manager.

Dimit animation

Installation

  • Install it with packer (or any other package manager)
use {
    "rosstang/dimit.nvim",
    config = function()
        require("dimit").setup()
    end,
}

Configuration

  • default config
M.config = {
    bgcolor = "#303030",
    highlight_group = "Dimit",
    auto_dim = true,
    dim_elements = {
        "ColorColumn",
        "CursorColumn",
        "CursorLine",
        "CursorLineFold",
        "CursorLineNr",
        "CursorLineSign",
        "EndOfBuffer",
        "FoldColumn",
        "LineNr",
        "NonText",
        "Normal",
        "SignColumn",
        "VertSplit",
        "Whitespace",
        "WinBarNC",
        "WinSeparator",
    },
}
  • setup() can be called multiple times to change configuration,
require("dimit").setup({
    bgcolor = "#FF0000",         -- change the dim color to red
})
  • In case the current windows is also dimmed (not undimmed), you can call :Dimit to redo the dimming.
  • The gif is also using nvim-ide for the side panels

About

A neovim plugin to dim inactive windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages