feat(lua): add meta file for vim submodules (#24525)

This commit is contained in:
Lewis Russell 2023-08-01 18:03:33 +01:00 committed by GitHub
parent 0804034c07
commit 6425869771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
runtime/lua/vim/_meta.lua Normal file
View File

@ -0,0 +1,26 @@
--- @meta
--- The following modules are loaded specially in _init_packages.lua
vim.F = require('vim.F')
vim._watch = require('vim._watch')
vim.diagnostic = require('vim.diagnostic')
vim.filetype = require('vim.filetype')
vim.fs = require('vim.fs')
vim.health = require('vim.health')
vim.highlight = require('vim.highlight')
vim.iter = require('vim.iter')
vim.keymap = require('vim.keymap')
vim.loader = require('vim.loader')
vim.lsp = require('vim.lsp')
vim.re = require('vim.re')
vim.secure = require('vim.secure')
vim.ui = require('vim.ui')
vim.version = require('vim.version')
local uri = require('vim.uri')
vim.uri_from_fname = uri.uri_from_fname
vim.uri_from_bufnr = uri.uri_from_bufnr
vim.uri_to_fname = uri.uri_to_fname
vim.uri_to_bufnr = uri.uri_to_bufnr