mirror of
https://github.com/softinio/nvim-config.git
synced 2025-09-03 16:16:42 -07:00
updates to avante and vscode yank settings
This commit is contained in:
parent
06c8cbb173
commit
c5f6c48249
3 changed files with 25 additions and 2 deletions
|
@ -6,6 +6,15 @@ keymap("n", "<Space>", "", opts)
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- highligh yank
|
||||
vim.api.nvim_set_hl(0, "YankHighlight", { guibg = "#d19a66" })
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ higroup = "YankHighlight", timeout = 1000 })
|
||||
end,
|
||||
pattern = "*",
|
||||
})
|
||||
|
||||
-- yank to system clipboard
|
||||
keymap({ "n", "v" }, "<leader>y", '"+y', opts)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue