feat: automatically restart lsp server (opt-in)

This commit is contained in:
Oleksandr Smirnov 2025-09-10 15:55:43 +03:00
parent 440a7cc432
commit 7c198a1b36
No known key found for this signature in database
7 changed files with 105 additions and 69 deletions

View file

@ -201,6 +201,12 @@ require("gopher").setup {
-- timeout for running internal commands
timeout = 2000,
-- timeout for running installer commands(e.g :GoDepsInstall, :GoDepsInstallSync)
installer_timeout = 999999,
-- restart gopls server after commands like `:GoMod`, `:GoGet`, `:GoWork`
restart_lsp = false,
commands = {
go = "go",
gomodifytags = "gomodifytags",