From b5a884ce802af27d0ded7346168cb8d72fbc001f Mon Sep 17 00:00:00 2001 From: orip Date: Sat, 26 Apr 2025 15:20:16 +0300 Subject: [PATCH] Add type hint for vim.opt.rtp --- init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 02d3319c..61bb5384 100644 --- a/init.lua +++ b/init.lua @@ -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 ]] --