docs: update (#103)
* chore: add @dochide annotation - it's easier to distinguish @private and something i dont want to see in docs * docs: update * refactor: move thing out to utils * fix: lua-ls error * fixup! refactor: move thing out to utils * docs: update
This commit is contained in:
parent
592fe82760
commit
c0b2834652
13 changed files with 107 additions and 112 deletions
|
|
@ -7,6 +7,7 @@ local utils = {}
|
|||
function utils.notify(msg, lvl)
|
||||
lvl = lvl or vim.log.levels.INFO
|
||||
vim.notify(msg, lvl, {
|
||||
---@diagnostic disable-next-line:undefined-field
|
||||
title = c.___plugin_name,
|
||||
})
|
||||
log.debug(msg)
|
||||
|
|
@ -30,4 +31,11 @@ function utils.remove_empty_lines(t)
|
|||
return res
|
||||
end
|
||||
|
||||
---@param s string
|
||||
---@return string
|
||||
function utils.trimend(s)
|
||||
local r, _ = string.gsub(s, "%s+$", "")
|
||||
return r
|
||||
end
|
||||
|
||||
return utils
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ local c = require "gopher.config"
|
|||
|
||||
local config = {
|
||||
-- Name of the plugin. Prepended to log messages
|
||||
---@diagnostic disable-next-line:undefined-field
|
||||
name = c.___plugin_name,
|
||||
|
||||
-- Should print the output to neovim while running
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue