diff --git a/lua/nvim-sync-ftp.lua b/lua/nvim-sync-ftp.lua index fc61723..b014659 100644 --- a/lua/nvim-sync-ftp.lua +++ b/lua/nvim-sync-ftp.lua @@ -24,7 +24,7 @@ function M.setup(opts) if next(config) ~= nil then -- Config for on save - if config.upload_to_save == true then + if config.upload_to_save == 'true' then vim.api.nvim_create_augroup("SyncFtpUploadGroup", { clear = true }) vim.api.nvim_create_autocmd("BufWritePost", { @@ -39,7 +39,6 @@ function M.setup(opts) end - end return M