https://github.com/SomesOver/accidentslipt/assets/160035610/2c8ad939-bb42-4a45-997b-a164e2c43108
configurable window separtor
Currently in Neovim, we can not make the active window distinguishable via the window separator. This plugin will color the border of active window, like what tmux does for its different panes.
Using vim-plug:
Plug 'nvim-zh/colorful-winsep.nvim'
Using Packer.nvim:
use {
"nvim-zh/colorful-winsep.nvim",
config = function ()
require('colorful-winsep').setup()
end
}
Using lazy.nvim
{
"nvim-zh/colorful-winsep.nvim",
config = true,
event = { "WinLeave" },
}
require("colorful-winsep").setup({
-- highlight for Window separator
hi = {
bg = "#16161E",
fg = "#1F3442",
},
-- This plugin will not be activated for filetype in the following table.
no_exec_files = { "packer", "TelescopePrompt", "mason", "CompetiTest", "NvimTree" },
-- Symbols for separator lines, the order: horizontal, vertical, top left, top right, bottom left, bottom right.
symbols = { "━", "┃", "┏", "┓", "┗", "┛" },
-- #70: https://github.com/nvim-zh/colorful-winsep.nvim/discussions/70
only_line_seq = true,
-- Smooth moving switch
smooth = true,
exponential_smoothing = true,
anchor = {
left = { height = 1, x = -1, y = -1 },
right = { height = 1, x = -1, y = 0 },
up = { width = 0, x = -1, y = 0 },
bottom = { width = 0, x = 1, y = 0 },
},
light_pollution = function(lines) end,
})
nvim_buf_add_highlight()
)This plugin is released under the MIT License.