Skip to content

simply window selector for neovim written in lua

License

Notifications You must be signed in to change notification settings

mochi-sann/chowcho.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chowcho.nvim

  • simply window operation for neovim written in lua
  • inspired by you-are-here.vim

Installation

  • packer.nvim
use {'tkmpypy/chowcho.nvim'}

Usage

Select the number after executing the command Chowcho or after calling the lua function.

require('chowcho').run()

Optionally, run an arbitrary function which receives winid. The example below hides a selected window.

require('chowcho').run(vim.api.nvim_win_hide)

Config

call setup function

require('chowcho').setup {
  icon_enabled = true, -- required 'nvim-web-devicons' (default: false)
  text_color = '#FFFFFF',
  bg_color = '#555555',
  active_border_color = '#0A8BFF',
  border_style = 'default' -- 'default', 'rounded',
  exclude = function(buf, buftype, fname)
    -- exclude a window from the choice based on its buffer information
    return fname == ''
  end
}

Screenshot

image image

About

simply window selector for neovim written in lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 99.1%
  • Vim Script 0.9%