Adding the migration to pure files only
This commit is contained in:
@@ -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
|
||||
|
||||
5
lua/codetyper/utils/get_now.lua
Normal file
5
lua/codetyper/utils/get_now.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
local function now()
|
||||
return vim.uv and vim.uv.now() or (os.clock() * 1000)
|
||||
end
|
||||
|
||||
return now
|
||||
Reference in New Issue
Block a user