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

feat(keys): add mapping rhs as description for temporary lazy mappings #1846

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

staticssleever668
Copy link

Description

Fixes :map not showing what the mapping does until the plugin is loaded.

With lazy mapping { "<Leader>f", "<Cmd>FzfLua files<CR>" }, :map now shows:

n  <Space>f    * <Lua 79: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:126>
                 <Cmd>FzfLua files<CR>

How :map looks after the plugin is loaded:
n <Space>f * <Cmd>FzfLua files<CR>

Related Issue(s)

Screenshots

Fixes `:map` not showing what the mapping does until the plugin is loaded.

With lazy mapping `{ "<Leader>f", "<Cmd>FzfLua files<CR>" },` `:map` now
shows:

```
n  <Space>f    * <Lua 79: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:126>
                 <Cmd>FzfLua files<CR>
```

How `:map` looks after the plugin is loaded:
```
n  <Space>f    * <Cmd>FzfLua files<CR>
```
@staticssleever668 staticssleever668 changed the title feat: add mapping rhs as description for temporary lazy mappings feat(keys): add mapping rhs as description for temporary lazy mappings Dec 10, 2024
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

Successfully merging this pull request may close these issues.

1 participant