-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Opening files from alpha and ignoring quickfix seems to cause issues #76
Comments
Can't repro with a minimal config. Is this still an issue? |
Yes, it is still an issue. Weird you can't reproduce it with the minimal config, cause I still can. Here is a recording of the issue: https://asciinema.org/a/hlWi62JWLLyEYih6psKhgim97 My neovim version is |
If you're using this minimal config, you're still using the old version owned by @ noib3 which may not be updated. The bug still occurs there, but can't repro on the main branch here. Make sure you're using |
I didn't realize the repo owneship had moved. I think the old points to the new, but I changed it to This is the new (full) minimal local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
-- bootstrap lazy.nvim
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({
{
"willothy/nvim-cokeline",
config = function()
require("cokeline").setup({
show_if_buffers_are_at_least = 2,
buffers = {
new_buffers_position = "next",
},
})
end,
},
{
"goolord/alpha-nvim",
config = function()
require("alpha").setup(require("alpha.themes.dashboard").config)
end,
},
{
"sindrets/diffview.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
}) |
Hmm, that's odd, my bad! I'll leave this open and do some more testing as soon as I can. |
Are you still able to repro this? I've just tried the minimal init again and still haven't been able to. |
Hmmm, I am still able to. I really wonder what I am doing different. To run a minimal setup I put them in a separate folder and run neovim with the following script #!/bin/env bash
XDG_CONFIG_HOME="$HOME/Tests/neovim/cokeline/config" \
XDG_DATA_HOME="$HOME/Tests/neovim/cokeline/data" \
nvim "$@" I empty And it seems to me to run a minimal config. I then (similar to the screencast)
But I have found a workaround, so I am happy to close this, it's just if the error is symptomatic for something else. |
Oh, I got it! Thanks, I must've not been following the same steps before. I'll try to get this fixed sometime this week. |
Should be fixed :) |
It works! Thank you :) |
Awesome! |
I am having an issue combining alpha, diffview.nvim, and cokeline and I am trying to figure out what the problem is and I think I might have gotten to the bottom of how it goes wrong (but not why). Specifically this minimal configuration gives an error in combination:
If I take this config, opens a git repo, runst
:DiffviewOpen
and then navigate to a new item to open (or just open anything with e.g.:e
) I get the following error message from cokelineI can see it's a fairly convoluted example, but I don't see any part of this I'd want to remove from my workflow. It doesn't appear if I show quickfix buffers in cokeline, and it doesn't appear if cokeline is shown with only 1 buffer. If I do this with alpha cokeline doesn't appear after running
:DiffviewOpen
, but if I do this without alpha it doesn't appear because cokeline opens. I thought maybe I could reproduce it by settingshow_if_buffers_are_at_least = 3
, but that does not give the error. I was also able to get the error by opening a file with telescope from alpha, but I didn't make an MWE from that.The text was updated successfully, but these errors were encountered: