feat: add yanky binds

This commit is contained in:
Youwen Wu 2024-08-18 03:00:10 -07:00
parent 267ccb6279
commit 30ba3c5580
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -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";