Skip to content

Commit 48fc83a

Browse files
committed
lint: fix typecheck errors
1 parent 2f510b7 commit 48fc83a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lua/oil/util.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ M.render_text = function(bufnr, text, opts)
582582
h_align = "center",
583583
v_align = "center",
584584
})
585+
---@cast opts table
585586
if not vim.api.nvim_buf_is_valid(bufnr) then
586587
return
587588
end

lua/oil/view.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ M.render_buffer_async = function(bufnr, opts, callback)
871871
opts = vim.tbl_deep_extend("keep", opts or {}, {
872872
refetch = true,
873873
})
874+
---@cast opts table
874875
if bufnr == 0 then
875876
bufnr = vim.api.nvim_get_current_buf()
876877
end

0 commit comments

Comments
 (0)