-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: provide a class for vim.api (#117)
* fix: provide a class for vim.api This works around a false-error in sumneko where it cannot determine the type of: local a = vim.api -- cannot infer type of a By defining an explicit class for vim.api we avoid this error. * fix: provide a class for vim.loop
- Loading branch information
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- This works around a false-error in sumneko where it cannot determine the | ||
-- type of: | ||
-- | ||
-- local a = vim.api -- cannot infer type of a | ||
-- | ||
-- By defining an explicit class for vim.api we avoid this error. | ||
|
||
---@class vim.api | ||
local api = vim.api | ||
vim.api = api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters