mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
New stylua version (#1555)
This commit is contained in:
parent
6ebeac9f03
commit
4571d57251
2 changed files with 5 additions and 9 deletions
|
|
@ -467,9 +467,8 @@ end
|
|||
-- A module should contain an attach and detach function.
|
||||
-- @param mod the module table
|
||||
function M.is_module(mod)
|
||||
return type(mod) == "table" and ((type(mod.attach) == "function" and type(mod.detach) == "function") or type(
|
||||
mod.module_path
|
||||
) == "string")
|
||||
return type(mod) == "table"
|
||||
and ((type(mod.attach) == "function" and type(mod.detach) == "function") or type(mod.module_path) == "string")
|
||||
end
|
||||
|
||||
-- Initializes built-in modules and any queued modules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue