Skip to content

[BUG] Custom keymaps not work #105

@SuniRein

Description

@SuniRein

Description

Custom keymaps setting doesn't work follow the instruction in README.

Steps to Reproduce

  1. set keymaps.enabled = false in setup
  2. use vim.keymap.set("i", "<CR>", "<Plug>(MarkdownPlusListEnter)") to set custome keymap

Expected Behavior

<CR> works right.

Actual Behavior

After pressing <CR> in insert mode, text <Plug>(MarkdownPlusListEnter) is inserted.

Environment

  • Neovim version: v0.11.5
  • Plugin version: 7d0d052
  • OS: Linux

Additional Context

I viewed the source code and found that <Plug> won't be set if keymaps.enabled is false.

Image

function M.setup_keymaps(config, keymaps)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions