Local mappings via which-key.nvim

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • which-key.nvim

    💥 Create key bindings that stick. WhichKey is a lua plugin for Neovim 0.5 that displays a popup with possible keybindings of the command you started typing.

  • I am new to neovim customisation (I have come from doom-emacs) and I have been trying to set up keybinds with which-key.nvim.

  • vim-fugitive

    fugitive.vim: A Git wrapper so awesome, it should be illegal

  • This is fine, but what is the canonical way to retrieve buffer numbers? For example NvimTree always seems to be buffer 2 (in my extremely limited testing), so specifying buffer=2 in opts works fine. I originally tried something like: lua opts = {..., buffer = vim.fn.bufnr("NvimTree"),...} however this didn't work. I would also like to rename many functions as they appear in the which-key popup. For example, vim-fugitive exposes a command g? when in the git status interface; in the which-key interface this appears like help fugitive-map... or something uninformative. This can be renamed using which-key, but it will then expose a g? command in which-key in all buffers, unless I specify a buffer number. I guess the problem here might be that g? probably just calls :help fugitive-map which is a global command, despite the command g? that invokes this being local to the fugitive buffer...?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • LunarVim

    Discontinued A Neovim config made with sane defaults (by IndianBoy42)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts