WIP: force move cursor

This commit is contained in:
Steven Arcangeli 2023-02-27 11:43:51 -08:00
parent b36ba91b7a
commit 33d5701a8d
5 changed files with 72 additions and 30 deletions

View file

@ -138,9 +138,12 @@ M.get_trash_url = function()
return M.adapter_to_scheme.files .. fs.os_to_posix_path(M.trash)
end
---@param scheme string
---@param scheme nil|string
---@return nil|oil.Adapter
M.get_adapter_by_scheme = function(scheme)
if not scheme then
return nil
end
if not vim.endswith(scheme, "://") then
local pieces = vim.split(scheme, "://", { plain = true })
if #pieces <= 2 then