Delete some transient files from lua-lsp
This commit is contained in:
parent
0c0f841c7d
commit
ecadd892b0
|
@ -1,240 +0,0 @@
|
|||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:66]: Lua Lsp startup, root: /home/elitherl/.dotfiles/lua-lsp
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:67]: ROOT: /home/elitherl/.dotfiles/lua-lsp
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:68]: LOGPATH: /home/elitherl/.dotfiles/lua-lsp/log
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:69]: METAPATH: /home/elitherl/.dotfiles/lua-lsp/meta
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:70]: VERSION: 3.6.4-dev
|
||||
[10:44:16.694][info] [#0:script/service/service.lua:141]:
|
||||
========= Medical Examination Report =========
|
||||
--------------- Memory ---------------
|
||||
Total: 1.563 MB
|
||||
# 00 : 1.563 MB
|
||||
# 01 : 0.000 MB
|
||||
# 02 : 0.000 MB
|
||||
# 03 : 0.000 MB
|
||||
# 04 : 0.000 MB
|
||||
--------------- Coroutine ---------------
|
||||
Total: 0
|
||||
Running: 0
|
||||
Suspended: 0
|
||||
Normal: 0
|
||||
Dead: 0
|
||||
--------------- Cache ---------------
|
||||
Total: 1
|
||||
Dead: 0
|
||||
--------------- RPC ---------------
|
||||
Holdon: 0
|
||||
Waiting: 0
|
||||
==============================================
|
||||
[10:44:16.699][info] [#0:script/language.lua:137]: VSC language: nil
|
||||
[10:44:16.699][info] [#0:script/language.lua:138]: LS language: en-us
|
||||
[10:44:16.699][info] [#0:script/workspace/workspace.lua:38]: Workspace init root: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.700][info] [#0:script/workspace/workspace.lua:42]: Log path: /home/elitherl/.dotfiles/lua-lsp/log/file_home_elitherl_.dotfiles_config_nvim_lua.log
|
||||
[10:44:16.700][info] [#0:script/workspace/workspace.lua:51]: Workspace create: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.902][info] [#0:script/provider/provider.lua:41]: Load config from client file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.903][info] [#0:script/provider/provider.lua:42]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimQGW5MN/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[10:44:16.903][info] [#0:script/provider/provider.lua:48]: Load config from .luarc.json/.luarc.jsonc file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.904][info] [#0:script/provider/provider.lua:49]: {
|
||||
["$schema"] = "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||
["Lua.workspace.checkThirdParty"] = false
|
||||
}
|
||||
[10:44:16.904][info] [#0:script/provider/provider.lua:41]: Load config from client file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.905][info] [#0:script/provider/provider.lua:42]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimQGW5MN/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[10:44:16.906][info] [#0:script/provider/provider.lua:48]: Load config from .luarc.json/.luarc.jsonc file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.906][info] [#0:script/provider/provider.lua:49]: {
|
||||
["$schema"] = "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||
["Lua.workspace.checkThirdParty"] = false
|
||||
}
|
||||
[10:44:16.906][info] [#0:script/provider/provider.lua:41]: Load config from client file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.908][info] [#0:script/provider/provider.lua:42]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimQGW5MN/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[10:44:16.908][info] [#0:script/provider/provider.lua:48]: Load config from .luarc.json/.luarc.jsonc file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.908][info] [#0:script/provider/provider.lua:49]: {
|
||||
["$schema"] = "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||
["Lua.workspace.checkThirdParty"] = false
|
||||
}
|
||||
[10:44:16.909][info] [#0:script/provider/provider.lua:56]: Load config from client fallback
|
||||
[10:44:16.910][info] [#0:script/provider/provider.lua:57]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimQGW5MN/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[10:44:16.913][info] [#0:script/library.lua:209]: Init builtin library at: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.941][info] [#0:script/plugin.lua:86]: plugin path: /home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.941][warn] [#0:script/plugin.lua:101]: plugin not found: /home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.941][info] [#0:script/library.lua:209]: Init builtin library at: nil
|
||||
[10:44:16.959][info] [#0:script/provider/provider.lua:56]: Load config from client fallback
|
||||
[10:44:16.959][info] [#0:script/provider/provider.lua:57]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimQGW5MN/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[10:44:16.959][info] [#0:script/provider/provider.lua:56]: Load config from client fallback
|
||||
[10:44:16.960][info] [#0:script/provider/provider.lua:57]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime", "/tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimQGW5MN/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[10:44:17.060][info] [#0:script/workspace/workspace.lua:304]: Preload start: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:17.083][info] [#0:script/workspace/workspace.lua:310]: Scan files at: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:17.084][info] [#0:script/workspace/workspace.lua:304]: Preload start: <fallback>
|
||||
[10:44:17.101][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.config/nvim
|
||||
[10:44:17.103][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.config/nvim
|
||||
[10:44:17.104][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git
|
||||
[10:44:17.109][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git
|
||||
[10:44:17.124][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimQGW5MN/usr/lib/nvim
|
||||
[10:44:17.125][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path
|
||||
[10:44:17.127][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimQGW5MN/usr/lib/nvim
|
||||
[10:44:17.128][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path
|
||||
[10:44:17.130][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim
|
||||
[10:44:17.134][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim
|
||||
[10:44:17.152][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify
|
||||
[10:44:17.155][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify
|
||||
[10:44:17.163][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after
|
||||
[10:44:17.163][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim
|
||||
[10:44:17.166][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after
|
||||
[10:44:17.166][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim
|
||||
[10:44:17.179][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig
|
||||
[10:44:17.182][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig
|
||||
[10:44:17.209][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim
|
||||
[10:44:17.212][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim
|
||||
[10:44:17.226][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site
|
||||
[10:44:17.258][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site
|
||||
[10:44:17.691][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim
|
||||
[10:44:17.694][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim
|
||||
[10:44:17.697][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim
|
||||
[10:44:17.703][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim
|
||||
[10:44:17.709][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
[10:44:17.711][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
[10:44:17.719][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua
|
||||
[10:44:17.721][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua
|
||||
[10:44:17.723][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after
|
||||
[10:44:17.723][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons
|
||||
[10:44:17.727][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after
|
||||
[10:44:17.727][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons
|
||||
[10:44:17.729][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp
|
||||
[10:44:17.733][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp
|
||||
[10:44:17.744][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime
|
||||
[10:44:17.776][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime
|
||||
[10:44:17.947][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer
|
||||
[10:44:17.951][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer
|
||||
[10:44:17.955][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after
|
||||
[10:44:17.956][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.dotfiles/lua-lsp/meta/LuaJIT%20en-us%20utf8
|
||||
[10:44:17.958][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua
|
||||
[10:44:17.960][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after
|
||||
[10:44:17.960][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.dotfiles/lua-lsp/meta/LuaJIT%20en-us%20utf8
|
||||
[10:44:17.961][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua
|
||||
[10:44:17.976][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after
|
||||
[10:44:17.976][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after
|
||||
[10:44:17.977][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim
|
||||
[10:44:17.980][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after
|
||||
[10:44:17.981][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after
|
||||
[10:44:17.981][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim
|
||||
[10:44:17.986][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit
|
||||
[10:44:17.989][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim
|
||||
[10:44:17.992][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimQGW5MN/usr/share/nvim/runtime/pack/dist/opt/matchit
|
||||
[10:44:17.994][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim
|
||||
[10:44:18.009][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip
|
||||
[10:44:18.012][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip
|
||||
[10:44:18.023][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim
|
||||
[10:44:18.027][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim
|
||||
[10:44:18.030][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp
|
||||
[10:44:18.033][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp
|
||||
[10:44:18.035][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim
|
||||
[10:44:18.039][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim
|
||||
[10:44:18.042][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter
|
||||
[10:44:18.053][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter
|
||||
[10:44:18.210][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip
|
||||
[10:44:18.212][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip
|
||||
[10:44:18.214][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after
|
||||
[10:44:18.214][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim
|
||||
[10:44:18.218][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after
|
||||
[10:44:18.219][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim
|
||||
[10:44:18.225][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim
|
||||
[10:44:18.230][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim
|
||||
[10:44:18.257][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator
|
||||
[10:44:18.261][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator
|
||||
[10:44:18.264][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline
|
||||
[10:44:18.268][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline
|
||||
[10:44:18.375][info] [#0:script/workspace/workspace.lua:347]: Found 2346 files at: <fallback>
|
||||
[10:44:18.375][info] [#0:script/workspace/loading.lua:157]: Load files from disk: <fallback>
|
||||
[10:44:18.376][info] [#0:script/workspace/workspace.lua:347]: Found 2363 files at: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:18.376][info] [#0:script/workspace/loading.lua:157]: Load files from disk: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:26.182][info] [#0:script/provider/provider.lua:170]: Server shutdown.
|
||||
[10:44:26.190][info] [#0:script/provider/provider.lua:163]: Server exited.
|
|
@ -1,284 +0,0 @@
|
|||
[09:48:46.058][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:66]: Lua Lsp startup, root: /home/elitherl/.dotfiles/lua-lsp
|
||||
[09:48:46.058][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:67]: ROOT: /home/elitherl/.dotfiles/lua-lsp
|
||||
[09:48:46.058][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:68]: LOGPATH: /home/elitherl/.dotfiles/lua-lsp/log
|
||||
[09:48:46.058][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:69]: METAPATH: /home/elitherl/.dotfiles/lua-lsp/meta
|
||||
[09:48:46.058][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:70]: VERSION: 3.6.4-dev
|
||||
[09:48:46.089][info] [#0:script/service/service.lua:141]:
|
||||
========= Medical Examination Report =========
|
||||
--------------- Memory ---------------
|
||||
Total: 1.563 MB
|
||||
# 00 : 1.563 MB
|
||||
# 01 : 0.000 MB
|
||||
# 02 : 0.000 MB
|
||||
# 03 : 0.000 MB
|
||||
# 04 : 0.000 MB
|
||||
--------------- Coroutine ---------------
|
||||
Total: 0
|
||||
Running: 0
|
||||
Suspended: 0
|
||||
Normal: 0
|
||||
Dead: 0
|
||||
--------------- Cache ---------------
|
||||
Total: 1
|
||||
Dead: 0
|
||||
--------------- RPC ---------------
|
||||
Holdon: 0
|
||||
Waiting: 0
|
||||
==============================================
|
||||
[09:48:46.094][info] [#0:script/language.lua:137]: VSC language: nil
|
||||
[09:48:46.094][info] [#0:script/language.lua:138]: LS language: en-us
|
||||
[09:48:46.094][info] [#0:script/workspace/workspace.lua:38]: Workspace init root: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.094][info] [#0:script/workspace/workspace.lua:42]: Log path: /home/elitherl/.dotfiles/lua-lsp/log/file_home_elitherl_.dotfiles_config_nvim_lua_.log
|
||||
[09:48:46.095][info] [#0:script/workspace/workspace.lua:51]: Workspace create: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.298][info] [#0:script/provider/provider.lua:41]: Load config from client file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.299][info] [#0:script/provider/provider.lua:42]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimVsF7tD/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[09:48:46.300][info] [#0:script/provider/provider.lua:41]: Load config from client file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.301][info] [#0:script/provider/provider.lua:42]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimVsF7tD/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[09:48:46.302][info] [#0:script/provider/provider.lua:41]: Load config from client file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.303][info] [#0:script/provider/provider.lua:42]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimVsF7tD/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[09:48:46.304][info] [#0:script/provider/provider.lua:56]: Load config from client fallback
|
||||
[09:48:46.305][info] [#0:script/provider/provider.lua:57]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimVsF7tD/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[09:48:46.305][info] [#0:script/library.lua:209]: Init builtin library at: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.336][info] [#0:script/plugin.lua:86]: plugin path: /home/elitherl/.dotfiles/config/nvim/lua
|
||||
[09:48:46.337][warn] [#0:script/plugin.lua:101]: plugin not found: /home/elitherl/.dotfiles/config/nvim/lua
|
||||
[09:48:46.337][info] [#0:script/library.lua:209]: Init builtin library at: nil
|
||||
[09:48:46.352][info] [#0:script/provider/provider.lua:56]: Load config from client fallback
|
||||
[09:48:46.352][info] [#0:script/provider/provider.lua:57]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimVsF7tD/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[09:48:46.352][info] [#0:script/provider/provider.lua:56]: Load config from client fallback
|
||||
[09:48:46.352][info] [#0:script/provider/provider.lua:57]: {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }
|
||||
},
|
||||
runtime = {
|
||||
version = "LuaJIT"
|
||||
},
|
||||
telemetry = {
|
||||
enable = false
|
||||
},
|
||||
workspace = {
|
||||
library = { "/home/elitherl/.config/nvim", "/home/elitherl/.local/share/nvim/site", "/home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip", "/home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git", "/home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter", "/home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", "/home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", "/home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime", "/tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit", "/tmp/.mount_nvimVsF7tD/usr/lib/nvim", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after", "/home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after" }
|
||||
}
|
||||
}
|
||||
}
|
||||
[09:48:46.453][info] [#0:script/workspace/workspace.lua:304]: Preload start: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.476][info] [#0:script/workspace/workspace.lua:310]: Scan files at: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:46.477][info] [#0:script/workspace/workspace.lua:304]: Preload start: <fallback>
|
||||
[09:48:46.493][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.config/nvim
|
||||
[09:48:46.496][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.config/nvim
|
||||
[09:48:46.497][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git
|
||||
[09:48:46.501][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git
|
||||
[09:48:46.517][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path
|
||||
[09:48:46.519][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path
|
||||
[09:48:46.521][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim
|
||||
[09:48:46.524][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim
|
||||
[09:48:46.529][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify
|
||||
[09:48:46.531][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify
|
||||
[09:48:46.538][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit
|
||||
[09:48:46.539][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim
|
||||
[09:48:46.541][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit
|
||||
[09:48:46.542][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim
|
||||
[09:48:46.555][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig
|
||||
[09:48:46.560][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig
|
||||
[09:48:46.584][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim
|
||||
[09:48:46.587][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim
|
||||
[09:48:46.600][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site
|
||||
[09:48:46.633][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site
|
||||
[09:48:47.043][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim
|
||||
[09:48:47.045][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim
|
||||
[09:48:47.049][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim
|
||||
[09:48:47.052][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim
|
||||
[09:48:47.056][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
[09:48:47.059][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
[09:48:47.066][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua
|
||||
[09:48:47.068][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua
|
||||
[09:48:47.071][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime
|
||||
[09:48:47.146][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime
|
||||
[09:48:47.316][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after
|
||||
[09:48:47.316][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons
|
||||
[09:48:47.319][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after
|
||||
[09:48:47.320][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons
|
||||
[09:48:47.322][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp
|
||||
[09:48:47.328][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp
|
||||
[09:48:47.341][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip
|
||||
[09:48:47.347][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip
|
||||
[09:48:47.359][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer
|
||||
[09:48:47.362][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer
|
||||
[09:48:47.364][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after
|
||||
[09:48:47.364][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.dotfiles/lua-lsp/meta/LuaJIT%20en-us%20utf8
|
||||
[09:48:47.366][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after
|
||||
[09:48:47.366][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua
|
||||
[09:48:47.368][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.dotfiles/lua-lsp/meta/LuaJIT%20en-us%20utf8
|
||||
[09:48:47.371][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua
|
||||
[09:48:47.387][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after
|
||||
[09:48:47.387][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/lib/nvim
|
||||
[09:48:47.389][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after
|
||||
[09:48:47.389][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after
|
||||
[09:48:47.389][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim
|
||||
[09:48:47.391][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after
|
||||
[09:48:47.391][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/lib/nvim
|
||||
[09:48:47.392][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after
|
||||
[09:48:47.392][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after
|
||||
[09:48:47.392][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim
|
||||
[09:48:47.410][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim
|
||||
[09:48:47.414][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim
|
||||
[09:48:47.418][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim
|
||||
[09:48:47.423][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim
|
||||
[09:48:47.449][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp
|
||||
[09:48:47.453][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp
|
||||
[09:48:47.455][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim
|
||||
[09:48:47.458][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim
|
||||
[09:48:47.461][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter
|
||||
[09:48:47.476][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter
|
||||
[09:48:47.614][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip
|
||||
[09:48:47.616][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip
|
||||
[09:48:47.622][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after
|
||||
[09:48:47.622][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim
|
||||
[09:48:47.625][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after
|
||||
[09:48:47.625][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim
|
||||
[09:48:47.629][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim
|
||||
[09:48:47.635][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim
|
||||
[09:48:47.657][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator
|
||||
[09:48:47.660][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator
|
||||
[09:48:47.664][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline
|
||||
[09:48:47.667][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline
|
||||
[09:48:47.771][info] [#0:script/workspace/workspace.lua:347]: Found 2346 files at: <fallback>
|
||||
[09:48:47.772][info] [#0:script/workspace/loading.lua:157]: Load files from disk: <fallback>
|
||||
[09:48:47.772][info] [#0:script/workspace/workspace.lua:347]: Found 2363 files at: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:47.772][info] [#0:script/workspace/loading.lua:157]: Load files from disk: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:52.209][warn] [#0:script/files.lua:683]: Compile [file:///home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim/lua/luassert/state.lua] takes [0.105] sec, size [3.049] kb.
|
||||
[09:48:55.032][info] [#0:script/workspace/loading.lua:169]: Loaded files takes [8.673] sec: <fallback>
|
||||
[09:48:55.032][info] [#0:script/workspace/loading.lua:178]: Compile files takes [0.000] sec: <fallback>
|
||||
[09:48:55.032][info] [#0:script/workspace/loading.lua:179]: Loaded finish: <fallback>
|
||||
[09:48:55.033][info] [#0:script/workspace/workspace.lua:349]: Preload finish at: <fallback>
|
||||
[09:48:56.186][info] [#0:script/library.lua:209]: Init builtin library at: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:56.189][info] [#0:script/plugin.lua:86]: plugin path: /home/elitherl/.dotfiles/config/nvim/lua
|
||||
[09:48:56.189][warn] [#0:script/plugin.lua:101]: plugin not found: /home/elitherl/.dotfiles/config/nvim/lua
|
||||
[09:48:56.272][warn] [#0:script/proto/proto.lua:122]: Response of [workspace/diagnostic/refresh] error [-32601]: MethodNotFound
|
||||
[09:48:56.275][info] [#0:script/workspace/workspace.lua:304]: Preload start: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:56.279][info] [#0:script/workspace/workspace.lua:310]: Scan files at: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:56.508][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.config/nvim
|
||||
[09:48:56.509][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/gitsigns.nvim.git
|
||||
[09:48:56.515][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path
|
||||
[09:48:56.517][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/toggleterm.nvim
|
||||
[09:48:56.520][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-notify
|
||||
[09:48:56.524][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime/pack/dist/opt/matchit
|
||||
[09:48:56.524][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/lualine.nvim
|
||||
[09:48:56.531][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-lspconfig
|
||||
[09:48:56.543][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/plenary.nvim
|
||||
[09:48:56.551][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site
|
||||
[09:48:56.769][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim
|
||||
[09:48:56.772][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/trouble.nvim
|
||||
[09:48:56.776][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
[09:48:56.779][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua
|
||||
[09:48:56.781][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/share/nvim/runtime
|
||||
[09:48:56.854][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-path/after
|
||||
[09:48:56.855][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-web-devicons
|
||||
[09:48:56.857][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-cmp
|
||||
[09:48:56.861][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-vsnip
|
||||
[09:48:56.866][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer
|
||||
[09:48:56.868][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after
|
||||
[09:48:56.868][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.dotfiles/lua-lsp/meta/LuaJIT%20en-us%20utf8
|
||||
[09:48:56.869][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-tree.lua
|
||||
[09:48:56.875][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after
|
||||
[09:48:56.875][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///tmp/.mount_nvimVsF7tD/usr/lib/nvim
|
||||
[09:48:56.875][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after
|
||||
[09:48:56.875][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after
|
||||
[09:48:56.876][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope.nvim
|
||||
[09:48:56.883][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim
|
||||
[09:48:56.886][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nightfox.nvim
|
||||
[09:48:56.898][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp
|
||||
[09:48:56.900][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/fidget.nvim
|
||||
[09:48:56.903][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/nvim-treesitter
|
||||
[09:48:56.960][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-vsnip
|
||||
[09:48:56.962][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-buffer/after
|
||||
[09:48:56.962][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/hop.nvim
|
||||
[09:48:57.019][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/aerial.nvim
|
||||
[09:48:57.029][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator
|
||||
[09:48:57.031][info] [#0:script/workspace/workspace.lua:327]: Scan library at: file:///home/elitherl/.local/share/nvim/site/pack/packer/start/cmp-cmdline
|
||||
[09:48:57.135][info] [#0:script/workspace/workspace.lua:347]: Found 2363 files at: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:57.135][info] [#0:script/workspace/loading.lua:157]: Load files from disk: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:59.180][info] [#0:script/workspace/loading.lua:169]: Loaded files takes [2.472] sec: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:59.181][info] [#0:script/workspace/loading.lua:178]: Compile files takes [0.000] sec: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:59.181][info] [#0:script/workspace/loading.lua:179]: Loaded finish: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:59.181][info] [#0:script/workspace/workspace.lua:349]: Preload finish at: file:///home/elitherl/.dotfiles/config/nvim/lua/
|
||||
[09:48:59.704][info] [#0:script/provider/diagnostic.lua:552]: Diagnostics scope [file:///home/elitherl/.dotfiles/config/nvim/lua/], files count:[1088]
|
||||
[09:48:59.704][warn] [#0:script/proto/proto.lua:122]: Response of [workspace/diagnostic/refresh] error [-32601]: MethodNotFound
|
||||
[09:49:00.383][info] [#0:script/provider/diagnostic.lua:569]: Diagnostics scope [file:///home/elitherl/.dotfiles/config/nvim/lua/] finished, takes [0.709] sec.
|
||||
[09:49:32.519][info] [#0:script/provider/provider.lua:170]: Server shutdown.
|
||||
[09:49:32.619][info] [#0:script/provider/provider.lua:163]: Server exited.
|
|
@ -1,83 +0,0 @@
|
|||
PUSH [===[]===]
|
||||
if not JIT then DISABLE() end
|
||||
PUSH [===[
|
||||
---@meta
|
||||
|
||||
---@version JIT
|
||||
---@class bitlib
|
||||
bit = {}
|
||||
|
||||
---@param x integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.tobit(x) end
|
||||
|
||||
---@param x integer
|
||||
---@param n? integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.tohex(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bnot(x) end
|
||||
|
||||
---@param x integer
|
||||
---@param x2 integer
|
||||
---@param ... integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bor(x, x2, ...) end
|
||||
|
||||
---@param x integer
|
||||
---@param x2 integer
|
||||
---@param ... integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.band(x, x2, ...) end
|
||||
|
||||
---@param x integer
|
||||
---@param x2 integer
|
||||
---@param ... integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bxor(x, x2, ...) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.lshift(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.rshift(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.arshift(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.rol(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.ror(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bswap(x) end
|
||||
|
||||
return bit
|
||||
]===]
|
|
@ -1,31 +0,0 @@
|
|||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:66]: Lua Lsp startup, root: /home/elitherl/.dotfiles/lua-lsp
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:67]: ROOT: /home/elitherl/.dotfiles/lua-lsp
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:68]: LOGPATH: /home/elitherl/.dotfiles/lua-lsp/log
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:69]: METAPATH: /home/elitherl/.dotfiles/lua-lsp/meta
|
||||
[10:44:16.663][info] [#0:/home/elitherl/.dotfiles/lua-lsp/main.lua:70]: VERSION: 3.6.4-dev
|
||||
[10:44:16.694][info] [#0:script/service/service.lua:141]:
|
||||
========= Medical Examination Report =========
|
||||
--------------- Memory ---------------
|
||||
Total: 1.563 MB
|
||||
# 00 : 1.563 MB
|
||||
# 01 : 0.000 MB
|
||||
# 02 : 0.000 MB
|
||||
# 03 : 0.000 MB
|
||||
# 04 : 0.000 MB
|
||||
--------------- Coroutine ---------------
|
||||
Total: 0
|
||||
Running: 0
|
||||
Suspended: 0
|
||||
Normal: 0
|
||||
Dead: 0
|
||||
--------------- Cache ---------------
|
||||
Total: 1
|
||||
Dead: 0
|
||||
--------------- RPC ---------------
|
||||
Holdon: 0
|
||||
Waiting: 0
|
||||
==============================================
|
||||
[10:44:16.699][info] [#0:script/language.lua:137]: VSC language: nil
|
||||
[10:44:16.699][info] [#0:script/language.lua:138]: LS language: en-us
|
||||
[10:44:16.699][info] [#0:script/workspace/workspace.lua:38]: Workspace init root: file:///home/elitherl/.dotfiles/config/nvim/lua
|
||||
[10:44:16.700][info] [#0:script/workspace/workspace.lua:42]: Log path: /home/elitherl/.dotfiles/lua-lsp/log/file_home_elitherl_.dotfiles_config_nvim_lua.log
|
|
@ -1 +0,0 @@
|
|||
09CCEAD66AA8A2DC
|
|
@ -1,409 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---Command-line arguments of Lua Standalone.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-arg)
|
||||
---
|
||||
---@type string[]
|
||||
arg = {}
|
||||
|
||||
---
|
||||
---Raises an error if the value of its argument v is false (i.e., `nil` or `false`); otherwise, returns all its arguments. In case of error, `message` is the error object; when absent, it defaults to `"assertion failed!"`
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-assert)
|
||||
---
|
||||
---@generic T
|
||||
---@param v? T
|
||||
---@param message? any
|
||||
---@return T
|
||||
---@return any ...
|
||||
function assert(v, message, ...) end
|
||||
|
||||
---@alias gcoptions
|
||||
---|>'"collect"' # Performs a full garbage-collection cycle.
|
||||
---| '"stop"' # Stops automatic execution.
|
||||
---| '"restart"' # Restarts automatic execution.
|
||||
---| '"count"' # Returns the total memory in Kbytes.
|
||||
---| '"step"' # Performs a garbage-collection step.
|
||||
---| '"isrunning"' # Returns whether the collector is running.
|
||||
---| '"setpause"' # Set `pause`.
|
||||
---| '"setstepmul"' # Set `step multiplier`.
|
||||
|
||||
---
|
||||
---This function is a generic interface to the garbage collector. It performs different functions according to its first argument, `opt`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-collectgarbage)
|
||||
---
|
||||
---@param opt? gcoptions
|
||||
---@param arg? integer
|
||||
---@return any
|
||||
function collectgarbage(opt, arg) end
|
||||
|
||||
---
|
||||
---Opens the named file and executes its content as a Lua chunk. When called without arguments, `dofile` executes the content of the standard input (`stdin`). Returns all values returned by the chunk. In case of errors, `dofile` propagates the error to its caller. (That is, `dofile` does not run in protected mode.)
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-dofile)
|
||||
---
|
||||
---@param filename? string
|
||||
---@return any ...
|
||||
function dofile(filename) end
|
||||
|
||||
---
|
||||
---Terminates the last protected function called and returns message as the error object.
|
||||
---
|
||||
---Usually, `error` adds some information about the error position at the beginning of the message, if the message is a string.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-error)
|
||||
---
|
||||
---@param message any
|
||||
---@param level? integer
|
||||
function error(message, level) end
|
||||
|
||||
---
|
||||
---A global variable (not a function) that holds the global environment (see [§2.2](http://www.lua.org/manual/5.1/manual.html#2.2)). Lua itself does not use this variable; changing its value does not affect any environment, nor vice versa.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-_G)
|
||||
---
|
||||
---@class _G
|
||||
_G = {}
|
||||
|
||||
---@version 5.1
|
||||
---
|
||||
---Returns the current environment in use by the function. `f` can be a Lua function or a number that specifies the function at that stack level.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-getfenv)
|
||||
---
|
||||
---@param f? integer|async fun(...):...
|
||||
---@return table
|
||||
---@nodiscard
|
||||
function getfenv(f) end
|
||||
|
||||
---
|
||||
---If object does not have a metatable, returns nil. Otherwise, if the object's metatable has a __metatable field, returns the associated value. Otherwise, returns the metatable of the given object.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-getmetatable)
|
||||
---
|
||||
---@param object any
|
||||
---@return table metatable
|
||||
---@nodiscard
|
||||
function getmetatable(object) end
|
||||
|
||||
---
|
||||
---Returns three values (an iterator function, the table `t`, and `0`) so that the construction
|
||||
---```lua
|
||||
--- for i,v in ipairs(t) do body end
|
||||
---```
|
||||
---will iterate over the key–value pairs `(1,t[1]), (2,t[2]), ...`, up to the first absent index.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-ipairs)
|
||||
---
|
||||
---@generic T: table, V
|
||||
---@param t T
|
||||
---@return fun(table: V[], i?: integer):integer, V
|
||||
---@return T
|
||||
---@return integer i
|
||||
function ipairs(t) end
|
||||
|
||||
---@alias loadmode
|
||||
---| '"b"' # Only binary chunks.
|
||||
---| '"t"' # Only text chunks.
|
||||
---|>'"bt"' # Both binary and text.
|
||||
|
||||
---
|
||||
---Loads a chunk.
|
||||
---
|
||||
---If `chunk` is a string, the chunk is this string. If `chunk` is a function, `load` calls it repeatedly to get the chunk pieces. Each call to `chunk` must return a string that concatenates with previous results. A return of an empty string, `nil`, or no value signals the end of the chunk.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-load)
|
||||
---
|
||||
---@param chunk string|function
|
||||
---@param chunkname? string
|
||||
---@param mode? loadmode
|
||||
---@param env? table
|
||||
---@return function?
|
||||
---@return string? error_message
|
||||
---@nodiscard
|
||||
function load(chunk, chunkname, mode, env) end
|
||||
|
||||
---
|
||||
---Loads a chunk from file `filename` or from the standard input, if no file name is given.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-loadfile)
|
||||
---
|
||||
---@param filename? string
|
||||
---@param mode? loadmode
|
||||
---@param env? table
|
||||
---@return function?
|
||||
---@return string? error_message
|
||||
---@nodiscard
|
||||
function loadfile(filename, mode, env) end
|
||||
|
||||
---@version 5.1
|
||||
---
|
||||
---Loads a chunk from the given string.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-loadstring)
|
||||
---
|
||||
---@param text string
|
||||
---@param chunkname? string
|
||||
---@return function?
|
||||
---@return string? error_message
|
||||
---@nodiscard
|
||||
function loadstring(text, chunkname) end
|
||||
|
||||
---@version 5.1
|
||||
---@param proxy boolean|table
|
||||
---@return userdata
|
||||
---@nodiscard
|
||||
function newproxy(proxy) end
|
||||
|
||||
---@version 5.1
|
||||
---
|
||||
---Creates a module.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-module)
|
||||
---
|
||||
---@param name string
|
||||
function module(name, ...) end
|
||||
|
||||
---
|
||||
---Allows a program to traverse all fields of a table. Its first argument is a table and its second argument is an index in this table. A call to `next` returns the next index of the table and its associated value. When called with `nil` as its second argument, `next` returns an initial index and its associated value. When called with the last index, or with `nil` in an empty table, `next` returns `nil`. If the second argument is absent, then it is interpreted as `nil`. In particular, you can use `next(t)` to check whether a table is empty.
|
||||
---
|
||||
---The order in which the indices are enumerated is not specified, *even for numeric indices*. (To traverse a table in numerical order, use a numerical `for`.)
|
||||
---
|
||||
---The behavior of `next` is undefined if, during the traversal, you assign any value to a non-existent field in the table. You may however modify existing fields. In particular, you may set existing fields to nil.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-next)
|
||||
---
|
||||
---@generic K, V
|
||||
---@param table table<K, V>
|
||||
---@param index? K
|
||||
---@return K?
|
||||
---@return V?
|
||||
---@nodiscard
|
||||
function next(table, index) end
|
||||
|
||||
---
|
||||
---If `t` has a metamethod `__pairs`, calls it with t as argument and returns the first three results from the call.
|
||||
---
|
||||
---Otherwise, returns three values: the [next](http://www.lua.org/manual/5.1/manual.html#pdf-next) function, the table `t`, and `nil`, so that the construction
|
||||
---```lua
|
||||
--- for k,v in pairs(t) do body end
|
||||
---```
|
||||
---will iterate over all key–value pairs of table `t`.
|
||||
---
|
||||
---See function [next](http://www.lua.org/manual/5.1/manual.html#pdf-next) for the caveats of modifying the table during its traversal.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-pairs)
|
||||
---
|
||||
---@generic T: table, K, V
|
||||
---@param t T
|
||||
---@return fun(table: table<K, V>, index?: K):K, V
|
||||
---@return T
|
||||
function pairs(t) end
|
||||
|
||||
---
|
||||
---Calls the function `f` with the given arguments in *protected mode*. This means that any error inside `f` is not propagated; instead, `pcall` catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, `pcall` also returns all results from the call, after this first result. In case of any error, `pcall` returns `false` plus the error object.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-pcall)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@param arg1? any
|
||||
---@return boolean success
|
||||
---@return any result
|
||||
---@return any ...
|
||||
function pcall(f, arg1, ...) end
|
||||
|
||||
---
|
||||
---Receives any number of arguments and prints their values to `stdout`, converting each argument to a string following the same rules of [tostring](http://www.lua.org/manual/5.1/manual.html#pdf-tostring).
|
||||
---The function print is not intended for formatted output, but only as a quick way to show a value, for instance for debugging. For complete control over the output, use [string.format](http://www.lua.org/manual/5.1/manual.html#pdf-string.format) and [io.write](http://www.lua.org/manual/5.1/manual.html#pdf-io.write).
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-print)
|
||||
---
|
||||
function print(...) end
|
||||
|
||||
---
|
||||
---Checks whether v1 is equal to v2, without invoking the `__eq` metamethod.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-rawequal)
|
||||
---
|
||||
---@param v1 any
|
||||
---@param v2 any
|
||||
---@return boolean
|
||||
---@nodiscard
|
||||
function rawequal(v1, v2) end
|
||||
|
||||
---
|
||||
---Gets the real value of `table[index]`, without invoking the `__index` metamethod.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-rawget)
|
||||
---
|
||||
---@param table table
|
||||
---@param index any
|
||||
---@return any
|
||||
---@nodiscard
|
||||
function rawget(table, index) end
|
||||
|
||||
---
|
||||
---Returns the length of the object `v`, without invoking the `__len` metamethod.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-rawlen)
|
||||
---
|
||||
---@param v table|string
|
||||
---@return integer len
|
||||
---@nodiscard
|
||||
function rawlen(v) end
|
||||
|
||||
---
|
||||
---Sets the real value of `table[index]` to `value`, without using the `__newindex` metavalue. `table` must be a table, `index` any value different from `nil` and `NaN`, and `value` any Lua value.
|
||||
---This function returns `table`.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-rawset)
|
||||
---
|
||||
---@param table table
|
||||
---@param index any
|
||||
---@param value any
|
||||
---@return table
|
||||
function rawset(table, index, value) end
|
||||
|
||||
---
|
||||
---If `index` is a number, returns all arguments after argument number `index`; a negative number indexes from the end (`-1` is the last argument). Otherwise, `index` must be the string `"#"`, and `select` returns the total number of extra arguments it received.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-select)
|
||||
---
|
||||
---@param index integer|'"#"'
|
||||
---@return any
|
||||
---@nodiscard
|
||||
function select(index, ...) end
|
||||
|
||||
---@version 5.1
|
||||
---
|
||||
---Sets the environment to be used by the given function.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-setfenv)
|
||||
---
|
||||
---@param f async fun(...):...|integer
|
||||
---@param table table
|
||||
---@return function
|
||||
function setfenv(f, table) end
|
||||
|
||||
---
|
||||
---Sets the metatable for the given table. If `metatable` is `nil`, removes the metatable of the given table. If the original metatable has a `__metatable` field, raises an error.
|
||||
---
|
||||
---This function returns `table`.
|
||||
---
|
||||
---To change the metatable of other types from Lua code, you must use the debug library ([§6.10](http://www.lua.org/manual/5.1/manual.html#6.10)).
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-setmetatable)
|
||||
---
|
||||
---@param table table
|
||||
---@param metatable? table
|
||||
---@return table
|
||||
function setmetatable(table, metatable) end
|
||||
|
||||
---
|
||||
---When called with no `base`, `tonumber` tries to convert its argument to a number. If the argument is already a number or a string convertible to a number, then `tonumber` returns this number; otherwise, it returns `fail`.
|
||||
---
|
||||
---The conversion of strings can result in integers or floats, according to the lexical conventions of Lua (see [§3.1](http://www.lua.org/manual/5.1/manual.html#3.1)). The string may have leading and trailing spaces and a sign.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-tonumber)
|
||||
---
|
||||
---@overload fun(e: string, base: integer):integer
|
||||
---@param e any
|
||||
---@return number?
|
||||
---@nodiscard
|
||||
function tonumber(e) end
|
||||
|
||||
---
|
||||
---Receives a value of any type and converts it to a string in a human-readable format.
|
||||
---
|
||||
---If the metatable of `v` has a `__tostring` field, then `tostring` calls the corresponding value with `v` as argument, and uses the result of the call as its result. Otherwise, if the metatable of `v` has a `__name` field with a string value, `tostring` may use that string in its final result.
|
||||
---
|
||||
---For complete control of how numbers are converted, use [string.format](http://www.lua.org/manual/5.1/manual.html#pdf-string.format).
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-tostring)
|
||||
---
|
||||
---@param v any
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function tostring(v) end
|
||||
|
||||
---@alias type
|
||||
---| '"nil"'
|
||||
---| '"number"'
|
||||
---| '"string"'
|
||||
---| '"boolean"'
|
||||
---| '"table"'
|
||||
---| '"function"'
|
||||
---| '"thread"'
|
||||
---| '"userdata"'
|
||||
|
||||
---
|
||||
---Returns the type of its only argument, coded as a string. The possible results of this function are `"nil"` (a string, not the value `nil`), `"number"`, `"string"`, `"boolean"`, `"table"`, `"function"`, `"thread"`, and `"userdata"`.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-type)
|
||||
---
|
||||
---@param v any
|
||||
---@return type type
|
||||
---@nodiscard
|
||||
function type(v) end
|
||||
|
||||
---
|
||||
---A global variable (not a function) that holds a string containing the running Lua version.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-_VERSION)
|
||||
---
|
||||
_VERSION = 'Lua 5.1'
|
||||
|
||||
---@version >5.4
|
||||
---
|
||||
---Emits a warning with a message composed by the concatenation of all its arguments (which should be strings).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-warn)
|
||||
---
|
||||
---@param message string
|
||||
function warn(message, ...) end
|
||||
|
||||
---
|
||||
---Calls function `f` with the given arguments in protected mode with a new message handler.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-xpcall)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@param msgh function
|
||||
---@param arg1? any
|
||||
---@return boolean success
|
||||
---@return any result
|
||||
---@return any ...
|
||||
function xpcall(f, msgh, arg1, ...) end
|
||||
|
||||
---@version 5.1
|
||||
---
|
||||
---Returns the elements from the given `list`. This function is equivalent to
|
||||
---```lua
|
||||
--- return list[i], list[i+1], ···, list[j]
|
||||
---```
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-unpack)
|
||||
---
|
||||
---@generic T
|
||||
---@param list T[]
|
||||
---@param i? integer
|
||||
---@param j? integer
|
||||
---@return T ...
|
||||
---@nodiscard
|
||||
function unpack(list, i, j) end
|
|
@ -1,79 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---@version JIT
|
||||
---@class bitlib
|
||||
bit = {}
|
||||
|
||||
---@param x integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.tobit(x) end
|
||||
|
||||
---@param x integer
|
||||
---@param n? integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.tohex(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bnot(x) end
|
||||
|
||||
---@param x integer
|
||||
---@param x2 integer
|
||||
---@param ... integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bor(x, x2, ...) end
|
||||
|
||||
---@param x integer
|
||||
---@param x2 integer
|
||||
---@param ... integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.band(x, x2, ...) end
|
||||
|
||||
---@param x integer
|
||||
---@param x2 integer
|
||||
---@param ... integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bxor(x, x2, ...) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.lshift(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.rshift(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.arshift(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.rol(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@param n integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.ror(x, n) end
|
||||
|
||||
---@param x integer
|
||||
---@return integer y
|
||||
---@nodiscard
|
||||
function bit.bswap(x) end
|
||||
|
||||
return bit
|
|
@ -1,16 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---@class unknown
|
||||
---@class any
|
||||
---@class nil
|
||||
---@class boolean
|
||||
---@class true: boolean
|
||||
---@class false: boolean
|
||||
---@class number
|
||||
---@class integer: number
|
||||
---@class thread
|
||||
---@class table<K, V>: { [K]: V }
|
||||
---@class string: stringlib
|
||||
---@class userdata
|
||||
---@class lightuserdata
|
||||
---@class function
|
|
@ -1,95 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine)
|
||||
---
|
||||
---@class coroutinelib
|
||||
coroutine = {}
|
||||
|
||||
---
|
||||
---Creates a new coroutine, with body `f`. `f` must be a function. Returns this new coroutine, an object with type `"thread"`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.create)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@return thread
|
||||
---@nodiscard
|
||||
function coroutine.create(f) end
|
||||
|
||||
---
|
||||
---Returns true when the running coroutine can yield.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.isyieldable)
|
||||
---
|
||||
---@return boolean
|
||||
---@nodiscard
|
||||
function coroutine.isyieldable() end
|
||||
|
||||
---@version >5.4
|
||||
---
|
||||
---Closes coroutine `co` , closing all its pending to-be-closed variables and putting the coroutine in a dead state.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.close)
|
||||
---
|
||||
---@param co thread
|
||||
---@return boolean noerror
|
||||
---@return any errorobject
|
||||
function coroutine.close(co) end
|
||||
|
||||
---
|
||||
---Starts or continues the execution of coroutine `co`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.resume)
|
||||
---
|
||||
---@param co thread
|
||||
---@param val1? any
|
||||
---@return boolean success
|
||||
---@return any ...
|
||||
function coroutine.resume(co, val1, ...) end
|
||||
|
||||
---
|
||||
---Returns the running coroutine plus a boolean, true when the running coroutine is the main one.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.running)
|
||||
---
|
||||
---@return thread running
|
||||
---@return boolean ismain
|
||||
---@nodiscard
|
||||
function coroutine.running() end
|
||||
|
||||
---
|
||||
---Returns the status of coroutine `co`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.status)
|
||||
---
|
||||
---@param co thread
|
||||
---@return
|
||||
---| '"running"' # Is running.
|
||||
---| '"suspended"' # Is suspended or not started.
|
||||
---| '"normal"' # Is active but not running.
|
||||
---| '"dead"' # Has finished or stopped with an error.
|
||||
---@nodiscard
|
||||
function coroutine.status(co) end
|
||||
|
||||
---
|
||||
---Creates a new coroutine, with body `f`; `f` must be a function. Returns a function that resumes the coroutine each time it is called.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.wrap)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@return fun(...):...
|
||||
---@nodiscard
|
||||
function coroutine.wrap(f) end
|
||||
|
||||
---
|
||||
---Suspends the execution of the calling coroutine.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-coroutine.yield)
|
||||
---
|
||||
---@async
|
||||
---@return any ...
|
||||
function coroutine.yield(...) end
|
||||
|
||||
return coroutine
|
|
@ -1,262 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug)
|
||||
---
|
||||
---@class debuglib
|
||||
debug = {}
|
||||
|
||||
---@class debuginfo
|
||||
---@field name string
|
||||
---@field namewhat string
|
||||
---@field source string
|
||||
---@field short_src string
|
||||
---@field linedefined integer
|
||||
---@field lastlinedefined integer
|
||||
---@field what string
|
||||
---@field currentline integer
|
||||
---@field istailcall boolean
|
||||
---@field nups integer
|
||||
---@field nparams integer
|
||||
---@field isvararg boolean
|
||||
---@field func function
|
||||
---@field activelines table
|
||||
|
||||
---
|
||||
---Enters an interactive mode with the user, running each string that the user enters.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.debug)
|
||||
---
|
||||
function debug.debug() end
|
||||
|
||||
---@version 5.1
|
||||
---
|
||||
---Returns the environment of object `o` .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.getfenv)
|
||||
---
|
||||
---@param o any
|
||||
---@return table
|
||||
---@nodiscard
|
||||
function debug.getfenv(o) end
|
||||
|
||||
---
|
||||
---Returns the current hook settings of the thread.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.gethook)
|
||||
---
|
||||
---@param co? thread
|
||||
---@return function hook
|
||||
---@return string mask
|
||||
---@return integer count
|
||||
---@nodiscard
|
||||
function debug.gethook(co) end
|
||||
|
||||
---@alias infowhat string
|
||||
---|+'"n"' # `name` and `namewhat`
|
||||
---|+'"S"' # `source`, `short_src`, `linedefined`, `lastlinedefined`, and `what`
|
||||
---|+'"l"' # `currentline`
|
||||
---|+'"t"' # `istailcall`
|
||||
---|+'"u"' # `nups`, `nparams`, and `isvararg`
|
||||
---|+'"f"' # `func`
|
||||
---|+'"L"' # `activelines`
|
||||
|
||||
---
|
||||
---Returns a table with information about a function.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.getinfo)
|
||||
---
|
||||
---@overload fun(f: integer|function, what?: infowhat):debuginfo
|
||||
---@param thread thread
|
||||
---@param f integer|async fun(...):...
|
||||
---@param what? infowhat
|
||||
---@return debuginfo
|
||||
---@nodiscard
|
||||
function debug.getinfo(thread, f, what) end
|
||||
|
||||
---
|
||||
---Returns the name and the value of the local variable with index `local` of the function at level `f` of the stack.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.getlocal)
|
||||
---
|
||||
---@overload fun(f: integer|async fun(...):..., index: integer):string, any
|
||||
---@param thread thread
|
||||
---@param f integer|async fun(...):...
|
||||
---@param index integer
|
||||
---@return string name
|
||||
---@return any value
|
||||
---@nodiscard
|
||||
function debug.getlocal(thread, f, index) end
|
||||
|
||||
---
|
||||
---Returns the metatable of the given value.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.getmetatable)
|
||||
---
|
||||
---@param object any
|
||||
---@return table metatable
|
||||
---@nodiscard
|
||||
function debug.getmetatable(object) end
|
||||
|
||||
---
|
||||
---Returns the registry table.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.getregistry)
|
||||
---
|
||||
---@return table
|
||||
---@nodiscard
|
||||
function debug.getregistry() end
|
||||
|
||||
---
|
||||
---Returns the name and the value of the upvalue with index `up` of the function.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.getupvalue)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@param up integer
|
||||
---@return string name
|
||||
---@return any value
|
||||
---@nodiscard
|
||||
function debug.getupvalue(f, up) end
|
||||
|
||||
---
|
||||
---Returns the Lua value associated to u.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.getuservalue)
|
||||
---
|
||||
---@param u userdata
|
||||
---@return any
|
||||
---@nodiscard
|
||||
function debug.getuservalue(u) end
|
||||
|
||||
---
|
||||
---### **Deprecated in `Lua 5.4.2`**
|
||||
---
|
||||
---Sets a new limit for the C stack. This limit controls how deeply nested calls can go in Lua, with the intent of avoiding a stack overflow.
|
||||
---
|
||||
---In case of success, this function returns the old limit. In case of error, it returns `false`.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.setcstacklimit)
|
||||
---
|
||||
---@deprecated
|
||||
---@param limit integer
|
||||
---@return integer|boolean
|
||||
function debug.setcstacklimit(limit) end
|
||||
|
||||
---
|
||||
---Sets the environment of the given `object` to the given `table` .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.setfenv)
|
||||
---
|
||||
---@version 5.1
|
||||
---@generic T
|
||||
---@param object T
|
||||
---@param env table
|
||||
---@return T object
|
||||
function debug.setfenv(object, env) end
|
||||
|
||||
---@alias hookmask string
|
||||
---|+'"c"' # Calls hook when Lua calls a function.
|
||||
---|+'"r"' # Calls hook when Lua returns from a function.
|
||||
---|+'"l"' # Calls hook when Lua enters a new line of code.
|
||||
|
||||
---
|
||||
---Sets the given function as a hook.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.sethook)
|
||||
---
|
||||
---@overload fun(hook: (async fun(...):...), mask: hookmask, count?: integer)
|
||||
---@overload fun(thread: thread):...
|
||||
---@overload fun(...):...
|
||||
---@param thread thread
|
||||
---@param hook async fun(...):...
|
||||
---@param mask hookmask
|
||||
---@param count? integer
|
||||
function debug.sethook(thread, hook, mask, count) end
|
||||
|
||||
---
|
||||
---Assigns the `value` to the local variable with index `local` of the function at `level` of the stack.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.setlocal)
|
||||
---
|
||||
---@overload fun(level: integer, index: integer, value: any):string
|
||||
---@param thread thread
|
||||
---@param level integer
|
||||
---@param index integer
|
||||
---@param value any
|
||||
---@return string name
|
||||
function debug.setlocal(thread, level, index, value) end
|
||||
|
||||
---
|
||||
---Sets the metatable for the given value to the given table (which can be `nil`).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.setmetatable)
|
||||
---
|
||||
---@generic T
|
||||
---@param value T
|
||||
---@param meta? table
|
||||
---@return T value
|
||||
function debug.setmetatable(value, meta) end
|
||||
|
||||
---
|
||||
---Assigns the `value` to the upvalue with index `up` of the function.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.setupvalue)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@param up integer
|
||||
---@param value any
|
||||
---@return string name
|
||||
function debug.setupvalue(f, up, value) end
|
||||
|
||||
---
|
||||
---Sets the given value as the Lua value associated to the given udata.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.setuservalue)
|
||||
---
|
||||
---@param udata userdata
|
||||
---@param value any
|
||||
---@return userdata udata
|
||||
function debug.setuservalue(udata, value) end
|
||||
|
||||
---
|
||||
---Returns a string with a traceback of the call stack. The optional message string is appended at the beginning of the traceback.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.traceback)
|
||||
---
|
||||
---@overload fun(message?: any, level?: integer): string
|
||||
---@param thread thread
|
||||
---@param message? any
|
||||
---@param level? integer
|
||||
---@return string message
|
||||
---@nodiscard
|
||||
function debug.traceback(thread, message, level) end
|
||||
|
||||
---@version >5.2, JIT
|
||||
---
|
||||
---Returns a unique identifier (as a light userdata) for the upvalue numbered `n` from the given function.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.upvalueid)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@param n integer
|
||||
---@return lightuserdata id
|
||||
---@nodiscard
|
||||
function debug.upvalueid(f, n) end
|
||||
|
||||
---@version >5.2, JIT
|
||||
---
|
||||
---Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th upvalue of the Lua closure `f2`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-debug.upvaluejoin)
|
||||
---
|
||||
---@param f1 async fun(...):...
|
||||
---@param n1 integer
|
||||
---@param f2 async fun(...):...
|
||||
---@param n2 integer
|
||||
function debug.upvaluejoin(f1, n1, f2, n2) end
|
||||
|
||||
return debug
|
|
@ -1,121 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---@class ffi.namespace*: table
|
||||
---@field [string] function
|
||||
|
||||
---@class ffi.ctype*: userdata
|
||||
---@overload fun(init?: any, ...): ffi.cdata*
|
||||
---@overload fun(nelem?: integer, init?: any, ...): ffi.cdata*
|
||||
local ctype
|
||||
|
||||
---@class ffi.cdecl*: string
|
||||
---@class ffi.cdata*: userdata
|
||||
---@alias ffi.ct* ffi.ctype*|ffi.cdecl*|ffi.cdata*
|
||||
---@class ffi.cb*: ffi.cdata*
|
||||
local cb
|
||||
---@class ffi.VLA*: userdata
|
||||
---@class ffi.VLS*: userdata
|
||||
|
||||
---@version JIT
|
||||
---@class ffilib
|
||||
---@field C ffi.namespace*
|
||||
---@field os string
|
||||
---@field arch string
|
||||
local ffi = {}
|
||||
|
||||
---@param def string
|
||||
---@param params? any
|
||||
function ffi.cdef(def, params, ...) end
|
||||
|
||||
---@param name string
|
||||
---@param global? boolean
|
||||
---@return ffi.namespace* clib
|
||||
---@nodiscard
|
||||
function ffi.load(name, global) end
|
||||
|
||||
---@overload fun(ct: ffi.ct*, init: any, ...)
|
||||
---@param ct ffi.ct*
|
||||
---@param nelem? integer
|
||||
---@param init? any
|
||||
---@return ffi.cdata* cdata
|
||||
---@nodiscard
|
||||
function ffi.new(ct, nelem, init, ...) end
|
||||
|
||||
---@param ct ffi.ct*
|
||||
---@param params? any
|
||||
---@return ffi.ctype* ctype
|
||||
---@nodiscard
|
||||
function ffi.typeof(ct, params, ...) end
|
||||
|
||||
---@param ct ffi.ct*
|
||||
---@param init any
|
||||
---@return ffi.cdata* cdata
|
||||
---@nodiscard
|
||||
function ffi.cast(ct, init) end
|
||||
|
||||
---@param ct ffi.ct*
|
||||
---@param metatable table
|
||||
---@return ffi.ctype* ctype
|
||||
function ffi.metatype(ct, metatable) end
|
||||
|
||||
---@param cdata ffi.cdata*
|
||||
---@param finalizer? function
|
||||
---@return ffi.cdata* cdata
|
||||
function ffi.gc(cdata, finalizer) end
|
||||
|
||||
---@param ct ffi.ct*
|
||||
---@param nelem? integer
|
||||
---@return integer|nil size
|
||||
---@nodiscard
|
||||
function ffi.sizeof(ct, nelem) end
|
||||
|
||||
---@param ct ffi.ct*
|
||||
---@return integer align
|
||||
---@nodiscard
|
||||
function ffi.alignof(ct) end
|
||||
|
||||
---@param ct ffi.ct*
|
||||
---@param field string
|
||||
---@return integer ofs
|
||||
---@return integer? bpos
|
||||
---@return integer? bsize
|
||||
---@nodiscard
|
||||
function ffi.offsetof(ct, field) end
|
||||
|
||||
---@param ct ffi.ct*
|
||||
---@param obj any
|
||||
---@return boolean status
|
||||
---@nodiscard
|
||||
function ffi.istype(ct, obj) end
|
||||
|
||||
---@param newerr? integer
|
||||
---@return integer err
|
||||
---@nodiscard
|
||||
function ffi.errno(newerr) end
|
||||
|
||||
---@param ptr any
|
||||
---@param len? integer
|
||||
---@return string str
|
||||
function ffi.string(ptr, len) end
|
||||
|
||||
---@overload fun(dst: any, str: string)
|
||||
---@param dst any
|
||||
---@param src any
|
||||
---@param len integer
|
||||
function ffi.copy(dst, src, len) end
|
||||
|
||||
---@param dst any
|
||||
---@param len integer
|
||||
---@param c? any
|
||||
function ffi.fill(dst, len, c) end
|
||||
|
||||
---@param param string
|
||||
---@return boolean status
|
||||
function ffi.abi(param) end
|
||||
|
||||
function cb:free() end
|
||||
|
||||
---@param func function
|
||||
function cb:set(func) end
|
||||
|
||||
return ffi
|
|
@ -1,265 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io)
|
||||
---
|
||||
---@class iolib
|
||||
---
|
||||
---standard input.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.stdin)
|
||||
---
|
||||
---@field stdin file*
|
||||
---
|
||||
---standard output.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.stdout)
|
||||
---
|
||||
---@field stdout file*
|
||||
---
|
||||
---standard error.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.stderr)
|
||||
---
|
||||
---@field stderr file*
|
||||
io = {}
|
||||
|
||||
---@alias openmode
|
||||
---|>'"r"' # Read mode.
|
||||
---| '"w"' # Write mode.
|
||||
---| '"a"' # Append mode.
|
||||
---| '"r+"' # Update mode, all previous data is preserved.
|
||||
---| '"w+"' # Update mode, all previous data is erased.
|
||||
---| '"a+"' # Append update mode, previous data is preserved, writing is only allowed at the end of file.
|
||||
---| '"rb"' # Read mode. (in binary mode.)
|
||||
---| '"wb"' # Write mode. (in binary mode.)
|
||||
---| '"ab"' # Append mode. (in binary mode.)
|
||||
---| '"r+b"' # Update mode, all previous data is preserved. (in binary mode.)
|
||||
---| '"w+b"' # Update mode, all previous data is erased. (in binary mode.)
|
||||
---| '"a+b"' # Append update mode, previous data is preserved, writing is only allowed at the end of file. (in binary mode.)
|
||||
|
||||
---
|
||||
---Close `file` or default output file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.close)
|
||||
---
|
||||
---@param file? file*
|
||||
---@return boolean? suc
|
||||
---@return exitcode? exitcode
|
||||
---@return integer? code
|
||||
function io.close(file) end
|
||||
|
||||
---
|
||||
---Saves any written data to default output file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.flush)
|
||||
---
|
||||
function io.flush() end
|
||||
|
||||
---
|
||||
---Sets `file` as the default input file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.input)
|
||||
---
|
||||
---@overload fun():file*
|
||||
---@param file string|file*
|
||||
function io.input(file) end
|
||||
|
||||
---
|
||||
---------
|
||||
---```lua
|
||||
---for c in io.lines(filename, ...) do
|
||||
--- body
|
||||
---end
|
||||
---```
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.lines)
|
||||
---
|
||||
---@param filename string?
|
||||
---@param ... readmode
|
||||
---@return fun():any, ...
|
||||
function io.lines(filename, ...) end
|
||||
|
||||
---
|
||||
---Opens a file, in the mode specified in the string `mode`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.open)
|
||||
---
|
||||
---@param filename string
|
||||
---@param mode? openmode
|
||||
---@return file*?
|
||||
---@return string? errmsg
|
||||
---@nodiscard
|
||||
function io.open(filename, mode) end
|
||||
|
||||
---
|
||||
---Sets `file` as the default output file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.output)
|
||||
---
|
||||
---@overload fun():file*
|
||||
---@param file string|file*
|
||||
function io.output(file) end
|
||||
|
||||
---@alias popenmode
|
||||
---| '"r"' # Read data from this program by `file`.
|
||||
---| '"w"' # Write data to this program by `file`.
|
||||
|
||||
---
|
||||
---Starts program prog in a separated process.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.popen)
|
||||
---
|
||||
---@param prog string
|
||||
---@param mode? popenmode
|
||||
---@return file*?
|
||||
---@return string? errmsg
|
||||
function io.popen(prog, mode) end
|
||||
|
||||
---
|
||||
---Reads the `file`, according to the given formats, which specify what to read.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.read)
|
||||
---
|
||||
---@param ... readmode
|
||||
---@return any
|
||||
---@return any ...
|
||||
---@nodiscard
|
||||
function io.read(...) end
|
||||
|
||||
---
|
||||
---In case of success, returns a handle for a temporary file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.tmpfile)
|
||||
---
|
||||
---@return file*
|
||||
---@nodiscard
|
||||
function io.tmpfile() end
|
||||
|
||||
---@alias filetype
|
||||
---| '"file"' # Is an open file handle.
|
||||
---| '"closed file"' # Is a closed file handle.
|
||||
---| 'nil' # Is not a file handle.
|
||||
|
||||
---
|
||||
---Checks whether `obj` is a valid file handle.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.type)
|
||||
---
|
||||
---@param file file*
|
||||
---@return filetype
|
||||
---@nodiscard
|
||||
function io.type(file) end
|
||||
|
||||
---
|
||||
---Writes the value of each of its arguments to default output file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-io.write)
|
||||
---
|
||||
---@return file*
|
||||
---@return string? errmsg
|
||||
function io.write(...) end
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file)
|
||||
---
|
||||
---@class file*
|
||||
local file = {}
|
||||
|
||||
---@alias readmode integer|string
|
||||
---| '"*n"' # Reads a numeral and returns it as number.
|
||||
---| '"*a"' # Reads the whole file.
|
||||
---|>'"*l"' # Reads the next line skipping the end of line.
|
||||
---| '"*L"' # Reads the next line keeping the end of line.
|
||||
|
||||
---@alias exitcode '"exit"'|'"signal"'
|
||||
|
||||
---
|
||||
---Close `file`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file:close)
|
||||
---
|
||||
---@return boolean? suc
|
||||
---@return exitcode? exitcode
|
||||
---@return integer? code
|
||||
function file:close() end
|
||||
|
||||
---
|
||||
---Saves any written data to `file`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file:flush)
|
||||
---
|
||||
function file:flush() end
|
||||
|
||||
---
|
||||
---------
|
||||
---```lua
|
||||
---for c in file:lines(...) do
|
||||
--- body
|
||||
---end
|
||||
---```
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file:lines)
|
||||
---
|
||||
---@param ... readmode
|
||||
---@return fun():any, ...
|
||||
function file:lines(...) end
|
||||
|
||||
---
|
||||
---Reads the `file`, according to the given formats, which specify what to read.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file:read)
|
||||
---
|
||||
---@param ... readmode
|
||||
---@return any
|
||||
---@return any ...
|
||||
---@nodiscard
|
||||
function file:read(...) end
|
||||
|
||||
---@alias seekwhence
|
||||
---| '"set"' # Base is beginning of the file.
|
||||
---|>'"cur"' # Base is current position.
|
||||
---| '"end"' # Base is end of file.
|
||||
|
||||
---
|
||||
---Sets and gets the file position, measured from the beginning of the file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file:seek)
|
||||
---
|
||||
---@param whence? seekwhence
|
||||
---@param offset? integer
|
||||
---@return integer offset
|
||||
---@return string? errmsg
|
||||
function file:seek(whence, offset) end
|
||||
|
||||
---@alias vbuf
|
||||
---| '"no"' # Output operation appears immediately.
|
||||
---| '"full"' # Performed only when the buffer is full.
|
||||
---| '"line"' # Buffered until a newline is output.
|
||||
|
||||
---
|
||||
---Sets the buffering mode for an output file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file:setvbuf)
|
||||
---
|
||||
---@param mode vbuf
|
||||
---@param size? integer
|
||||
function file:setvbuf(mode, size) end
|
||||
|
||||
---
|
||||
---Writes the value of each of its arguments to `file`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-file:write)
|
||||
---
|
||||
---@param ... string|number
|
||||
---@return file*?
|
||||
---@return string? errmsg
|
||||
function file:write(...) end
|
||||
|
||||
return io
|
|
@ -1,32 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---@version JIT
|
||||
---@class jitlib
|
||||
---@field version string
|
||||
---@field version_num number
|
||||
---@field os string
|
||||
---@field arch string
|
||||
jit = {}
|
||||
|
||||
---@overload fun(...):...
|
||||
---@param func function|boolean
|
||||
---@param recursive? boolean
|
||||
function jit.on(func, recursive) end
|
||||
|
||||
---@overload fun(...):...
|
||||
---@param func function|boolean
|
||||
---@param recursive? boolean
|
||||
function jit.off(func, recursive) end
|
||||
|
||||
---@overload fun(...):...
|
||||
---@overload fun(tr: number)
|
||||
---@param func function|boolean
|
||||
---@param recursive? boolean
|
||||
function jit.flush(func, recursive) end
|
||||
|
||||
---@return boolean status
|
||||
---@return string ...
|
||||
---@nodiscard
|
||||
function jit.status() end
|
||||
|
||||
return jit
|
|
@ -1,361 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math)
|
||||
---
|
||||
---@class mathlib
|
||||
---
|
||||
---A value larger than any other numeric value.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.huge)
|
||||
---
|
||||
---@field huge number
|
||||
---
|
||||
---The value of *π*.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.pi)
|
||||
---
|
||||
---@field pi number
|
||||
math = {}
|
||||
|
||||
---
|
||||
---Returns the absolute value of `x`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.abs)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.abs(x) end
|
||||
|
||||
---
|
||||
---Returns the arc cosine of `x` (in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.acos)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.acos(x) end
|
||||
|
||||
---
|
||||
---Returns the arc sine of `x` (in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.asin)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.asin(x) end
|
||||
|
||||
---
|
||||
---Returns the arc tangent of `x` (in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.atan)
|
||||
---
|
||||
---@param y number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.atan(y) end
|
||||
|
||||
---@version <5.2
|
||||
---
|
||||
---Returns the arc tangent of `y/x` (in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.atan2)
|
||||
---
|
||||
---@param y number
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.atan2(y, x) end
|
||||
|
||||
---
|
||||
---Returns the smallest integral value larger than or equal to `x`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.ceil)
|
||||
---
|
||||
---@param x number
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function math.ceil(x) end
|
||||
|
||||
---
|
||||
---Returns the cosine of `x` (assumed to be in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.cos)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.cos(x) end
|
||||
|
||||
---@version <5.2
|
||||
---
|
||||
---Returns the hyperbolic cosine of `x` (assumed to be in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.cosh)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.cosh(x) end
|
||||
|
||||
---
|
||||
---Converts the angle `x` from radians to degrees.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.deg)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.deg(x) end
|
||||
|
||||
---
|
||||
---Returns the value `e^x` (where `e` is the base of natural logarithms).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.exp)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.exp(x) end
|
||||
|
||||
---
|
||||
---Returns the largest integral value smaller than or equal to `x`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.floor)
|
||||
---
|
||||
---@param x number
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function math.floor(x) end
|
||||
|
||||
---
|
||||
---Returns the remainder of the division of `x` by `y` that rounds the quotient towards zero.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.fmod)
|
||||
---
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.fmod(x, y) end
|
||||
|
||||
---@version <5.2
|
||||
---
|
||||
---Decompose `x` into tails and exponents. Returns `m` and `e` such that `x = m * (2 ^ e)`, `e` is an integer and the absolute value of `m` is in the range [0.5, 1) (or zero when `x` is zero).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.frexp)
|
||||
---
|
||||
---@param x number
|
||||
---@return number m
|
||||
---@return number e
|
||||
---@nodiscard
|
||||
function math.frexp(x) end
|
||||
|
||||
---@version <5.2
|
||||
---
|
||||
---Returns `m * (2 ^ e)` .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.ldexp)
|
||||
---
|
||||
---@param m number
|
||||
---@param e number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.ldexp(m, e) end
|
||||
|
||||
---
|
||||
---Returns the logarithm of `x` in the given base.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.log)
|
||||
---
|
||||
---@param x number
|
||||
---@param base? integer
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.log(x, base) end
|
||||
|
||||
---@version <5.1
|
||||
---
|
||||
---Returns the base-10 logarithm of x.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.log10)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.log10(x) end
|
||||
|
||||
---
|
||||
---Returns the argument with the maximum value, according to the Lua operator `<`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.max)
|
||||
---
|
||||
---@generic Number: number
|
||||
---@param x Number
|
||||
---@param ... Number
|
||||
---@return Number
|
||||
---@nodiscard
|
||||
function math.max(x, ...) end
|
||||
|
||||
---
|
||||
---Returns the argument with the minimum value, according to the Lua operator `<`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.min)
|
||||
---
|
||||
---@generic Number: number
|
||||
---@param x Number
|
||||
---@param ... Number
|
||||
---@return Number
|
||||
---@nodiscard
|
||||
function math.min(x, ...) end
|
||||
|
||||
---
|
||||
---Returns the integral part of `x` and the fractional part of `x`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.modf)
|
||||
---
|
||||
---@param x number
|
||||
---@return integer
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.modf(x) end
|
||||
|
||||
---@version <5.2
|
||||
---
|
||||
---Returns `x ^ y` .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.pow)
|
||||
---
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.pow(x, y) end
|
||||
|
||||
---
|
||||
---Converts the angle `x` from degrees to radians.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.rad)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.rad(x) end
|
||||
|
||||
---
|
||||
---* `math.random()`: Returns a float in the range [0,1).
|
||||
---* `math.random(n)`: Returns a integer in the range [1, n].
|
||||
---* `math.random(m, n)`: Returns a integer in the range [m, n].
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.random)
|
||||
---
|
||||
---@overload fun():number
|
||||
---@overload fun(m: integer):integer
|
||||
---@param m integer
|
||||
---@param n integer
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function math.random(m, n) end
|
||||
|
||||
---
|
||||
---Sets `x` as the "seed" for the pseudo-random generator.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.randomseed)
|
||||
---
|
||||
---@param x integer
|
||||
function math.randomseed(x) end
|
||||
|
||||
---
|
||||
---Returns the sine of `x` (assumed to be in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.sin)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.sin(x) end
|
||||
|
||||
---@version <5.2
|
||||
---
|
||||
---Returns the hyperbolic sine of `x` (assumed to be in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.sinh)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.sinh(x) end
|
||||
|
||||
---
|
||||
---Returns the square root of `x`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.sqrt)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.sqrt(x) end
|
||||
|
||||
---
|
||||
---Returns the tangent of `x` (assumed to be in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.tan)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.tan(x) end
|
||||
|
||||
---@version <5.2
|
||||
---
|
||||
---Returns the hyperbolic tangent of `x` (assumed to be in radians).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.tanh)
|
||||
---
|
||||
---@param x number
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function math.tanh(x) end
|
||||
|
||||
---@version >5.3
|
||||
---
|
||||
---If the value `x` is convertible to an integer, returns that integer.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.tointeger)
|
||||
---
|
||||
---@param x any
|
||||
---@return integer?
|
||||
---@nodiscard
|
||||
function math.tointeger(x) end
|
||||
|
||||
---
|
||||
---Returns `"integer"` if `x` is an integer, `"float"` if it is a float, or `nil` if `x` is not a number.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.type)
|
||||
---
|
||||
---@param x any
|
||||
---@return
|
||||
---| '"integer"'
|
||||
---| '"float"'
|
||||
---| 'nil'
|
||||
---@nodiscard
|
||||
function math.type(x) end
|
||||
|
||||
---
|
||||
---Returns `true` if and only if `m` is below `n` when they are compared as unsigned integers.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-math.ult)
|
||||
---
|
||||
---@param m integer
|
||||
---@param n integer
|
||||
---@return boolean
|
||||
---@nodiscard
|
||||
function math.ult(m, n) end
|
||||
|
||||
return math
|
|
@ -1,186 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os)
|
||||
---
|
||||
---@class oslib
|
||||
os = {}
|
||||
|
||||
---
|
||||
---Returns an approximation of the amount in seconds of CPU time used by the program.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.clock)
|
||||
---
|
||||
---@return number
|
||||
---@nodiscard
|
||||
function os.clock() end
|
||||
|
||||
---@class osdate
|
||||
---
|
||||
---four digits
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.year)
|
||||
---
|
||||
---@field year integer|string
|
||||
---
|
||||
---1-12
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.month)
|
||||
---
|
||||
---@field month integer|string
|
||||
---
|
||||
---1-31
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.day)
|
||||
---
|
||||
---@field day integer|string
|
||||
---
|
||||
---0-23
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.hour)
|
||||
---
|
||||
---@field hour integer|string
|
||||
---
|
||||
---0-59
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.min)
|
||||
---
|
||||
---@field min integer|string
|
||||
---
|
||||
---0-61
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.sec)
|
||||
---
|
||||
---@field sec integer|string
|
||||
---
|
||||
---weekday, 1–7, Sunday is 1
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.wday)
|
||||
---
|
||||
---@field wday integer|string
|
||||
---
|
||||
---day of the year, 1–366
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.yday)
|
||||
---
|
||||
---@field yday integer|string
|
||||
---
|
||||
---daylight saving flag, a boolean
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-osdate.isdst)
|
||||
---
|
||||
---@field isdst boolean
|
||||
|
||||
---
|
||||
---Returns a string or a table containing date and time, formatted according to the given string `format`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.date)
|
||||
---
|
||||
---@param format? string
|
||||
---@param time? integer
|
||||
---@return string|osdate
|
||||
---@nodiscard
|
||||
function os.date(format, time) end
|
||||
|
||||
---
|
||||
---Returns the difference, in seconds, from time `t1` to time `t2`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.difftime)
|
||||
---
|
||||
---@param t2 integer
|
||||
---@param t1 integer
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function os.difftime(t2, t1) end
|
||||
|
||||
---
|
||||
---Passes `command` to be executed by an operating system shell.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.execute)
|
||||
---
|
||||
---@param command? string
|
||||
---@return boolean? suc
|
||||
---@return exitcode? exitcode
|
||||
---@return integer? code
|
||||
function os.execute(command) end
|
||||
|
||||
---
|
||||
---Calls the ISO C function `exit` to terminate the host program.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.exit)
|
||||
---
|
||||
---@param code? boolean|integer
|
||||
---@param close? boolean
|
||||
function os.exit(code, close) end
|
||||
|
||||
---
|
||||
---Returns the value of the process environment variable `varname`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.getenv)
|
||||
---
|
||||
---@param varname string
|
||||
---@return string?
|
||||
---@nodiscard
|
||||
function os.getenv(varname) end
|
||||
|
||||
---
|
||||
---Deletes the file with the given name.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.remove)
|
||||
---
|
||||
---@param filename string
|
||||
---@return boolean suc
|
||||
---@return string? errmsg
|
||||
function os.remove(filename) end
|
||||
|
||||
---
|
||||
---Renames the file or directory named `oldname` to `newname`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.rename)
|
||||
---
|
||||
---@param oldname string
|
||||
---@param newname string
|
||||
---@return boolean suc
|
||||
---@return string? errmsg
|
||||
function os.rename(oldname, newname) end
|
||||
|
||||
---@alias localecategory
|
||||
---|>'"all"'
|
||||
---| '"collate"'
|
||||
---| '"ctype"'
|
||||
---| '"monetary"'
|
||||
---| '"numeric"'
|
||||
---| '"time"'
|
||||
|
||||
---
|
||||
---Sets the current locale of the program.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.setlocale)
|
||||
---
|
||||
---@param locale string|nil
|
||||
---@param category? localecategory
|
||||
---@return string localecategory
|
||||
function os.setlocale(locale, category) end
|
||||
|
||||
---
|
||||
---Returns the current time when called without arguments, or a time representing the local date and time specified by the given table.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.time)
|
||||
---
|
||||
---@param date? osdate
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function os.time(date) end
|
||||
|
||||
---
|
||||
---Returns a string with a file name that can be used for a temporary file.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-os.tmpname)
|
||||
---
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function os.tmpname() end
|
||||
|
||||
return os
|
|
@ -1,106 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---Loads the given module, returns any value returned by the given module(`true` when `nil`).
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-require)
|
||||
---
|
||||
---@param modname string
|
||||
---@return unknown
|
||||
function require(modname) end
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package)
|
||||
---
|
||||
---@class packagelib
|
||||
---
|
||||
---The path used by `require` to search for a C loader.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath)
|
||||
---
|
||||
---@field cpath string
|
||||
---
|
||||
---A table used by `require` to control which modules are already loaded.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.loaded)
|
||||
---
|
||||
---@field loaded table
|
||||
---
|
||||
---The path used by `require` to search for a Lua loader.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.path)
|
||||
---
|
||||
---@field path string
|
||||
---
|
||||
---A table to store loaders for specific modules.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.preload)
|
||||
---
|
||||
---@field preload table
|
||||
package = {}
|
||||
|
||||
---
|
||||
---A string describing some compile-time configurations for packages.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.config)
|
||||
---
|
||||
package.config = [[
|
||||
/
|
||||
;
|
||||
?
|
||||
!
|
||||
-]]
|
||||
|
||||
---@version <5.1
|
||||
---
|
||||
---A table used by `require` to control how to load modules.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.loaders)
|
||||
---
|
||||
package.loaders = {}
|
||||
|
||||
---
|
||||
---Dynamically links the host program with the C library `libname`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.loadlib)
|
||||
---
|
||||
---@param libname string
|
||||
---@param funcname string
|
||||
---@return any
|
||||
function package.loadlib(libname, funcname) end
|
||||
|
||||
---
|
||||
---A table used by `require` to control how to load modules.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.searchers)
|
||||
---
|
||||
---@version >5.2
|
||||
package.searchers = {}
|
||||
|
||||
---
|
||||
---Searches for the given `name` in the given `path`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.searchpath)
|
||||
---
|
||||
---@version >5.2,JIT
|
||||
---@param name string
|
||||
---@param path string
|
||||
---@param sep? string
|
||||
---@param rep? string
|
||||
---@return string? filename
|
||||
---@return string? errmsg
|
||||
---@nodiscard
|
||||
function package.searchpath(name, path, sep, rep) end
|
||||
|
||||
---
|
||||
---Sets a metatable for `module` with its `__index` field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function `module` .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-package.seeall)
|
||||
---
|
||||
---@version <5.1
|
||||
---@param module table
|
||||
function package.seeall(module) end
|
||||
|
||||
return package
|
|
@ -1,220 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string)
|
||||
---
|
||||
---@class stringlib
|
||||
string = {}
|
||||
|
||||
---
|
||||
---Returns the internal numeric codes of the characters `s[i], s[i+1], ..., s[j]`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.byte)
|
||||
---
|
||||
---@param s string
|
||||
---@param i? integer
|
||||
---@param j? integer
|
||||
---@return integer ...
|
||||
---@nodiscard
|
||||
function string.byte(s, i, j) end
|
||||
|
||||
---
|
||||
---Returns a string with length equal to the number of arguments, in which each character has the internal numeric code equal to its corresponding argument.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.char)
|
||||
---
|
||||
---@param byte integer
|
||||
---@param ... integer
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.char(byte, ...) end
|
||||
|
||||
---
|
||||
---Returns a string containing a binary representation (a *binary chunk*) of the given function.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.dump)
|
||||
---
|
||||
---@param f async fun(...):...
|
||||
---@param strip? boolean
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.dump(f, strip) end
|
||||
|
||||
---
|
||||
---Looks for the first match of `pattern` (see [§6.4.1](http://www.lua.org/manual/5.1/manual.html#6.4.1)) in the string.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.find)
|
||||
---
|
||||
---@param s string
|
||||
---@param pattern string
|
||||
---@param init? integer
|
||||
---@param plain? boolean
|
||||
---@return integer start
|
||||
---@return integer end
|
||||
---@return any ... captured
|
||||
---@nodiscard
|
||||
function string.find(s, pattern, init, plain) end
|
||||
|
||||
---
|
||||
---Returns a formatted version of its variable number of arguments following the description given in its first argument.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
|
||||
---
|
||||
---@param s any
|
||||
---@param ... any
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.format(s, ...) end
|
||||
|
||||
---
|
||||
---Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see [§6.4.1](http://www.lua.org/manual/5.1/manual.html#6.4.1)) over the string s.
|
||||
---
|
||||
---As an example, the following loop will iterate over all the words from string s, printing one per line:
|
||||
---```lua
|
||||
--- s =
|
||||
---"hello world from Lua"
|
||||
--- for w in string.gmatch(s, "%a+") do
|
||||
--- print(w)
|
||||
--- end
|
||||
---```
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.gmatch)
|
||||
---
|
||||
---@param s string
|
||||
---@param pattern string
|
||||
---@return fun():string, ...
|
||||
---@nodiscard
|
||||
function string.gmatch(s, pattern) end
|
||||
|
||||
---
|
||||
---Returns a copy of s in which all (or the first `n`, if given) occurrences of the `pattern` (see [§6.4.1](http://www.lua.org/manual/5.1/manual.html#6.4.1)) have been replaced by a replacement string specified by `repl`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.gsub)
|
||||
---
|
||||
---@param s string
|
||||
---@param pattern string
|
||||
---@param repl string|number|table|function
|
||||
---@param n? integer
|
||||
---@return string
|
||||
---@return integer count
|
||||
---@nodiscard
|
||||
function string.gsub(s, pattern, repl, n) end
|
||||
|
||||
---
|
||||
---Returns its length.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.len)
|
||||
---
|
||||
---@param s string
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function string.len(s) end
|
||||
|
||||
---
|
||||
---Returns a copy of this string with all uppercase letters changed to lowercase.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.lower)
|
||||
---
|
||||
---@param s string
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.lower(s) end
|
||||
|
||||
---
|
||||
---Looks for the first match of `pattern` (see [§6.4.1](http://www.lua.org/manual/5.1/manual.html#6.4.1)) in the string.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.match)
|
||||
---
|
||||
---@param s string
|
||||
---@param pattern string
|
||||
---@param init? integer
|
||||
---@return any ...
|
||||
---@nodiscard
|
||||
function string.match(s, pattern, init) end
|
||||
|
||||
---@version >5.3
|
||||
---
|
||||
---Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string `fmt` (see [§6.4.2](http://www.lua.org/manual/5.1/manual.html#6.4.2)) .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.pack)
|
||||
---
|
||||
---@param fmt string
|
||||
---@param v1 string|number
|
||||
---@param ... string|number
|
||||
---@return string binary
|
||||
---@nodiscard
|
||||
function string.pack(fmt, v1, v2, ...) end
|
||||
|
||||
---@version >5.3
|
||||
---
|
||||
---Returns the size of a string resulting from `string.pack` with the given format string `fmt` (see [§6.4.2](http://www.lua.org/manual/5.1/manual.html#6.4.2)) .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.packsize)
|
||||
---
|
||||
---@param fmt string
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function string.packsize(fmt) end
|
||||
|
||||
---
|
||||
---Returns a string that is the concatenation of `n` copies of the string `s` separated by the string `sep`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.rep)
|
||||
---
|
||||
---@param s string
|
||||
---@param n integer
|
||||
---@param sep? string
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.rep(s, n, sep) end
|
||||
|
||||
---
|
||||
---Returns a string that is the string `s` reversed.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.reverse)
|
||||
---
|
||||
---@param s string
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.reverse(s) end
|
||||
|
||||
---
|
||||
---Returns the substring of the string that starts at `i` and continues until `j`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.sub)
|
||||
---
|
||||
---@param s string
|
||||
---@param i integer
|
||||
---@param j? integer
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.sub(s, i, j) end
|
||||
|
||||
---@version >5.3
|
||||
---
|
||||
---Returns the values packed in string according to the format string `fmt` (see [§6.4.2](http://www.lua.org/manual/5.1/manual.html#6.4.2)) .
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.unpack)
|
||||
---
|
||||
---@param fmt string
|
||||
---@param s string
|
||||
---@param pos? integer
|
||||
---@return any ...
|
||||
---@return integer offset
|
||||
---@nodiscard
|
||||
function string.unpack(fmt, s, pos) end
|
||||
|
||||
---
|
||||
---Returns a copy of this string with all lowercase letters changed to uppercase.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-string.upper)
|
||||
---
|
||||
---@param s string
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function string.upper(s) end
|
||||
|
||||
return string
|
|
@ -1,353 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---@version JIT
|
||||
--- The string buffer library allows high-performance manipulation of string-like data.
|
||||
---
|
||||
--- Unlike Lua strings, which are constants, string buffers are mutable sequences of 8-bit (binary-transparent) characters. Data can be stored, formatted and encoded into a string buffer and later converted, extracted or decoded.
|
||||
---
|
||||
--- The convenient string buffer API simplifies common string manipulation tasks, that would otherwise require creating many intermediate strings. String buffers improve performance by eliminating redundant memory copies, object creation, string interning and garbage collection overhead. In conjunction with the FFI library, they allow zero-copy operations.
|
||||
---
|
||||
--- The string buffer libary also includes a high-performance serializer for Lua objects.
|
||||
---
|
||||
---
|
||||
--- ## Streaming Serialization
|
||||
---
|
||||
--- In some contexts, it's desirable to do piecewise serialization of large datasets, also known as streaming.
|
||||
---
|
||||
--- This serialization format can be safely concatenated and supports streaming. Multiple encodings can simply be appended to a buffer and later decoded individually:
|
||||
---
|
||||
--- ```lua
|
||||
--- local buf = buffer.new()
|
||||
--- buf:encode(obj1)
|
||||
--- buf:encode(obj2)
|
||||
--- local copy1 = buf:decode()
|
||||
--- local copy2 = buf:decode()
|
||||
--- ```
|
||||
---
|
||||
--- Here's how to iterate over a stream:
|
||||
---
|
||||
--- ```lua
|
||||
--- while #buf ~= 0 do
|
||||
--- local obj = buf:decode()
|
||||
--- -- Do something with obj.
|
||||
--- end
|
||||
--- ```
|
||||
---
|
||||
--- Since the serialization format doesn't prepend a length to its encoding, network applications may need to transmit the length, too.
|
||||
--- Serialization Format Specification
|
||||
---
|
||||
--- This serialization format is designed for internal use by LuaJIT applications. Serialized data is upwards-compatible and portable across all supported LuaJIT platforms.
|
||||
---
|
||||
--- It's an 8-bit binary format and not human-readable. It uses e.g. embedded zeroes and stores embedded Lua string objects unmodified, which are 8-bit-clean, too. Encoded data can be safely concatenated for streaming and later decoded one top-level object at a time.
|
||||
---
|
||||
--- The encoding is reasonably compact, but tuned for maximum performance, not for minimum space usage. It compresses well with any of the common byte-oriented data compression algorithms.
|
||||
---
|
||||
--- Although documented here for reference, this format is explicitly not intended to be a 'public standard' for structured data interchange across computer languages (like JSON or MessagePack). Please do not use it as such.
|
||||
---
|
||||
--- The specification is given below as a context-free grammar with a top-level object as the starting point. Alternatives are separated by the | symbol and * indicates repeats. Grouping is implicit or indicated by {…}. Terminals are either plain hex numbers, encoded as bytes, or have a .format suffix.
|
||||
---
|
||||
--- ```
|
||||
--- object → nil | false | true
|
||||
--- | null | lightud32 | lightud64
|
||||
--- | int | num | tab | tab_mt
|
||||
--- | int64 | uint64 | complex
|
||||
--- | string
|
||||
---
|
||||
--- nil → 0x00
|
||||
--- false → 0x01
|
||||
--- true → 0x02
|
||||
---
|
||||
--- null → 0x03 // NULL lightuserdata
|
||||
--- lightud32 → 0x04 data.I // 32 bit lightuserdata
|
||||
--- lightud64 → 0x05 data.L // 64 bit lightuserdata
|
||||
---
|
||||
--- int → 0x06 int.I // int32_t
|
||||
--- num → 0x07 double.L
|
||||
---
|
||||
--- tab → 0x08 // Empty table
|
||||
--- | 0x09 h.U h*{object object} // Key/value hash
|
||||
--- | 0x0a a.U a*object // 0-based array
|
||||
--- | 0x0b a.U a*object h.U h*{object object} // Mixed
|
||||
--- | 0x0c a.U (a-1)*object // 1-based array
|
||||
--- | 0x0d a.U (a-1)*object h.U h*{object object} // Mixed
|
||||
--- tab_mt → 0x0e (index-1).U tab // Metatable dict entry
|
||||
---
|
||||
--- int64 → 0x10 int.L // FFI int64_t
|
||||
--- uint64 → 0x11 uint.L // FFI uint64_t
|
||||
--- complex → 0x12 re.L im.L // FFI complex
|
||||
---
|
||||
--- string → (0x20+len).U len*char.B
|
||||
--- | 0x0f (index-1).U // String dict entry
|
||||
---
|
||||
--- .B = 8 bit
|
||||
--- .I = 32 bit little-endian
|
||||
--- .L = 64 bit little-endian
|
||||
--- .U = prefix-encoded 32 bit unsigned number n:
|
||||
--- 0x00..0xdf → n.B
|
||||
--- 0xe0..0x1fdf → (0xe0|(((n-0xe0)>>8)&0x1f)).B ((n-0xe0)&0xff).B
|
||||
--- 0x1fe0.. → 0xff n.I
|
||||
--- ```
|
||||
---
|
||||
--- ## Error handling
|
||||
---
|
||||
--- Many of the buffer methods can throw an error. Out-of-memory or usage errors are best caught with an outer wrapper for larger parts of code. There's not much one can do after that, anyway.
|
||||
---
|
||||
--- OTOH you may want to catch some errors individually. Buffer methods need to receive the buffer object as the first argument. The Lua colon-syntax `obj:method()` does that implicitly. But to wrap a method with `pcall()`, the arguments need to be passed like this:
|
||||
---
|
||||
--- ```lua
|
||||
--- local ok, err = pcall(buf.encode, buf, obj)
|
||||
--- if not ok then
|
||||
--- -- Handle error in err.
|
||||
--- end
|
||||
--- ```
|
||||
---
|
||||
--- ## FFI caveats
|
||||
---
|
||||
--- The string buffer library has been designed to work well together with the FFI library. But due to the low-level nature of the FFI library, some care needs to be taken:
|
||||
---
|
||||
--- First, please remember that FFI pointers are zero-indexed. The space returned by `buf:reserve()` and `buf:ref()` starts at the returned pointer and ends before len bytes after that.
|
||||
---
|
||||
--- I.e. the first valid index is `ptr[0]` and the last valid index is `ptr[len-1]`. If the returned length is zero, there's no valid index at all. The returned pointer may even be `NULL`.
|
||||
---
|
||||
--- The space pointed to by the returned pointer is only valid as long as the buffer is not modified in any way (neither append, nor consume, nor reset, etc.). The pointer is also not a GC anchor for the buffer object itself.
|
||||
---
|
||||
--- Buffer data is only guaranteed to be byte-aligned. Casting the returned pointer to a data type with higher alignment may cause unaligned accesses. It depends on the CPU architecture whether this is allowed or not (it's always OK on x86/x64 and mostly OK on other modern architectures).
|
||||
---
|
||||
--- FFI pointers or references do not count as GC anchors for an underlying object. E.g. an array allocated with `ffi.new()` is anchored by `buf:set(array, len)`, but not by `buf:set(array+offset, len)`. The addition of the offset creates a new pointer, even when the offset is zero. In this case, you need to make sure there's still a reference to the original array as long as its contents are in use by the buffer.
|
||||
---
|
||||
--- Even though each LuaJIT VM instance is single-threaded (but you can create multiple VMs), FFI data structures can be accessed concurrently. Be careful when reading/writing FFI cdata from/to buffers to avoid concurrent accesses or modifications. In particular, the memory referenced by `buf:set(cdata, len)` must not be modified while buffer readers are working on it. Shared, but read-only memory mappings of files are OK, but only if the file does not change.
|
||||
local buffer = {}
|
||||
|
||||
--- A buffer object is a garbage-collected Lua object. After creation with `buffer.new()`, it can (and should) be reused for many operations. When the last reference to a buffer object is gone, it will eventually be freed by the garbage collector, along with the allocated buffer space.
|
||||
---
|
||||
--- Buffers operate like a FIFO (first-in first-out) data structure. Data can be appended (written) to the end of the buffer and consumed (read) from the front of the buffer. These operations may be freely mixed.
|
||||
---
|
||||
--- The buffer space that holds the characters is managed automatically — it grows as needed and already consumed space is recycled. Use `buffer.new(size)` and `buf:free()`, if you need more control.
|
||||
---
|
||||
--- The maximum size of a single buffer is the same as the maximum size of a Lua string, which is slightly below two gigabytes. For huge data sizes, neither strings nor buffers are the right data structure — use the FFI library to directly map memory or files up to the virtual memory limit of your OS.
|
||||
---
|
||||
---@version JIT
|
||||
---@class string.buffer : table
|
||||
local buf = {}
|
||||
|
||||
--- A string, number, or any object obj with a __tostring metamethod to the buffer.
|
||||
---
|
||||
---@alias string.buffer.data string|number|table
|
||||
|
||||
|
||||
--- Appends a string str, a number num or any object obj with a `__tostring` metamethod to the buffer. Multiple arguments are appended in the given order.
|
||||
---
|
||||
--- Appending a buffer to a buffer is possible and short-circuited internally. But it still involves a copy. Better combine the buffer writes to use a single buffer.
|
||||
---
|
||||
---@param data string.buffer.data
|
||||
---@param ...? string.buffer.data
|
||||
---@return string.buffer
|
||||
function buf:put(data, ...) end
|
||||
|
||||
|
||||
--- Appends the formatted arguments to the buffer. The format string supports the same options as string.format().
|
||||
---
|
||||
---@param format string
|
||||
---@param ... string.buffer.data
|
||||
---@return string.buffer
|
||||
function buf:putf(format, ...) end
|
||||
|
||||
|
||||
--- Appends the given len number of bytes from the memory pointed to by the FFI cdata object to the buffer. The object needs to be convertible to a (constant) pointer.
|
||||
---
|
||||
---@param cdata ffi.cdata*
|
||||
---@param len integer
|
||||
---@return string.buffer
|
||||
function buf:putcdata(cdata, len) end
|
||||
|
||||
|
||||
--- This method allows zero-copy consumption of a string or an FFI cdata object as a buffer. It stores a reference to the passed string str or the FFI cdata object in the buffer. Any buffer space originally allocated is freed. This is not an append operation, unlike the `buf:put*()` methods.
|
||||
---
|
||||
--- After calling this method, the buffer behaves as if `buf:free():put(str)` or `buf:free():put(cdata, len)` had been called. However, the data is only referenced and not copied, as long as the buffer is only consumed.
|
||||
---
|
||||
--- In case the buffer is written to later on, the referenced data is copied and the object reference is removed (copy-on-write semantics).
|
||||
---
|
||||
--- The stored reference is an anchor for the garbage collector and keeps the originally passed string or FFI cdata object alive.
|
||||
---
|
||||
---@param str string.buffer.data
|
||||
---@return string.buffer
|
||||
---@overload fun(self:string.buffer, cdata:ffi.cdata*, len:integer):string.buffer
|
||||
function buf:set(str) end
|
||||
|
||||
--- Reset (empty) the buffer. The allocated buffer space is not freed and may be reused.
|
||||
---@return string.buffer
|
||||
function buf:reset() end
|
||||
|
||||
|
||||
--- The buffer space of the buffer object is freed. The object itself remains intact, empty and may be reused.
|
||||
---
|
||||
--- Note: you normally don't need to use this method. The garbage collector automatically frees the buffer space, when the buffer object is collected. Use this method, if you need to free the associated memory immediately.
|
||||
function buf:free() end
|
||||
|
||||
|
||||
--- The reserve method reserves at least size bytes of write space in the buffer. It returns an uint8_t * FFI cdata pointer ptr that points to this space.
|
||||
---
|
||||
--- The available length in bytes is returned in len. This is at least size bytes, but may be more to facilitate efficient buffer growth. You can either make use of the additional space or ignore len and only use size bytes.
|
||||
---
|
||||
--- This, along with `buf:commit()` allow zero-copy use of C read-style APIs:
|
||||
---
|
||||
--- ```lua
|
||||
--- local MIN_SIZE = 65536
|
||||
--- repeat
|
||||
--- local ptr, len = buf:reserve(MIN_SIZE)
|
||||
--- local n = C.read(fd, ptr, len)
|
||||
--- if n == 0 then break end -- EOF.
|
||||
--- if n < 0 then error("read error") end
|
||||
--- buf:commit(n)
|
||||
--- until false
|
||||
--- ```
|
||||
---
|
||||
--- The reserved write space is not initialized. At least the used bytes must be written to before calling the commit method. There's no need to call the commit method, if nothing is added to the buffer (e.g. on error).
|
||||
---@param size integer
|
||||
---@return ffi.cdata* ptr # an uint8_t * FFI cdata pointer that points to this space
|
||||
---@return integer len # available length (bytes)
|
||||
function buf:reserve(size) end
|
||||
|
||||
|
||||
--- Appends the used bytes of the previously returned write space to the buffer data.
|
||||
---@param used integer
|
||||
---@return string.buffer
|
||||
function buf:commit(used) end
|
||||
|
||||
|
||||
--- Skips (consumes) len bytes from the buffer up to the current length of the buffer data.
|
||||
---@param len integer
|
||||
---@return string.buffer
|
||||
function buf:skip(len) end
|
||||
|
||||
--- Consumes the buffer data and returns one or more strings. If called without arguments, the whole buffer data is consumed. If called with a number, up to `len` bytes are consumed. A `nil` argument consumes the remaining buffer space (this only makes sense as the last argument). Multiple arguments consume the buffer data in the given order.
|
||||
---
|
||||
--- Note: a zero length or no remaining buffer data returns an empty string and not `nil`.
|
||||
---
|
||||
---@param len? integer
|
||||
---@param ... integer|nil
|
||||
---@return string ...
|
||||
function buf:get(len, ...) end
|
||||
|
||||
--- Creates a string from the buffer data, but doesn't consume it. The buffer remains unchanged.
|
||||
---
|
||||
--- Buffer objects also define a `__tostring metamethod`. This means buffers can be passed to the global `tostring()` function and many other functions that accept this in place of strings. The important internal uses in functions like `io.write()` are short-circuited to avoid the creation of an intermediate string object.
|
||||
---@return string
|
||||
function buf:tostring() end
|
||||
|
||||
|
||||
--- Returns an uint8_t * FFI cdata pointer ptr that points to the buffer data. The length of the buffer data in bytes is returned in len.
|
||||
---
|
||||
--- The returned pointer can be directly passed to C functions that expect a buffer and a length. You can also do bytewise reads (`local x = ptr[i]`) or writes (`ptr[i] = 0x40`) of the buffer data.
|
||||
---
|
||||
--- In conjunction with the `buf:skip()` method, this allows zero-copy use of C write-style APIs:
|
||||
---
|
||||
--- ```lua
|
||||
--- repeat
|
||||
--- local ptr, len = buf:ref()
|
||||
--- if len == 0 then break end
|
||||
--- local n = C.write(fd, ptr, len)
|
||||
--- if n < 0 then error("write error") end
|
||||
--- buf:skip(n)
|
||||
--- until n >= len
|
||||
--- ```
|
||||
---
|
||||
--- Unlike Lua strings, buffer data is not implicitly zero-terminated. It's not safe to pass ptr to C functions that expect zero-terminated strings. If you're not using len, then you're doing something wrong.
|
||||
---
|
||||
---@return ffi.cdata* ptr # an uint8_t * FFI cdata pointer that points to the buffer data.
|
||||
---@return integer len # length of the buffer data in bytes
|
||||
function buf:ref() end
|
||||
|
||||
--- Serializes (encodes) the Lua object to the buffer
|
||||
---
|
||||
--- This function may throw an error when attempting to serialize unsupported object types, circular references or deeply nested tables.
|
||||
---@param obj string.buffer.data
|
||||
---@return string.buffer
|
||||
function buf:encode(obj) end
|
||||
|
||||
|
||||
--- De-serializes one object from the buffer.
|
||||
---
|
||||
--- The returned object may be any of the supported Lua types — even `nil`.
|
||||
---
|
||||
--- This function may throw an error when fed with malformed or incomplete encoded data.
|
||||
---
|
||||
--- Leaves any left-over data in the buffer.
|
||||
---
|
||||
--- Attempting to de-serialize an FFI type will throw an error, if the FFI library is not built-in or has not been loaded, yet.
|
||||
---
|
||||
---@return string.buffer.data|nil obj
|
||||
function buf:decode() end
|
||||
|
||||
|
||||
--- Serializes (encodes) the Lua object obj
|
||||
---
|
||||
--- This function may throw an error when attempting to serialize unsupported object types, circular references or deeply nested tables.
|
||||
---@param obj string.buffer.data
|
||||
---@return string
|
||||
function buffer.encode(obj) end
|
||||
|
||||
--- De-serializes (decodes) the string to a Lua object
|
||||
---
|
||||
--- The returned object may be any of the supported Lua types — even `nil`.
|
||||
---
|
||||
--- Throws an error when fed with malformed or incomplete encoded data.
|
||||
--- Throws an error when there's left-over data after decoding a single top-level object.
|
||||
---
|
||||
--- Attempting to de-serialize an FFI type will throw an error, if the FFI library is not built-in or has not been loaded, yet.
|
||||
---
|
||||
---@param str string
|
||||
---@return string.buffer.data|nil obj
|
||||
function buffer.decode(str) end
|
||||
|
||||
|
||||
|
||||
|
||||
--- Creates a new buffer object.
|
||||
---
|
||||
--- The optional size argument ensures a minimum initial buffer size. This is strictly an optimization when the required buffer size is known beforehand. The buffer space will grow as needed, in any case.
|
||||
---
|
||||
--- The optional table options sets various serialization options.
|
||||
---
|
||||
---@param size? integer
|
||||
---@param options? string.buffer.serialization.opts
|
||||
---@return string.buffer
|
||||
function buffer.new(size, options) end
|
||||
|
||||
--- Serialization Options
|
||||
---
|
||||
--- The options table passed to buffer.new() may contain the following members (all optional):
|
||||
---
|
||||
--- * `dict` is a Lua table holding a dictionary of strings that commonly occur as table keys of objects you are serializing. These keys are compactly encoded as indexes during serialization. A well chosen dictionary saves space and improves serialization performance.
|
||||
---
|
||||
--- * `metatable` is a Lua table holding a dictionary of metatables for the table objects you are serializing.
|
||||
---
|
||||
--- dict needs to be an array of strings and metatable needs to be an array of tables. Both starting at index 1 and without holes (no nil inbetween). The tables are anchored in the buffer object and internally modified into a two-way index (don't do this yourself, just pass a plain array). The tables must not be modified after they have been passed to buffer.new().
|
||||
---
|
||||
--- The dict and metatable tables used by the encoder and decoder must be the same. Put the most common entries at the front. Extend at the end to ensure backwards-compatibility — older encodings can then still be read. You may also set some indexes to false to explicitly drop backwards-compatibility. Old encodings that use these indexes will throw an error when decoded.
|
||||
---
|
||||
--- Metatables that are not found in the metatable dictionary are ignored when encoding. Decoding returns a table with a nil metatable.
|
||||
---
|
||||
--- Note: parsing and preparation of the options table is somewhat expensive. Create a buffer object only once and recycle it for multiple uses. Avoid mixing encoder and decoder buffers, since the buf:set() method frees the already allocated buffer space:
|
||||
---
|
||||
--- ```lua
|
||||
--- local options = {
|
||||
--- dict = { "commonly", "used", "string", "keys" },
|
||||
--- }
|
||||
--- local buf_enc = buffer.new(options)
|
||||
--- local buf_dec = buffer.new(options)
|
||||
---
|
||||
--- local function encode(obj)
|
||||
--- return buf_enc:reset():encode(obj):get()
|
||||
--- end
|
||||
---
|
||||
--- local function decode(str)
|
||||
--- return buf_dec:set(str):decode()
|
||||
--- end
|
||||
--- ```
|
||||
---@class string.buffer.serialization.opts
|
||||
---@field dict string[]
|
||||
---@field metatable table[]
|
||||
|
||||
|
||||
return buffer
|
|
@ -1,154 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table)
|
||||
---
|
||||
---@class tablelib
|
||||
table = {}
|
||||
|
||||
---
|
||||
---Given a list where all elements are strings or numbers, returns the string `list[i]..sep..list[i+1] ··· sep..list[j]`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.concat)
|
||||
---
|
||||
---@param list table
|
||||
---@param sep? string
|
||||
---@param i? integer
|
||||
---@param j? integer
|
||||
---@return string
|
||||
---@nodiscard
|
||||
function table.concat(list, sep, i, j) end
|
||||
|
||||
---
|
||||
---Inserts element `value` at position `pos` in `list`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.insert)
|
||||
---
|
||||
---@overload fun(list: table, value: any)
|
||||
---@param list table
|
||||
---@param pos integer
|
||||
---@param value any
|
||||
function table.insert(list, pos, value) end
|
||||
|
||||
---@version <5.1
|
||||
---
|
||||
---Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.maxn)
|
||||
---
|
||||
---@param table table
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
function table.maxn(table) end
|
||||
|
||||
---@version >5.3
|
||||
---
|
||||
---Moves elements from table `a1` to table `a2`.
|
||||
---```lua
|
||||
---a2[t],··· =
|
||||
---a1[f],···,a1[e]
|
||||
---return a2
|
||||
---```
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.move)
|
||||
---
|
||||
---@param a1 table
|
||||
---@param f integer
|
||||
---@param e integer
|
||||
---@param t integer
|
||||
---@param a2? table
|
||||
---@return table a2
|
||||
function table.move(a1, f, e, t, a2) end
|
||||
|
||||
---@version >5.2
|
||||
---
|
||||
---Returns a new table with all arguments stored into keys `1`, `2`, etc. and with a field `"n"` with the total number of arguments.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.pack)
|
||||
---
|
||||
---@return table
|
||||
---@nodiscard
|
||||
function table.pack(...) end
|
||||
|
||||
---
|
||||
---Removes from `list` the element at position `pos`, returning the value of the removed element.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.remove)
|
||||
---
|
||||
---@param list table
|
||||
---@param pos? integer
|
||||
---@return any
|
||||
function table.remove(list, pos) end
|
||||
|
||||
---
|
||||
---Sorts list elements in a given order, *in-place*, from `list[1]` to `list[#list]`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.sort)
|
||||
---
|
||||
---@generic T
|
||||
---@param list T[]
|
||||
---@param comp? fun(a: T, b: T):boolean
|
||||
function table.sort(list, comp) end
|
||||
|
||||
---@version >5.2
|
||||
---
|
||||
---Returns the elements from the given list. This function is equivalent to
|
||||
---```lua
|
||||
--- return list[i], list[i+1], ···, list[j]
|
||||
---```
|
||||
---By default, `i` is `1` and `j` is `#list`.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.unpack)
|
||||
---
|
||||
---@generic T
|
||||
---@param list T[]
|
||||
---@param i? integer
|
||||
---@param j? integer
|
||||
---@return T ...
|
||||
---@nodiscard
|
||||
function table.unpack(list, i, j) end
|
||||
|
||||
---@version <5.1, JIT
|
||||
---
|
||||
---Executes the given f over all elements of table. For each element, f is called with the index and respective value as arguments. If f returns a non-nil value, then the loop is broken, and this value is returned as the final value of foreach.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.foreach)
|
||||
---
|
||||
---@generic T
|
||||
---@param list any
|
||||
---@param callback fun(key: string, value: any):T|nil
|
||||
---@return T|nil
|
||||
---@deprecated
|
||||
function table.foreach(list, callback) end
|
||||
|
||||
---@version <5.1, JIT
|
||||
---
|
||||
---Executes the given f over the numerical indices of table. For each index, f is called with the index and respective value as arguments. Indices are visited in sequential order, from 1 to n, where n is the size of the table. If f returns a non-nil value, then the loop is broken and this value is returned as the result of foreachi.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.foreachi)
|
||||
---
|
||||
---@generic T
|
||||
---@param list any
|
||||
---@param callback fun(key: string, value: any):T|nil
|
||||
---@return T|nil
|
||||
---@deprecated
|
||||
function table.foreachi(list, callback) end
|
||||
|
||||
---@version <5.1, JIT
|
||||
---
|
||||
---Returns the number of elements in the table. This function is equivalent to `#list`.
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.getn)
|
||||
---
|
||||
---@generic T
|
||||
---@param list T[]
|
||||
---@return integer
|
||||
---@nodiscard
|
||||
---@deprecated
|
||||
function table.getn(list) end
|
||||
|
||||
return table
|
|
@ -1,17 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---@version JIT
|
||||
---
|
||||
---This clears all keys and values from a table, but preserves the allocated array/hash sizes. This is useful when a table, which is linked from multiple places, needs to be cleared and/or when recycling a table for use by the same context. This avoids managing backlinks, saves an allocation and the overhead of incremental array/hash part growth. The function needs to be required before use.
|
||||
---```lua
|
||||
--- require("table.clear").
|
||||
---```
|
||||
---Please note this function is meant for very specific situations. In most cases it's better to replace the (usually single) link with a new table and let the GC do its work.
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.clear)
|
||||
---
|
||||
---@param tab table
|
||||
local function clear(tab) end
|
||||
|
||||
return clear
|
|
@ -1,18 +0,0 @@
|
|||
---@meta
|
||||
|
||||
---@version JIT
|
||||
---
|
||||
---This creates a pre-sized table, just like the C API equivalent `lua_createtable()`. This is useful for big tables if the final table size is known and automatic table resizing is too expensive. `narray` parameter specifies the number of array-like items, and `nhash` parameter specifies the number of hash-like items. The function needs to be required before use.
|
||||
---```lua
|
||||
--- require("table.new")
|
||||
---```
|
||||
---
|
||||
---
|
||||
---[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-table.new)
|
||||
---
|
||||
---@param narray integer
|
||||
---@param nhash integer
|
||||
---@return table
|
||||
local function new(narray, nhash) end
|
||||
|
||||
return new
|
Loading…
Reference in a new issue