diff --git a/doc/gopher.nvim.txt b/doc/gopher.nvim.txt index ef49f4c..8b533df 100644 --- a/doc/gopher.nvim.txt +++ b/doc/gopher.nvim.txt @@ -9,6 +9,7 @@ It's not an LSP tool, the main goal of this plugin is add go tooling support in *gopher.nvim-table-of-contents* Table of Contents Setup....................................................|gopher.nvim-setup| + Install dependencies..............................|gopher.nvim-install-deps| Configuration...........................................|gopher.nvim-config| ------------------------------------------------------------------------------ @@ -21,6 +22,13 @@ Calling this function is optional, if you ok with default settings. Look |gopher Usage ~ `require("gopher").setup {}` (replace `{}` with your `config` table) +------------------------------------------------------------------------------ + *gopher.nvim-install-deps* + `gopher.install_deps` +Gopher.nvim implements most of its features using third-party tools. +To install these tools, you can run `:GoInstallDeps` command +or call `require("gopher").install_deps()` if you want ues lua api. + ============================================================================== ------------------------------------------------------------------------------ diff --git a/lua/gopher/init.lua b/lua/gopher/init.lua index eda5018..df0d174 100644 --- a/lua/gopher/init.lua +++ b/lua/gopher/init.lua @@ -22,7 +22,14 @@ local gopher = {} --- ---@usage `require("gopher").setup {}` (replace `{}` with your `config` table) gopher.setup = require("gopher.config").setup + +---@toc_entry Install dependencies +---@tag gopher.nvim-install-deps +---@text Gopher.nvim implements most of its features using third-party tools. +--- To install these tools, you can run `:GoInstallDeps` command +--- or call `require("gopher").install_deps()` if you want ues lua api. gopher.install_deps = require("gopher.installer").install_deps + gopher.impl = require("gopher.impl").impl gopher.iferr = require("gopher.iferr").iferr gopher.comment = require "gopher.comment"