Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in function 'nvim_open_win' #47

Closed
JohnDiniz opened this issue Jul 29, 2022 · 4 comments
Closed

error in function 'nvim_open_win' #47

JohnDiniz opened this issue Jul 29, 2022 · 4 comments

Comments

@JohnDiniz
Copy link

Jul29-10-29

the error only appears after moving the line

@Livingnight
Copy link

I'm experiencing this same issue. It doesn't happen with anything related to telescope I've found but neotree/nvim-tree/lir/jabs/toggleterm/your custom buffer switcher all run into this error at some point. I'm unsure if this is related to the extensions or the underlying neovim api and the way they create
image

image

image

@krshrimali
Copy link

Yep, have observed this as well. Raised a related issue here: #46

@Mr-istov
Copy link

Mr-istov commented Aug 2, 2022

I'm experiencing the same issue using:

NVIM v0.8.0-dev-701-g2a9c9371b
Build type: Release

I think it might be related to neovim, there is an open issue related to the same problem: neovim/neovim#19458

@Mr-istov
Copy link

Mr-istov commented Aug 2, 2022

I found a similar issue to this, here: sindrets/diffview.nvim#185
And after disabling the user.autocommands from the init.lua, the problem is fixed. I tried to debug a little more, to see which code is causing the issue, and after commenting out parts of the code, this is the code that causes the issue to appear:

if vim.fn.has "nvim-0.8" == 1 then
  vim.api.nvim_create_autocmd(
    { "CursorMoved", "CursorHold", "BufWinEnter", "BufFilePost", "InsertEnter", "BufWritePost", "TabClosed" },
    {
      callback = function()
        require("user.winbar").get_winbar()
      end,
    }
  )
end

This is the line ref: https://github.com/ChristianChiarulli/nvim/blob/master/lua/user/autocommands.lua#L129-L141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants