1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim add a files with type aliases because luals is being a twat

This commit is contained in:
Henrik Hautakoski 2024-08-26 18:46:56 +02:00
parent 1fc9d83c9b
commit 88454b931c

14
nvim/_types.lua Normal file
View file

@ -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