feat(comment): add comment on on interface method

This commit is contained in:
Oleksandr Smirnov 2025-09-04 14:17:58 +03:00
parent 26207b1928
commit 3cd45c45a3
No known key found for this signature in database
9 changed files with 91 additions and 13 deletions

View file

@ -3,7 +3,7 @@ local log = require "gopher._utils.log"
local utils = {}
---@param msg string
---@param lvl? number by default `vim.log.levels.INFO`
---@param lvl? integer by default `vim.log.levels.INFO`
function utils.notify(msg, lvl)
lvl = lvl or vim.log.levels.INFO
vim.notify(msg, lvl, {
@ -38,4 +38,13 @@ function utils.trimend(s)
return r
end
-- Since indentation can be spaces or tab, that's my hack around it
---@param line string
---@param indent integer
---@return string
function utils.indent(line, indent)
local char = string.sub(line, 1, 1)
return string.rep(char, indent)
end
return utils