macboolk doesn't like lua :c
This commit is contained in:
parent
f2ba1e8549
commit
5b483a9db7
34 changed files with 279 additions and 776 deletions
36
lua/plugins/highlight-action.lua
Normal file
36
lua/plugins/highlight-action.lua
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
return {
|
||||
{
|
||||
'tzachar/highlight-undo.nvim',
|
||||
config = function(opts)
|
||||
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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue