added snacks
This commit is contained in:
parent
faf9573534
commit
000a7051f1
40
lua/plugins/snacks.lua
Normal file
40
lua/plugins/snacks.lua
Normal file
@ -0,0 +1,40 @@
|
||||
return {
|
||||
'folke/snacks.nvim',
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
---@type snacks.Config
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
bigfile = { enabled = true },
|
||||
notifier = { enabled = true },
|
||||
quickfile = { enabled = true },
|
||||
statuscolumn = { enabled = true },
|
||||
words = { enabled = true },
|
||||
dashboard = { enabled = true },
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<space>g',
|
||||
function()
|
||||
Snacks.lazygit()
|
||||
end,
|
||||
desc = 'Lazygit',
|
||||
},
|
||||
{
|
||||
'<space>gf',
|
||||
function()
|
||||
Snacks.lazygit.log_file()
|
||||
end,
|
||||
desc = 'Lazygit Current File History',
|
||||
},
|
||||
{
|
||||
'<space>gl',
|
||||
function()
|
||||
Snacks.lazygit.log()
|
||||
end,
|
||||
desc = 'Lazygit Log (cwd)',
|
||||
},
|
||||
},
|
||||
}
|
@ -42,14 +42,5 @@ return {
|
||||
lazygit:open()
|
||||
end
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
'<Space>g',
|
||||
function()
|
||||
_lazygit_toggle()
|
||||
end,
|
||||
desc = 'LazyGit',
|
||||
},
|
||||
},
|
||||
cmd = 'ToggleTerm',
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user