Skip to content

lvim-tech/lvim-focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LVIM FOCUS

LVIM FOCUS

License

Description

  • 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 (hi LvimFocusNormal - 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
Screenshots

01

02

03

Requirements

Install

use {
    'lvim-tech/lvim-focus',
    config = function()
        require("lvim-focus").setup()
    end
}

Default config

{
	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",
	},
}

Command

-- activate / deactivate of the plugin

:LvimFocusToggle

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages