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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue