sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.6k stars 101 forks source link

[Bug] keymaps override issue in LazyVim #382

Closed 2nthony closed 1 year ago

2nthony commented 1 year ago

Description

in LazyVim.

I has some custom keymaps which conflicts to diffview default keymaps.

image

so if i open the diffview panel and press <leader>c, which key will appear

image

Expected behavior

i am not sure if is the priority problem and not sure if these can.🙏

expected:

Actual behavior

-

Steps to reproduce

-

Health check

Output of :checkhealth diffview ``` ============================================================================== diffview: require("diffview.health").check() Checking plugin dependencies ~ - OK nvim-web-devicons installed. Checking VCS tools ~ - The plugin requires at least one of the supported VCS tools to be valid. - OK Git found. - OK Git is up-to-date. (2.39.2) - WARNING Configured `hg_cmd` is not executable: 'hg' ```

Log info

No response

Neovim version

NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

macOS 13.4

Minimal config

No response

sindrets commented 1 year ago

What exactly is the problem here?

expected:

  • set the keymaps when diffview open.
  • restore the keymaps when diffview close or exit

The plugin already does this.

2nthony commented 1 year ago

ok, thanks to letting me know. I'll try to figure out the reason is.

sindrets commented 1 year ago

Closing until more info is provided.