feat: qol oss improvements

This commit is contained in:
Barrett Ruth 2026-02-02 17:01:22 -05:00
parent 0b9a914f7e
commit 52bc53e4b5
7 changed files with 151 additions and 44 deletions

19
lua/fugitive-ts/log.lua Normal file
View file

@ -0,0 +1,19 @@
local M = {}
local enabled = false
---@param val boolean
function M.set_enabled(val)
enabled = val
end
---@param msg string
---@param ... any
function M.dbg(msg, ...)
if not enabled then
return
end
vim.notify('[fugitive-ts] ' .. string.format(msg, ...), vim.log.levels.DEBUG)
end
return M