mcchrish / nnn.vim

File manager for vim/neovim powered by n³
BSD 2-Clause "Simplified" License
645 stars 24 forks source link

ftplugin sets a global option (`noshowmode`) #152

Closed chriszarate closed 2 years ago

chriszarate commented 2 years ago

Describe the bug

The file ftplugin/nnn.vim sets noshowmode, which is global. After using nnn.vim, the mode is no longer visible on the last line.

To Reproduce

Steps to reproduce the behavior and with the most minimal configuration. With only nnn.vim installed and additional configurations/plugins that helps reproduce the bug:

  1. Open vim.
  2. Run :set showmode?, confirm that it returns showmode.
  3. Run :NnnPicker or :NnnExplore and q to return to buffer.
  4. Run :set showmode? again, now it returns noshowmode

Expected behavior

Global option showmode should not be overridden.

Screenshots

https://user-images.githubusercontent.com/739304/147990676-0ce419c7-595d-4e9f-9351-89b304f00607.mov

Environment: