Creating file config and read

This commit is contained in:
Lucas Miguel
2024-12-02 00:56:15 -03:00
parent 00a88d0dea
commit 260ff045de
5 changed files with 137 additions and 0 deletions

23
lua/nvim-sync-ftp.lua Normal file
View File

@@ -0,0 +1,23 @@
local cli = require("nvim-sync-ftp.cli")
local M = {}
function M.setup(opts)
vim.api.nvim_create_user_command("SyncFtpMapToRemote", function (params)
cli.MapToRemote(params)
end,{
force = true,
nargs = '*',
range = true,
})
vim.api.nvim_create_user_command("SyncFtpUpload", function(params)
cli.Upload()
end,{
force = true,
nargs = '*',
range = true,
})
end
return M