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

View file

@ -1,21 +1,6 @@
local M = {}
local debug_enabled = false
---@param enabled boolean
function M.set_debug(enabled)
debug_enabled = enabled
end
---@param msg string
---@param ... any
local function dbg(msg, ...)
if not debug_enabled then
return
end
local formatted = string.format(msg, ...)
vim.notify('[fugitive-ts] ' .. formatted, vim.log.levels.DEBUG)
end
local dbg = require('fugitive-ts.log').dbg
---@param bufnr integer
---@param ns integer