Adding the migration to pure files only

This commit is contained in:
2026-03-24 22:31:49 -04:00
parent 69c8061b8e
commit 75de3198cd
46 changed files with 576 additions and 653 deletions

View File

@@ -8,7 +8,7 @@ function M.get_config()
if codetyper_loaded and codetyper.get_config then
return codetyper.get_config() or {}
end
local defaults = require("codetyper.config.defaults")
local defaults = require("codetyper.constants.defaults")
return defaults.get_defaults()
end
@@ -36,4 +36,12 @@ function M.count_diff_entries()
return #state.entries
end
function M.get_ui_dimensions()
local ui = vim.api.nvim_list_uis()[1]
if ui then
return ui.width, ui.height
end
return vim.o.columns, vim.o.lines
end
return M

View File

@@ -0,0 +1,5 @@
local function now()
return vim.uv and vim.uv.now() or (os.clock() * 1000)
end
return now