Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct LuaLanguageServerLadPlugin {
impl Default for LuaLanguageServerLadPlugin {
fn default() -> Self {
Self {
filename: PathBuf::from("bindings.lua"),
filename: PathBuf::from("bindings.d.lua"),
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{%- endfor -%}
{%- for return in function.returns -%}
---@return {{ self::lua_type(ty=return, return_position=true) }}
function {% if module.class -%}{%- if function.has_self -%}{{module.class.name}}:{%- else -%}{{module.class.name}}.{%- endif -%}{%- endif -%} {{ function.name }}(
function {% if module.class -%}{{module.class.name}}.{%- endif -%} {{ function.name }}(
{%- for param in function.params -%}
{% if param.variadic -%}... {% endif-%}{{ param.name }} {%- if not loop.last -%},{%- endif -%}
{%- endfor -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
example_ladfile/test.lad.json
**/bindings.lua
**/bindings.d.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PlainStructType = {}
---@param p1 PlainStructType
---@param p2 integer
---@return any
function PlainStructType:plain_struct_function(p1,p2) end
function PlainStructType.plain_struct_function(p1,p2) end



Expand Down
Loading