You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prismatic line decorations for the adventurous vim user
Usage
use({
'mvllow/modes.nvim',
tag='v0.2.1',
config=function()
require('modes').setup()
end
})
Requirements
Neovim 0.11 or later
Options
require('modes').setup({
colors= {
bg="", -- Optional bg param, defaults to Normal hl groupcopy="#f5c359",
delete="#c75c6a",
change="#c75c6a", -- Optional param, defaults to deleteformat="#c79585",
insert="#78ccc5",
replace="#245361",
select="#9745be", -- Optional param, defaults to visualvisual="#9745be",
},
-- Set opacity for cursorline and number backgroundline_opacity=0.15,
-- Enable cursor highlightsset_cursor=true,
-- Enable cursorline initially, and disable cursorline for inactive windows-- or ignored filetypesset_cursorline=true,
-- Enable line number highlights to match cursorlineset_number=true,
-- Enable sign column highlights to match cursorlineset_signcolumn=true,
-- Disable modes highlights for specified filetypes-- or enable with prefix "!" if otherwise disabled (please PR common patterns)-- Can also be a function fun():boolean that disables modes highlights when trueignore= { 'NvimTree', 'TelescopePrompt', '!minifiles' }
})
Themes
Highlight group
Default value
ModesCopy
guibg=#f5c359
ModesDelete
guibg=#c75c6a
ModesChange
ModesDelete
ModesFormat
guibg=#c79585
ModesInsert
guibg=#78ccc5
ModesReplace
guibg=#245361
ModesSelect
ModesVisual
ModesVisual
guibg=#9745be
Known issues
Some Which Key presets conflict with this plugin. For example, d and y operators will not apply highlights if there are d and y prefixes hooked by Which Key because Which Key takes priority