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