Skip to content

Commit 5a4ac30

Browse files
fix: timemout_milliseconds option typo on key tables (#58); chore:
format
1 parent 1deab20 commit 5a4ac30

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

.stylua.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
syntax = "LuaJIT"
12
column_width = 100
23
line_endings = "Unix"
34
indent_type = "Spaces"

config/bindings.lua

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ local keys = {
107107
window:set_inner_size(new_width, new_height)
108108
end)
109109
},
110+
{
111+
key = 'Enter',
112+
mods = mod.SUPER_REV,
113+
action = wezterm.action_callback(function(window, _pane)
114+
window:maximize()
115+
end)
116+
},
110117

111118
-- background controls --
112119
{
@@ -197,7 +204,7 @@ local keys = {
197204
action = act.ActivateKeyTable({
198205
name = 'resize_font',
199206
one_shot = false,
200-
timemout_miliseconds = 1000,
207+
timemout_milliseconds = 1000,
201208
}),
202209
},
203210
-- resize panes
@@ -207,7 +214,7 @@ local keys = {
207214
action = act.ActivateKeyTable({
208215
name = 'resize_pane',
209216
one_shot = false,
210-
timemout_miliseconds = 1000,
217+
timemout_milliseconds = 1000,
211218
}),
212219
},
213220
}

events/gui-startup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local M = {}
55

66
M.setup = function()
77
wezterm.on('gui-startup', function(cmd)
8-
local _tab, _pane, window = mux.spawn_window(cmd or {})
8+
local _, _, window = mux.spawn_window(cmd or {})
99
window:gui_window():maximize()
1010
end)
1111
end

utils/backdrops.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ function BackDrops:_set_focus_opt(window)
151151
window:set_config_overrides(opts)
152152
end
153153

154-
155-
156154
---Convert the `files` array to a table of `InputSelector` choices
157155
---see: https://wezfurlong.org/wezterm/config/lua/keyassignment/InputSelector.html
158156
function BackDrops:choices()

utils/opts-validator.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ local function validate_opts_schema(schema)
5454
)
5555
assert(
5656
opt.type == 'boolean'
57-
or opt.type == 'number'
58-
or opt.type == 'string'
59-
or opt.type == 'table',
57+
or opt.type == 'number'
58+
or opt.type == 'string'
59+
or opt.type == 'table',
6060
'type must be one of boolean, number, string, table'
6161
)
6262
assert(type(opt.type) == 'string', 'type must be a string')
@@ -129,9 +129,9 @@ function OptsValidator:validate(opts)
129129
end
130130

131131
if
132-
(opt.type == 'string' or opt.type == 'number')
133-
and opt.enum ~= nil
134-
and not tbl_contains(opt.enum, value)
132+
(opt.type == 'string' or opt.type == 'number')
133+
and opt.enum ~= nil
134+
and not tbl_contains(opt.enum, value)
135135
then
136136
table.insert(
137137
errors,

0 commit comments

Comments
 (0)