refactor/comamnds dont require .setup (#101)
* refactor(commands)!: change the way of disabling commands BREAKING CHANGE: not it does not require calling .setup() * docs: update docs
This commit is contained in:
parent
7ab717e981
commit
7e33602065
6 changed files with 101 additions and 103 deletions
|
|
@ -11,6 +11,7 @@ Table of Contents
|
|||
Setup....................................................|gopher.nvim-setup|
|
||||
Install dependencies..............................|gopher.nvim-install-deps|
|
||||
Configuration...........................................|gopher.nvim-config|
|
||||
Commands..............................................|gopher.nvim-commands|
|
||||
Modify struct tags.................................|gopher.nvim-struct-tags|
|
||||
Auto implementation of interface methods..................|gopher.nvim-impl|
|
||||
Generating unit tests boilerplate......................|gopher.nvim-gotests|
|
||||
|
|
@ -36,7 +37,8 @@ Parameters ~
|
|||
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 to use lua api.
|
||||
By default dependencies will be installed asynchronously, to install them synchronously pass `{sync = true}` as an argument.
|
||||
By default dependencies will be installed asynchronously,
|
||||
to install them synchronously pass `{sync = true}` as an argument.
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
|
@ -61,10 +63,6 @@ You can look at default options |gopher.nvim-config-defaults|
|
|||
---@type number
|
||||
timeout = 2000,
|
||||
|
||||
--- whether to setup plugin commands or not
|
||||
---@type boolean
|
||||
setup_commands = true,
|
||||
|
||||
-- user specified paths to binaries
|
||||
---@class gopher.ConfigCommand
|
||||
commands = {
|
||||
|
|
@ -103,6 +101,14 @@ Class ~
|
|||
{gopher.Config}
|
||||
|
||||
|
||||
==============================================================================
|
||||
------------------------------------------------------------------------------
|
||||
*gopher.nvim-commands*
|
||||
|
||||
If don't want to automatically register plugins' commands,
|
||||
you can set `vim.g.gopher_register_commands` to `false`, before loading the plugin.
|
||||
|
||||
|
||||
==============================================================================
|
||||
------------------------------------------------------------------------------
|
||||
*gopher.nvim-struct-tags*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue