diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-09 13:04:46 +0100 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2026-09-09 22:31:58 +0100 |
| commit | d039f19af54e73e1f076c29f1cb412c14612da07 (patch) | |
| tree | 7d5f04c1810d063dda4389af4bd2532511bb8787 /runtime/lua/vim/loader.lua | |
| parent | 08dd3adffb60ae6c031f9b8310febd65bb14604e (diff) | |
| download | rneovim-d039f19af54e73e1f076c29f1cb412c14612da07.tar.gz rneovim-d039f19af54e73e1f076c29f1cb412c14612da07.tar.bz2 rneovim-d039f19af54e73e1f076c29f1cb412c14612da07.zip | |
build: enable more EmmyLua checks
Enable checks for unused code, deprecated calls, return types, and
annotations.
Fix the warnings and replace the deprecated highlight function. Keep
exceptions where old APIs are still needed or the checker gets it wrong.
AI-assisted
Diffstat (limited to 'runtime/lua/vim/loader.lua')
| -rw-r--r-- | runtime/lua/vim/loader.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/loader.lua b/runtime/lua/vim/loader.lua index 2ab8d451a2..e819229583 100644 --- a/runtime/lua/vim/loader.lua +++ b/runtime/lua/vim/loader.lua @@ -437,7 +437,8 @@ function M.enable(enable) M.enabled = enable if enable then - vim.fn.mkdir(vim.fs.abspath(M.path), 'p') + vim.fn.mkdir(fs.abspath(M.path), 'p') + ---@diagnostic disable-next-line: global-in-non-module _G.loadfile = loadfile_cached -- add Lua loader table.insert(loaders, 2, loader_cached) @@ -451,6 +452,7 @@ function M.enable(enable) end end else + ---@diagnostic disable-next-line: global-in-non-module _G.loadfile = _loadfile for l = #loaders, 1, -1 do local loader = loaders[l] |