From 88454b931c3d2d3abde32280024cf5c180129304 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 26 Aug 2024 18:46:56 +0200 Subject: [PATCH] nvim add a files with type aliases because luals is being a twat --- nvim/_types.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nvim/_types.lua diff --git a/nvim/_types.lua b/nvim/_types.lua new file mode 100644 index 0000000..e3cbc57 --- /dev/null +++ b/nvim/_types.lua @@ -0,0 +1,14 @@ + +--- LuaLS is weird and does not recognize builtin types. +--- even tho it should. So define them as alias +---@alias nil nil +---@alias any any +---@alias boolean boolean +---@alias string string +---@alias number number +---@alias integer integer +---@alias function function +---@alias table table +---@alias thread thread +---@alias userdata userdata +---@alias lightuserdata lightuserdata