1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: updated yank color

This commit is contained in:
2024-04-02 00:19:28 +02:00
parent 2b842cee47
commit 3b1eaeec65
4 changed files with 16 additions and 10 deletions

View File

@@ -1,10 +1,8 @@
-- highlighting yanked regions
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank()
vim.highlight.on_yank({higroup="YankHighlight"})
end,
group = highlight_group,
})
-- gnikdroy/projections.nvim

View File

@@ -16,7 +16,6 @@ m.nname("<C-W>", "Navigation")
-- unmap unwanted commands
m.nnoremap("Zt", '<NOP>')
m.nnoremap("ZT", '<NOP>')
m.nnoremap("ZQ", '<NOP>')
m.nnoremap("<Space>", '<NOP>')
m.inoremap("<F2>", '<NOP>')
m.inoremap("<F3>", '<NOP>')

View File

@@ -0,0 +1,8 @@
return {
{
"mvllow/modes.nvim",
config = function()
require("modes").setup()
end,
},
}