Skip to content

Split the window horizontally if it is vertical, and vertically if it is horizontal

Notifications You must be signed in to change notification settings

yuma140902/auto-split-direction.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-split-direction.nvim

auto-split-direction.nvim is a lua plugin for Neovim that automatically determines the direction of window splitting. You can use :SplitAutoDirection command to split a window. It splits the window horizontally if it is vertical, and vertically if it is horizontal.

(English / 日本語)

Requirements

  • Neovim

Installation

lazy.nvim

{
    'yuma140902/auto-split-direction.nvim',
    cmd = 'SplitAutoDirection',
    setup = function()
        require 'auto-split-direction'.setup {
            -- your options here
        }
    end
}

Configuration

{
    debug = false,  -- if true, show debug messages
    ratio = 3.0     -- Column to row ratio threshold
}

See also auto-split-direction.nvim.txt.

About

Split the window horizontally if it is vertical, and vertically if it is horizontal

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages