-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing fileops to file, other scaffolding
- Loading branch information
Showing
18 changed files
with
625 additions
and
223 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# `word.lua` Book Index | ||
|
||
## About | ||
|
||
## Links | ||
|
||
## Roadmap | ||
|
||
### For next version | ||
|
||
### For future versions | ||
|
||
### For later future | ||
|
||
## Bugs |
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
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,71 @@ | ||
local E = require('word.mod').create('integration', { | ||
'treesitter', | ||
'telescope', | ||
'blink', | ||
}) | ||
---TODO: imelement | ||
local E = require('word.mod').create('integration') | ||
|
||
--TODO: implement config to initialize sub integrations depending on user config | ||
|
||
---@class word.integration.Config | ||
E.config.public = { | ||
---@brief List of integrations to disable (relative to the integration dir) | ||
disabled = { | ||
|
||
}, | ||
---@brief List of integrations to enable (relative to the integration dir) | ||
enabled = { | ||
"telescope", | ||
"treesitter", | ||
} | ||
} | ||
|
||
---@class word.integration.Data | ||
E.data = { | ||
|
||
} | ||
|
||
---@param ext string | ||
---@return string | ||
E.data.get = function(ext) | ||
end | ||
|
||
---TODO: implement | ||
---Returns either a table of the loaded dependencies or nil of one is unsuccessful | ||
---@return table<string, any>|nil: the loaded dependency package | ||
---@param ext string: the integration module to check | ||
E.data.deps = function(ext) | ||
return nil | ||
end | ||
E.data.enabled = { | ||
} | ||
|
||
---@return boolean, nil|nil | ||
---@param ext string | ||
E.data.has = function(ext) | ||
return pcall(require, ext) | ||
end | ||
|
||
--- Generic setup function for integration submodules | ||
--- @param ext string: the integration to setup | ||
--- @param req table<string>: the modules required by the integration module | ||
--- @return word.mod.Setup | ||
E.data.setup = function(ext, req) | ||
local ok, e = E.data.has(ext) | ||
if ok then return { | ||
requies = req, | ||
loaded = true | ||
} | ||
else return { | ||
loaded = false | ||
} | ||
end | ||
end | ||
|
||
E.setup = function() | ||
local enabled = { | ||
|
||
} | ||
return { | ||
loaded = true, | ||
requires = enabled | ||
} | ||
end | ||
|
||
return E |
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,33 @@ | ||
local mod = require "word.mod" | ||
---@alias word.integration.trouble.Trouble word.Mod | ||
local T = mod.create("integration.trouble") | ||
local tok, t = pcall(require, "trouble") | ||
|
||
---@class word.integration.trouble.Data | ||
T.data = { | ||
|
||
} | ||
|
||
T.setup = function() | ||
if not tok then return { | ||
loadeed = false | ||
} | ||
else return { | ||
loaded = true, | ||
requires = { | ||
"ui", | ||
"ui.win", | ||
"ui.popup" | ||
} | ||
} | ||
end | ||
end | ||
|
||
---@class word.integration.trouble.Config | ||
T.config.public = { | ||
|
||
} | ||
|
||
|
||
|
||
return T |
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
File renamed without changes.
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
Empty file.
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
Oops, something went wrong.