Added snacks terminal although I don't like it, I tried in the past some
terminal plugins and I found them very lacking, I'll do more research tmr
This commit is contained in:
@@ -1,28 +1,20 @@
|
||||
return {
|
||||
'folke/edgy.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
bottom = {
|
||||
'Trouble',
|
||||
{ ft = 'qf', title = 'QuickFix' },
|
||||
{
|
||||
ft = 'help',
|
||||
size = { height = 20 },
|
||||
filter = function(buf) -- only show help buffers
|
||||
return vim.bo[buf].buftype == 'help'
|
||||
opts = function(_, opts)
|
||||
for _, pos in ipairs({ 'top', 'bottom', 'left', 'right' }) do
|
||||
opts[pos] = opts[pos] or {}
|
||||
table.insert(opts[pos], {
|
||||
ft = 'snacks_terminal',
|
||||
size = { height = 0.4 },
|
||||
title = '%{b:snacks_terminal.id}: %{b:term_title}',
|
||||
filter = function(_buf, win)
|
||||
return vim.w[win].snacks_win
|
||||
and vim.w[win].snacks_win.position == pos
|
||||
and vim.w[win].snacks_win.relative == 'editor'
|
||||
and not vim.w[win].trouble_preview
|
||||
end,
|
||||
},
|
||||
{ ft = 'spectre_panel', size = { height = 0.4 } },
|
||||
},
|
||||
left = {
|
||||
{
|
||||
title = 'Neo-Tree',
|
||||
ft = 'neo-tree',
|
||||
filter = function(buf)
|
||||
return vim.b[buf].neo_tree_source == 'filesystem'
|
||||
end,
|
||||
size = { height = 0.5 },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -54,6 +54,13 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
-- scroll = {
|
||||
-- animate = {
|
||||
-- duration = { step = 15, total = 50 },
|
||||
-- easing = 'linear',
|
||||
-- },
|
||||
-- },
|
||||
terminal = {},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
@@ -229,7 +236,22 @@ return {
|
||||
function()
|
||||
Snacks.scratch.select()
|
||||
end,
|
||||
desc = 'Select Scratch Buffer',
|
||||
desc = 'Select [S]cratch Buffer',
|
||||
},
|
||||
|
||||
{
|
||||
'<leader>nt',
|
||||
function()
|
||||
Snacks.terminal.open()
|
||||
end,
|
||||
desc = '[N]ew [T]erminal',
|
||||
},
|
||||
{
|
||||
'<leader>T',
|
||||
function()
|
||||
Snacks.terminal.toggle()
|
||||
end,
|
||||
desc = 'Toggle [T]erminal',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user