nvim: install osc52
This commit is contained in:
parent
9f2d575cc3
commit
d725563605
2 changed files with 17 additions and 0 deletions
|
@ -196,6 +196,13 @@ return require("packer").startup(function()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
use({
|
||||||
|
"ojroques/nvim-osc52",
|
||||||
|
config = function()
|
||||||
|
require("plugins/osc52")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- marks
|
-- marks
|
||||||
use({
|
use({
|
||||||
"chentoast/marks.nvim",
|
"chentoast/marks.nvim",
|
||||||
|
|
10
.config/nvim/lua/plugins/osc52.lua
Normal file
10
.config/nvim/lua/plugins/osc52.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
local osc52 = require("osc52")
|
||||||
|
osc52.setup({
|
||||||
|
max_length = 0, -- Maximum length of selection (0 for no limit)
|
||||||
|
silent = false, -- Disable message on successful copy
|
||||||
|
trim = false, -- Trim text before copy
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>c", require("osc52").copy_operator, { expr = true })
|
||||||
|
vim.keymap.set("n", "<leader>cc", "<leader>c_", { remap = true })
|
||||||
|
vim.keymap.set("x", "<leader>c", require("osc52").copy_visual)
|
Loading…
Reference in a new issue