Add type hint for vim.opt.rtp

This commit is contained in:
orip 2025-04-26 15:20:16 +03:00
parent df1a6c0c1d
commit b5a884ce80
1 changed files with 5 additions and 2 deletions

View File

@ -223,8 +223,11 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
if vim.v.shell_error ~= 0 then
error('Error cloning lazy.nvim:\n' .. out)
end
end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)
end
---@type vim.Option
local rtp = vim.opt.rtp
rtp:prepend(lazypath)
-- [[ Configure and install plugins ]]
--