feat: automatically restart lsp server (opt-in)
This commit is contained in:
parent
440a7cc432
commit
7c198a1b36
7 changed files with 105 additions and 69 deletions
|
|
@ -44,6 +44,12 @@ to install them synchronously pass `{sync = true}` as an argument.
|
|||
|
||||
|
||||
==============================================================================
|
||||
------------------------------------------------------------------------------
|
||||
*config*
|
||||
`config`
|
||||
Type ~
|
||||
`(gopher.Config)`
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*gopher.nvim-config*
|
||||
`default_config`
|
||||
|
|
@ -57,9 +63,12 @@ to install them synchronously pass `{sync = true}` as an argument.
|
|||
---@type number
|
||||
timeout = 2000,
|
||||
|
||||
--- timeout for running installer commands(e.g :GoDepsInstall, :GoDepsInstallSync)
|
||||
-- timeout for running installer commands(e.g :GoDepsInstall, :GoDepsInstallSync)
|
||||
installer_timeout = 999999,
|
||||
|
||||
-- restart gopls server after commands like `:GoMod`, `:GoGet`, `:GoWork`
|
||||
restart_lsp = false,
|
||||
|
||||
-- user specified paths to binaries
|
||||
---@class gopher.ConfigCommand
|
||||
commands = {
|
||||
|
|
@ -96,6 +105,8 @@ to install them synchronously pass `{sync = true}` as an argument.
|
|||
<
|
||||
Class ~
|
||||
{gopher.Config}
|
||||
Fields ~
|
||||
{setup} `(fun(user_config?: gopher.Config))`
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue