another day

This commit is contained in:
Iwaniuk Krzysztof 2024-06-19 00:41:29 +02:00
parent feb59d91c5
commit 1bbc50e3a9
27 changed files with 419 additions and 246 deletions

View file

@ -1,36 +1,37 @@
return {
{
'tzachar/highlight-undo.nvim',
config = function()
vim.api.nvim_create_autocmd('TextYankPost', {
desc = 'Highlight when yanking (copying) text',
group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }),
callback = function()
vim.highlight.on_yank { timeout = 200 }
end,
})
vim.api.nvim_set_hl(0, 'highlight-action', {
fg = '#dcd7ba',
bg = '#2d4f67',
default = true,
})
require('highlight-undo').setup {
duration = 200,
undo = {
lhs = 'u',
hlgroup = 'DiffAdd',
map = 'undo',
opts = {},
},
redo = {
lhs = '<C-r>',
hlgroup = 'DiffAdd',
map = 'redo',
opts = {},
},
}
end,
},
}
-- return {
-- {
-- 'tzachar/highlight-undo.nvim',
-- config = function()
-- vim.api.nvim_create_autocmd('TextYankPost', {
-- desc = 'Highlight when yanking (copying) text',
-- group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }),
-- callback = function()
-- vim.highlight.on_yank { timeout = 200 }
-- end,
-- })
--
-- vim.api.nvim_set_hl(0, 'highlight-action', {
-- fg = '#dcd7ba',
-- bg = '#2d4f67',
-- default = true,
-- })
--
-- require('highlight-undo').setup {
-- duration = 200,
-- undo = {
-- lhs = 'u',
-- hlgroup = 'DiffAdd',
-- map = 'undo',
-- opts = {},
-- },
-- redo = {
-- lhs = '<C-r>',
-- hlgroup = 'DiffAdd',
-- map = 'redo',
-- opts = {},
-- },
-- }
-- end,
-- },
-- }
return {}