-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
020f771
commit cc3ed94
Showing
2 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
local status, edgy = pcall(require, "edgy") | ||
if not status then | ||
vim.notify("edgy.nvim not found", "error") | ||
return | ||
end | ||
|
||
local opts = { | ||
bottom = { | ||
{ | ||
ft = "toggleterm", | ||
size = { height = 0.4 }, | ||
filter = function(buf, win) | ||
return vim.api.nvim_win_get_config(win).relative == "" | ||
end, | ||
}, | ||
{ | ||
ft = "noice", | ||
size = { height = 0.4 }, | ||
filter = function(buf, win) | ||
return vim.api.nvim_win_get_config(win).relative == "" | ||
end, | ||
}, | ||
{ | ||
ft = "lazyterm", | ||
title = "LazyTerm", | ||
size = { height = 0.4 }, | ||
filter = function(buf) | ||
return not vim.b[buf].lazyterm_cmd | ||
end, | ||
}, | ||
"Trouble", | ||
{ ft = "qf", title = "QuickFix" }, | ||
{ | ||
ft = "help", | ||
size = { height = 20 }, | ||
-- don't open help files in edgy that we're editing | ||
filter = function(buf) | ||
return vim.bo[buf].buftype == "help" | ||
end, | ||
}, | ||
{ ft = "spectre_panel", size = { height = 0.4 } }, | ||
{ title = "Neotest Output", ft = "neotest-output-panel", size = { height = 15 } }, | ||
}, | ||
left = { | ||
{ | ||
title = "Neo-Tree", | ||
ft = "neo-tree", | ||
filter = function(buf) | ||
return vim.b[buf].neo_tree_source == "filesystem" | ||
end, | ||
pinned = true, | ||
open = function() | ||
vim.api.nvim_input("<esc><space>e") | ||
end, | ||
size = { height = 0.5 }, | ||
}, | ||
{ title = "Neotest Summary", ft = "neotest-summary" }, | ||
{ | ||
title = "Neo-Tree Git", | ||
ft = "neo-tree", | ||
filter = function(buf) | ||
return vim.b[buf].neo_tree_source == "git_status" | ||
end, | ||
pinned = true, | ||
open = "Neotree position=right git_status", | ||
}, | ||
{ | ||
title = "Neo-Tree Buffers", | ||
ft = "neo-tree", | ||
filter = function(buf) | ||
return vim.b[buf].neo_tree_source == "buffers" | ||
end, | ||
pinned = true, | ||
open = "Neotree position=top buffers", | ||
}, | ||
"neo-tree", | ||
}, | ||
keys = { | ||
-- increase width | ||
["<c-Right>"] = function(win) | ||
win:resize("width", 2) | ||
end, | ||
-- decrease width | ||
["<c-Left>"] = function(win) | ||
win:resize("width", -2) | ||
end, | ||
-- increase height | ||
["<c-Up>"] = function(win) | ||
win:resize("height", 2) | ||
end, | ||
-- decrease height | ||
["<c-Down>"] = function(win) | ||
win:resize("height", -2) | ||
end, | ||
}, | ||
} | ||
|
||
edgy.setup(opts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters