Skip to content

Commit b5a884c

Browse files
committed
Add type hint for vim.opt.rtp
1 parent df1a6c0 commit b5a884c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

init.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,11 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
223223
if vim.v.shell_error ~= 0 then
224224
error('Error cloning lazy.nvim:\n' .. out)
225225
end
226-
end ---@diagnostic disable-next-line: undefined-field
227-
vim.opt.rtp:prepend(lazypath)
226+
end
227+
228+
---@type vim.Option
229+
local rtp = vim.opt.rtp
230+
rtp:prepend(lazypath)
228231

229232
-- [[ Configure and install plugins ]]
230233
--

0 commit comments

Comments
 (0)