📁 files(nvim): add extended label in yanky extra name
This commit is contained in:
parent
f4ec61ca21
commit
d6512ecba5
2 changed files with 39 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
"plugins.extras.coding.treesitter.node-action",
|
||||
"plugins.extras.coding.treesitter.puppeteer",
|
||||
"plugins.extras.coding.treesitter.various-textobjs",
|
||||
"plugins.extras.coding.yanky",
|
||||
"plugins.extras.coding.yanky-extended",
|
||||
"plugins.extras.dap.core-extended",
|
||||
"plugins.extras.dap.persistent-breakpoints",
|
||||
"plugins.extras.editor.codesnap",
|
||||
|
|
38
.config/nvim/lua/plugins/extras/coding/yanky-extended.lua
Normal file
38
.config/nvim/lua/plugins/extras/coding/yanky-extended.lua
Normal file
|
@ -0,0 +1,38 @@
|
|||
return {
|
||||
{
|
||||
import = "lazyvim.plugins.extras.coding.yanky",
|
||||
},
|
||||
{
|
||||
"gbprod/yanky.nvim",
|
||||
opts = function(_, opts)
|
||||
local utils = require("yanky.utils")
|
||||
local mapping = require("yanky.telescope.mapping")
|
||||
|
||||
opts.highlight = { timer = 250 }
|
||||
opts.picker = {
|
||||
telescope = {
|
||||
use_default_mappings = false,
|
||||
mappings = {
|
||||
default = mapping.put("p"),
|
||||
i = {
|
||||
["<c-g>"] = mapping.put("p"),
|
||||
["<c-h>"] = mapping.put("P"),
|
||||
["<c-x>"] = mapping.delete(),
|
||||
["<c-r>"] = mapping.set_register(utils.get_default_register()),
|
||||
},
|
||||
n = {
|
||||
p = mapping.put("p"),
|
||||
P = mapping.put("P"),
|
||||
d = mapping.delete(),
|
||||
r = mapping.set_register(utils.get_default_register()),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue