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

@ -13,7 +13,7 @@
local log = require "gopher._utils.log"
local tags = require "gopher.struct_tags"
local tests = require "gopher.gotests"
local gocmd = require("gopher._utils.gocmd").run
local go = require "gopher.go"
local gopher = {}
---@toc_entry Setup
@ -58,20 +58,9 @@ gopher.test = {
all = tests.all_tests,
}
gopher.get = function(...)
gocmd("get", ...)
end
gopher.mod = function(...)
gocmd("mod", ...)
end
gopher.generate = function(...)
gocmd("generate", ...)
end
gopher.work = function(...)
gocmd("work", ...)
end
gopher.get = go.get
gopher.mod = go.mod
gopher.work = go.work
gopher.generate = go.generate
return gopher