feat(log): add logger module
This commit is contained in:
parent
afb383c913
commit
4d2f9a23e0
2 changed files with 164 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ local config = {}
|
|||
local default_config = {
|
||||
--minidoc_replace_end
|
||||
|
||||
-- log level, you might consider using DEBUG or TRACE for degugging the plugin
|
||||
log_level = vim.log.levels.INFO,
|
||||
|
||||
-- user specified paths to binaries
|
||||
---@class gopher.ConfigCommand
|
||||
commands = {
|
||||
|
|
@ -62,6 +65,14 @@ local default_config = {
|
|||
---@private
|
||||
local _config = default_config
|
||||
|
||||
-- I am kinda secret so don't tell anyone about me
|
||||
-- even dont use me
|
||||
--
|
||||
-- if you don't belive me that i am secret see
|
||||
-- the line below it says @private
|
||||
---@private
|
||||
config.___plugin_name = "gopher.nvim"
|
||||
|
||||
---@param user_config? gopher.Config
|
||||
function config.setup(user_config)
|
||||
_config = vim.tbl_deep_extend("force", default_config, user_config or {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue