Skip to content

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
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant