Skip to content

Question: Add desc parameter to mappings #51

@shahamran

Description

@shahamran

Hi, thanks for this plugin, it makes my init.lua much nicer.

I apologize in advance if this is a silly question, I'm new to neovim.

Inspired by kickstart.nvim, I set mappings like this:

vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { buffer = bufnr, desc = '[G]o to [D]efinition' })

which made integration with which-key really nice.

Is there a way to achieve this simply with this plugin? Or should I just set default_mappings = false and configure it manually?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions