Skip to content

Commit

Permalink
Merge pull request #25 from desdic/20231109windowsize
Browse files Browse the repository at this point in the history
20231109windowsize
  • Loading branch information
desdic committed Nov 9, 2023
2 parents c2421a5 + 79cf31d commit 187bf53
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Neovim 0.8+ is required
{
ui = {
buffer = { -- width and height for the buffer output
width = 100,
height = 50
width = math.ceil(math.min(vim.o.columns, math.max(80, vim.o.columns - 20))),
height = math.ceil(math.min(vim.o.lines, math.max(20, vim.o.lines - 10))),
},
toggleterm = { -- by default no size is defined for the toggleterm by
-- greyjoy.nvim it will be dependent on the user configured size for toggle
Expand Down
6 changes: 5 additions & 1 deletion lua/greyjoy/_extensions/vscode_tasks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,9 @@ end

return greyjoy.register_extension({
setup = function(_) end,
exports = { type = "file", files = { ".vscode/tasks.json" }, parse = M.parse },
exports = {
type = "file",
files = { ".vscode/tasks.json" },
parse = M.parse,
},
})
8 changes: 6 additions & 2 deletions lua/greyjoy/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
local defaults = {
ui = {
buffer = { -- setting for buffer output
width = 100,
height = 50,
width = math.ceil(
math.min(vim.o.columns, math.max(80, vim.o.columns - 20))
),
height = math.ceil(
math.min(vim.o.lines, math.max(20, vim.o.lines - 10))
),
},
toggleterm = { -- by default no size is defined for the toggleterm by
-- greyjoy.nvim it will be dependent on the user configured size for toggle
Expand Down

0 comments on commit 187bf53

Please sign in to comment.