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

Full line not triggered with Whichkey enabled #4

Open
jonathf opened this issue Jul 19, 2024 · 3 comments
Open

Full line not triggered with Whichkey enabled #4

jonathf opened this issue Jul 19, 2024 · 3 comments

Comments

@jonathf
Copy link

jonathf commented Jul 19, 2024

I am using Noice.nvimWhichkey.nvim. When enabled, full_visual_line does not trigger on the push of V. Instead another butten needs to be pressed by the user to trigger the full visual line.

Is there a way to get full visual line to work in this svenario?

EDIT:
wrong plugin. A bit to hasty in my writing.

@0xAdk
Copy link
Owner

0xAdk commented Jul 19, 2024

I can try and repo this later, but if you could give a mino config that reproduces the error that would help a lot.

example config.lua for lazy.nvim
local plug_dir = vim.env.HOME .. '/.local/share/nvim/lazy'

vim.opt.rtp:append {
	plug_dir .. '/full_visual_line.nvim',
	plug_dir .. '/foo.nvim',
}

require 'full_visual_line'.setup {}

open with nvim -u config.lua

@jonathf
Copy link
Author

jonathf commented Jul 19, 2024

Here is the minimal config that reproduces the error:

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
vim.opt.rtp:prepend(lazypath)

require "lazy".setup({
  {
    "0xAdk/full_visual_line.nvim",
    keys = "V",
    opts = {},
  },
  {
    "folke/which-key.nvim",
    opts = {},
  }
})

@jonathf jonathf changed the title Full line not triggered with Noice enabled Full line not triggered with Whichkey enabled Jul 19, 2024
@0xAdk
Copy link
Owner

0xAdk commented Jul 20, 2024

I don't have a fix yet, but I do know it only happens if you're using both which key and lazy's keys lazy loading feature.

A workaround is just to not lazy load the plugin:

{
    '0xAdk/full_visual_line.nvim',
    opts = {},
},

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