feat: editing mode (#281)

This commit is contained in:
yetone
2024-08-27 22:44:40 +08:00
committed by GitHub
parent 971e61b2c8
commit fe6518f6de
6 changed files with 404 additions and 25 deletions

View File

@@ -410,4 +410,10 @@ function M.is_type(type_name, v)
end
-- luacheck: pop
---@param code string
---@return string
function M.get_indentation(code)
return code:match("^%s*") or ""
end
return M