Skip to content

Commit 986ad71

Browse files
committed
chore: reformat with stylua 0.14
1 parent 03f0901 commit 986ad71

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

lua/plenary/job.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,8 @@ function Job:new(o)
142142
-- enable_recording: Do you want to record stdout/stderr into a table.
143143
-- Since it cannot be enabled when enable_handlers is false,
144144
-- we try and make sure they are associated correctly.
145-
obj.enable_recording = F.if_nil(
146-
F.if_nil(o.enable_recording, o.enable_handlers, o.enable_recording),
147-
true,
148-
o.enable_recording
149-
)
145+
obj.enable_recording =
146+
F.if_nil(F.if_nil(o.enable_recording, o.enable_handlers, o.enable_recording), true, o.enable_recording)
150147

151148
if not obj.enable_handlers and obj.enable_recording then
152149
error "[plenary.job] Cannot record items but disable handlers"

lua/plenary/window/border.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,8 @@ function Border:change_title(new_title, pos)
186186
self._border_win_options.title = { { text = new_title, pos = pos } }
187187
end
188188

189-
self.contents, self.title_ranges = Border._create_lines(
190-
self.content_win_id,
191-
self.content_win_options,
192-
self._border_win_options
193-
)
189+
self.contents, self.title_ranges =
190+
Border._create_lines(self.content_win_id, self.content_win_options, self._border_win_options)
194191
vim.api.nvim_buf_set_lines(self.bufnr, 0, -1, false, self.contents)
195192

196193
set_title_highlights(self.bufnr, self.title_ranges, self._border_win_options.titlehighlight)

0 commit comments

Comments
 (0)