feat: qol oss improvements
This commit is contained in:
parent
0b9a914f7e
commit
52bc53e4b5
7 changed files with 151 additions and 44 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue