mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
feat: add yanky binds
This commit is contained in:
parent
267ccb6279
commit
30ba3c5580
1 changed files with 34 additions and 0 deletions
|
@ -25,6 +25,10 @@
|
|||
mapleader = " ";
|
||||
};
|
||||
|
||||
extraConfigLua = ''
|
||||
require("telescope").load_extension("yank_history")
|
||||
'';
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
# Unmap space (leader)
|
||||
|
@ -297,6 +301,36 @@
|
|||
};
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<Plug>(YankyPutAfter)";
|
||||
key = "p";
|
||||
options = {};
|
||||
mode = ["n" "x"];
|
||||
}
|
||||
{
|
||||
action = "<Plug>(YankyPutBefore)";
|
||||
key = "P";
|
||||
options = {};
|
||||
mode = ["n" "x"];
|
||||
}
|
||||
{
|
||||
action = "<Plug>(YankyGPutAfter)";
|
||||
key = "gp";
|
||||
options = {};
|
||||
mode = ["n" "x"];
|
||||
}
|
||||
{
|
||||
action = "<Plug>(YankyGPutBefore)";
|
||||
key = "gP";
|
||||
options = {};
|
||||
mode = ["n" "x"];
|
||||
}
|
||||
{
|
||||
action = ":Telescope yank_history<CR>";
|
||||
key = "<Leader>p";
|
||||
options = {};
|
||||
mode = "n";
|
||||
}
|
||||
# {
|
||||
# action = "<cmd>lua require'conform'.format({ bufnr = args.bf })<CR>";
|
||||
# key = "<Leader>cf";
|
||||
|
|
Loading…
Reference in a new issue