Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

maparg()/mapset() dosen't work if rhs of mapping is lua function #20019

Closed
Assignees
zeertzjq
Labels
@pogyomo

Description

@pogyomo

Neovim version (nvim -v)

0.8.0-dev-995-gf4274d0f6-dirty

Vim (not Nvim) behaves the same?

not relevant

Operating system/version

Linux Mint 20.3 Una

Terminal name/version

wezterm 20220807-113146-c2fee766

$TERM environment variable

xterm-256color

Installation

brew

How to reproduce the issue

nvim --clean:lua vim.keymap.set("n", "i", function() print("first") end):lua dict = vim.fn.maparg("i", "n", false, true):lua vim.keymap.set("n", "i", function() print("second") end):lua vim.fn.mapset("n", false, dict)

Expected behavior

No errors

Actual behavior

Got error

E5108: Error executing lua Vim:E460: entries missing in mapset() dict argumentstack traceback:        [C]: in function 'mapset'        [string ":lua"]:1: in main chunk

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp