Refactor: moving injects and start the parser

- moving all the inject functions inside its proper folder
- starting the parser refactoring
This commit is contained in:
2026-03-23 23:48:25 -04:00
parent 5fa7d7d347
commit d93fed165f
13 changed files with 394 additions and 366 deletions

View File

@@ -0,0 +1,14 @@
local M = {}
-- Get current codetyper configuration at call time
function M.get_config()
local ok, codetyper = pcall(require, "codetyper")
if ok and codetyper.get_config then
return codetyper.get_config() or {}
end
-- Fall back to defaults if codetyper isn't available
local defaults = require("codetyper.config.defaults")
return defaults.get_defaults()
end
return M