docs: install deps

This commit is contained in:
Smirnov Oleksandr 2024-03-30 14:48:20 +02:00
parent 801913fe06
commit e601ce75ab
2 changed files with 15 additions and 0 deletions

View file

@ -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* *gopher.nvim-table-of-contents*
Table of Contents Table of Contents
Setup....................................................|gopher.nvim-setup| Setup....................................................|gopher.nvim-setup|
Install dependencies..............................|gopher.nvim-install-deps|
Configuration...........................................|gopher.nvim-config| Configuration...........................................|gopher.nvim-config|
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
@ -21,6 +22,13 @@ Calling this function is optional, if you ok with default settings. Look |gopher
Usage ~ Usage ~
`require("gopher").setup {}` (replace `{}` with your `config` table) `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.
============================================================================== ==============================================================================
------------------------------------------------------------------------------ ------------------------------------------------------------------------------

View file

@ -22,7 +22,14 @@ local gopher = {}
--- ---
---@usage `require("gopher").setup {}` (replace `{}` with your `config` table) ---@usage `require("gopher").setup {}` (replace `{}` with your `config` table)
gopher.setup = require("gopher.config").setup 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.install_deps = require("gopher.installer").install_deps
gopher.impl = require("gopher.impl").impl gopher.impl = require("gopher.impl").impl
gopher.iferr = require("gopher.iferr").iferr gopher.iferr = require("gopher.iferr").iferr
gopher.comment = require "gopher.comment" gopher.comment = require "gopher.comment"