tkmpypy / chowcho.nvim Goto Github PK
View Code? Open in Web Editor NEWsimply window selector for neovim written in lua
License: MIT License
simply window selector for neovim written in lua
License: MIT License
The nvim config:
map('n', '-', require('chowcho').run, { noremap = false })
When call require('chowcho').run
, an error occurs:
E5108: Error executing lua: ...site/pack/packer/start/chowcho.nvim/lua/chowcho/init.lua:55: Invalid window id: 1056
stack traceback:
[C]: in function 'nvim_win_get_width'
...site/pack/packer/start/chowcho.nvim/lua/chowcho/init.lua:55: in function 'calc_center_win_pos'
...site/pack/packer/start/chowcho.nvim/lua/chowcho/init.lua:101: in function <...site/pack/packer/start/chowcho.nvim/lua/chowcho/init.lua:88>
nvim version
% nvim --version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
https://github.com/tkmpypy/chowcho.nvim/blob/main/lua/chowcho/init.lua#L55
Does it look like a problem with nvim?
Currently, exclude function only receives buffer information.
I think there are use cases to exclude based on window information.
chowcho.nvim/lua/chowcho/init.lua
Line 105 in 3a9829e
Although it is easy enough to make a PR, it is difficult to design the API...
I show some ideas.
The latter two makes breaking changes, but I think they are affordable as the exclude
option is added quite recently.
-- add window hundler as 4-th arg
function(buf, bt, fname, win)
-- simplify to only receive buffer number and window hundler
function(bufnr, win)
-- squash everything into named table
function({...})
I would be happy to here @tkmpypy 's opinion.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.