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

bug: weird buffer close behavior with Typr #796

Closed
4 tasks done
davidsteinberger opened this issue Jan 30, 2025 · 2 comments
Closed
4 tasks done

bug: weird buffer close behavior with Typr #796

davidsteinberger opened this issue Jan 30, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@davidsteinberger
Copy link

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.10.3

Operating system/version

macOS 15.2

Describe the bug

When you invoke Typr (plugin nvzone/typr) and close the window with ESC or q an empty window remains. This does not happen when you try it again or when you invoke it from a regular buffer.

nvzone/typr#21

Steps To Reproduce

  1. Launch nvim with nvim -u repro.lua
  2. Launch Typr with :Typr
  3. Hit ESC or q

Expected Behavior

The window closes.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        { "LazyVim/LazyVim", import = "lazyvim.plugins" },
        -- add any other plugins here
        {
            "nvzone/typr",
            dependencies = "nvzone/volt",
            opts = {},
            cmd = { "Typr", "TyprStats" },
        },
        {
            "saghen/blink.cmp",
            opts = {
                enabled = function()
                    return not vim.tbl_contains({ "typr" }, vim.bo.filetype) and vim.bo.buftype ~= "prompt"
                end,
            },
        },
    },
})
@davidsteinberger davidsteinberger added the bug Something isn't working label Jan 30, 2025
@folke
Copy link
Owner

folke commented Jan 30, 2025

I don't see how this can be caused by snacks.
As you can see from one of the screencasts in the issue, it also happens with the astronvim dashboard, which is not snacks.
closing...

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2025
@davidsteinberger
Copy link
Author

Ups, sorry I missed that. I tried it with Lazyvim and thought that it only happens there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants