Giter Club home page Giter Club logo

chowcho.nvim's Introduction

Hi there ๐Ÿ‘‹

chowcho.nvim's People

Contributors

atusy avatar tkmpypy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chowcho.nvim's Issues

Invalid window id: 1056

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?

[FR] Let exclude function to receive window hundler

Currently, exclude function only receives buffer information.
I think there are use cases to exclude based on window information.

if (opt_local.exclude(buf, bt, fname)) then goto continue end

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.