-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stickybuf.nvim): stick to non-editable buffer (#334)
* perf(stickybuf.nvim): stick to buf * perf(stickybuf.nvim): migrate 'keymap.exec' to sticky * feat(stickybuf.nvim): stick to buf * feat(stickybuf.nvim): migrate to sticky
- Loading branch information
1 parent
f9ace6d
commit 5558286
Showing
11 changed files
with
163 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,38 @@ | ||
local keymap = require("builtin.utils.keymap") | ||
local set_lazy_key = require("builtin.utils.keymap").set_lazy_key | ||
|
||
local M = { | ||
-- put | ||
keymap.set_lazy_key( | ||
set_lazy_key( | ||
{ "n", "x" }, | ||
"p", | ||
"<Plug>(YankyPutAfter)", | ||
{ desc = "Put after cursor (yanky)" } | ||
), | ||
keymap.set_lazy_key( | ||
set_lazy_key( | ||
{ "n", "x" }, | ||
"P", | ||
"<Plug>(YankyPutBefore)", | ||
{ desc = "Put before cursor (yanky)" } | ||
), | ||
keymap.set_lazy_key( | ||
set_lazy_key( | ||
{ "n", "x" }, | ||
"gp", | ||
"<Plug>(YankyGPutAfter)", | ||
{ desc = "Put after cursor and leave the cursor after (yanky)" } | ||
), | ||
keymap.set_lazy_key( | ||
set_lazy_key( | ||
{ "n", "x" }, | ||
"gP", | ||
"<Plug>(YankyGPutBefore)", | ||
{ desc = "Put before cursor and leave the cursor after (yanky)" } | ||
), | ||
-- yank | ||
keymap.set_lazy_key( | ||
set_lazy_key( | ||
{ "n", "x" }, | ||
"y", | ||
"<Plug>(YankyYank)", | ||
{ desc = "Yank (yanky)" } | ||
), | ||
-- history | ||
keymap.set_lazy_key( | ||
"n", | ||
"<leader>yh", | ||
keymap.exec("YankyRingHistory"), | ||
{ desc = "Yank ring history" } | ||
), | ||
} | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.