feat(nvim): More leader mappings and text objects

This commit is contained in:
js0ny 2025-01-12 22:36:49 +00:00
parent aeec1ce5c7
commit 073c60f07d
17 changed files with 264 additions and 130 deletions

View file

@ -55,6 +55,8 @@ function M.plugin(api, opts)
{ keys = "x", cmd = api.fs.cut, opts = opts("Cut") },
{ keys = "y", cmd = api.fs.copy.relative_path, opts = opts("Copy Relative Path") },
{ keys = "Y", cmd = api.fs.copy.absolute_path, opts = opts("Copy Absolute Path") },
-- From Directory Opus
{ keys = "#", cmd = "<Cmd>set relativenumber!<CR>", opts = opts("Toggle Relative Number") },
-- Numeric 数字键
{ keys = "!", cmd = api.node.run.cmd, opts = opts("Run Command") },
-- Non-Alphanumeric 非字母数字键