Configure synchronization of files and directories through a plugin.
no need for log.print
2 files changed, +1 -11
+0-6lua/syncmap/log.lua
| @@ -37,10 +37,4 @@ function M.error(msg) | ||
| 37 | 37 | M.log(msg, vim.log.levels.ERROR) |
| 38 | 38 | end |
| 39 | 39 | |
| 40 | ----Prints a message regardless of log level | |
| 41 | ----@param msg any | |
| 42 | -function M.print(msg) | |
| 43 | - vim.print("[syncmap] " .. msg) | |
| 44 | -end | |
| 45 | - | |
| 46 | 40 | return M |
+1-5lua/syncmap/state.lua
| @@ -138,11 +138,7 @@ end | ||
| 138 | 138 | |
| 139 | 139 | ---List active |
| 140 | 140 | function M.show_active() |
| 141 | - local s = "" | |
| 142 | - for tag, pid in M.active do | |
| 143 | - s = string.format("%d: %s", pid, tag) | |
| 144 | - end | |
| 145 | - log.print("Current active watchers\n" .. s) | |
| 141 | + vim.print(M.active) | |
| 146 | 142 | end |
| 147 | 143 | |
| 148 | 144 | ---Shows the current options of Syncmap |