Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/preview #1232

Merged
merged 3 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ else
LUALS_ARCH ?= x64
endif

LUALS_VERSION := 3.13.6
LUALS_VERSION := 3.13.8
LUALS := deps/lua-language-server-$(LUALS_VERSION)-$(shell uname -s)-$(LUALS_ARCH)
LUALS_TARBALL := $(LUALS).tar.gz
LUALS_URL := https://github.com/LuaLS/lua-language-server/releases/download/$(LUALS_VERSION)/$(notdir $(LUALS_TARBALL))
Expand Down
14 changes: 7 additions & 7 deletions gen_help.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ end
--- @param state EmmyState
--- @param doc_comment string
--- @param desc string[]
--- @param params {[1]: string, [2]: string, [3]: string[]}[]
--- @param returns {[1]: string, [2]: string, [3]: string[]}[]
--- @param params [string, string, string[]][]
--- @param returns [string, string, string[]][]
--- @return EmmyState
local function process_doc_comment(state, doc_comment, desc, params, returns)
if state == 'none' then
Expand Down Expand Up @@ -284,8 +284,8 @@ end

--- @param header string
--- @param block string[]
--- @param params {[1]: string, [2]: string, [3]: string[]}[]
--- @param returns {[1]: string, [2]: string, [3]: string[]}[]
--- @param params [string, string, string[]][]
--- @param returns [string, string, string[]][]
--- @param deprecated string?
--- @return string[]?
local function render_block(header, block, params, returns, deprecated)
Expand All @@ -306,7 +306,7 @@ local function render_block(header, block, params, returns, deprecated)

-- filter arguments beginning with '_'
params = vim.tbl_filter(
--- @param v {[1]: string, [2]: string, [3]: string[]}
--- @param v [string, string, string[]]
--- @return boolean
function(v)
return not startswith(v[1], '_')
Expand Down Expand Up @@ -354,8 +354,8 @@ local function gen_functions_doc_from_file(path)
--- @alias EmmyState 'none'|'in_block'|'in_param'|'in_return'
local state = 'none' --- @type EmmyState
local desc = {} --- @type string[]
local params = {} --- @type {[1]: string, [2]: string, [3]: string[]}[]
local returns = {} --- @type {[1]: string, [2]: string, [3]: string[]}[]
local params = {} --- @type [string, string, string[]][]
local returns = {} --- @type [string, string, string[]][]
local deprecated --- @type string?

for l in i do
Expand Down
Loading
Loading