-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add config and meta for diagnstic module
- Loading branch information
1 parent
65bdb50
commit 9915ca2
Showing
5 changed files
with
42 additions
and
1 deletion.
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
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,26 @@ | ||
local config = require("LspUI.config") | ||
local M = {} | ||
|
||
-- whether this module has initialized | ||
local is_initialized = false | ||
|
||
-- init for diagnostic | ||
M.init = function() | ||
if not config.options.diagnostic.enable then | ||
return | ||
end | ||
if is_initialized then | ||
return | ||
end | ||
|
||
is_initialized = true | ||
end | ||
|
||
--- @param arg "next"|"prev" | ||
M.run = function(arg) | ||
if not config.options.diagnostic.enable then | ||
return | ||
end | ||
end | ||
|
||
return M |
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,3 @@ | ||
local M = {} | ||
|
||
return M |