mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
snacks rice + new colorscheme
This commit is contained in:
parent
66d50e274e
commit
d998429cb8
15 changed files with 1068 additions and 427 deletions
26
nvim/lua/plugins/lib/snacks.lua
Normal file
26
nvim/lua/plugins/lib/snacks.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
M = {}
|
||||
M.marks = function()
|
||||
return {
|
||||
finder = 'vim_marks',
|
||||
format = 'file',
|
||||
['local'] = false,
|
||||
global = true,
|
||||
actions = {
|
||||
markdel = function(picker)
|
||||
for _, item in ipairs(picker:selected()) do
|
||||
vim.cmd.delmarks { args = { item.label } }
|
||||
end
|
||||
vim.cmd('wshada')
|
||||
picker.list:set_selected()
|
||||
picker.list:set_target()
|
||||
picker:find()
|
||||
end,
|
||||
},
|
||||
win = {
|
||||
list = {
|
||||
keys = { ['dd'] = 'markdel' },
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue