feat(log): add easy way to open log

This commit is contained in:
Smirnov Oleksandr 2024-05-02 23:41:29 +03:00
parent 385b951938
commit 5ea71be825
4 changed files with 31 additions and 23 deletions

View file

@ -9,6 +9,7 @@
---@tag gopher.nvim-table-of-contents
---@toc
local log = require "gopher._utils.log"
local tags = require "gopher.struct_tags"
local tests = require "gopher.gotests"
local gocmd = require("gopher._utils.runner.gocmd").run
@ -21,7 +22,12 @@ local gopher = {}
--- Calling this function is optional, if you ok with default settings. Look |gopher.nvim.config-defaults|
---
---@usage `require("gopher").setup {}` (replace `{}` with your `config` table)
gopher.setup = require("gopher.config").setup
gopher.setup = function(user_config)
log.debug "setting up config"
log.debug(vim.inspect(user_config))
require("gopher.config").setup(user_config)
end
---@toc_entry Install dependencies
---@tag gopher.nvim-install-deps