You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and my diffview config in the minimal config section below.
Whenever I enter diffview using DiffviewOpen, then focus the cursor on all available windows (file panel, and 2 diff windows) then close it either with tabc or DiffviewClose. Somehow my <leader>e keymap set above disappear.
Expected behavior
Diffview should restore buffer keymaps
Actual behavior
Seems like diffview override my buffer keymap <leader>e to focus file panel action, but not restoring it on close.
Steps to reproduce
Map something with <leader>e to buffer: nmap <buffer> <leader>e :lua vim.notify("test")<CR>
Make changes to current buffer and save, so that it will appear as modified git file.
Open diffview: DiffviewOpen
(Optionally) focus on all windows on diff view
Close diffview: DiffviewClose
Somehow map set in step 1 missing
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.1)
- WARNING Configured `hg_cmd` is not executable: 'hg'
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1692716794
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/__w/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
Run :checkhealth for more info
Description
I have this keymaps setting for buffer on lsp attach
and my diffview config in the minimal config section below.
Whenever I enter diffview using DiffviewOpen, then focus the cursor on all available windows (file panel, and 2 diff windows) then close it either with
tabc
orDiffviewClose
. Somehow my<leader>e
keymap set above disappear.Expected behavior
Diffview should restore buffer keymaps
Actual behavior
Seems like diffview override my buffer keymap
<leader>e
to focus file panel action, but not restoring it on close.Steps to reproduce
<leader>e
to buffer:nmap <buffer> <leader>e :lua vim.notify("test")<CR>
DiffviewOpen
DiffviewClose
Health check
Output of
:checkhealth diffview
Log info
Relevant info from
:DiffviewLog
Neovim version
Operating system and version
Linux 6.2.0-36-generic x86_64 GNU/Linux
Minimal config
The text was updated successfully, but these errors were encountered: