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:
parent
1fc9d83c9b
commit
88454b931c
1 changed files with 14 additions and 0 deletions
14
nvim/_types.lua
Normal file
14
nvim/_types.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue