mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Support adapter key on adapter
This commit is contained in:
parent
53f4595b4e
commit
497d152717
1 changed files with 3 additions and 0 deletions
|
|
@ -86,6 +86,9 @@ return {
|
|||
local meta = getmetatable(adapter)
|
||||
if adapter.setup then
|
||||
adapter.setup(config)
|
||||
elseif adapter.adapter then
|
||||
adapter.adapter(config)
|
||||
adapter = adapter.adapter
|
||||
elseif meta and meta.__call then
|
||||
adapter(config)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue