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]: the pick-focus and pick-close binds don't work #204

Open
justchokingaround opened this issue May 22, 2024 · 7 comments
Open

[bug]: the pick-focus and pick-close binds don't work #204

justchokingaround opened this issue May 22, 2024 · 7 comments

Comments

@justchokingaround
Copy link

image
as the title says, these binds don't work (after i run that command, nothing happens). for comparison they work fine in nvim-bufferline:
image

@justchokingaround justchokingaround changed the title [bugs]: the pick-focus and pick-close binds don't work [bug]: the pick-focus and pick-close binds don't work May 22, 2024
@willothy
Copy link
Owner

willothy commented May 22, 2024

Could you please provide a minimal init file that can reproduce this issue, and some info about your Neovim version? I can't reproduce this, the binds work fine for me.

@justchokingaround
Copy link
Author

sure, i'll try doing that later, maybe tomorrow or in two days. i was testing with neovim v0.10.0 tho, so that might be why

@willothy
Copy link
Owner

I'm on v0.10.0 as well. I'm not using the plug mappings though, maybe that's the difference. I'll look into it a bit more.

No rush, I'm super busy with work rn so I don't have a ton of time for open-source rn. I'll try to get to this ASAP once you have some more info though :)

@justchokingaround
Copy link
Author

yeah sure np. just fyi i tried the same thing with lua and it had the same result

@willothy
Copy link
Owner

Hmm alright, that's good to know. Thanks!

@justchokingaround
Copy link
Author

local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
	local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
	vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)

require('lazy').setup({
	{
		"willothy/nvim-cokeline",
		dependencies = {
			"nvim-lua/plenary.nvim", -- Required for v0.4.0+
			"nvim-tree/nvim-web-devicons", -- If you want devicons
			"stevearc/resession.nvim" -- Optional, for persistent history
		},
		config = true
	},
	{ "nvim-telescope/telescope.nvim" },
})
vim.api.nvim_set_keymap('n', '<space><space>', ':Telescope find_files<CR>', { noremap = true, silent = true })

here's a minimal config u can run with nvim --clean -u temp.lua . the only keybinds which didn't work in my testing were <Plug>(cokeline-pick-focus) and <Plug>(cokeline-pick-close)

@willothy
Copy link
Owner

willothy commented Jun 3, 2024

Thanks! I'll look into this as soon as I can.

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

2 participants