- Auto resize windows
- Optimal size (width and height) for windows
- Hide
cursorcolumn
,cursorline
,signcolumn
,colorcolumn
,number
,relativenumber
for inactive windows - Add
winhighlight
for active window (hiLvimFocusNormal
- add to your colorscheme) - Blacklist of filetypes
- Deactivate of the plugin on startup with option
active_plugin = 0
- Dynamic activate / deactivate of the plugin whit command
:LvimFocusToggle
- The main advantage over other similar plugins - correct resize
use {
'lvim-tech/lvim-focus',
config = function()
require("lvim-focus").setup()
end
}
{
active_plugin = 1,
size_stabilize = true,
cursorcolumn = false,
cursorline = false,
signcolumn = false,
signcolumn_value = "yes",
colorcolumn = false,
colorcolumn_value = "120",
number = false,
relativenumber = true,
custom = {
active = false, -- or function
inactive = false, -- or function
},
blacklist_ft = {
"ctrlspace",
"ctrlspace_help",
"packer",
"undotree",
"diff",
"Outline",
"NvimTree",
"LvimHelper",
"floaterm",
"toggleterm",
"Trouble",
"dashboard",
"vista",
"spectre_panel",
"DiffviewFiles",
"flutterToolsOutline",
"log",
"qf",
"dapui_scopes",
"dapui_breakpoints",
"dapui_stacks",
"dapui_watches",
"calendar",
"org",
"octo",
"neo-tree",
"neo-tree-popup",
"noice",
},
blacklist_bt = {
"nofile",
"nowrite",
"quickfix",
"help",
"terminal",
"directory",
"scratch",
"unlisted",
"prompt",
},
}
-- activate / deactivate of the plugin
:LvimFocusToggle