mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-07 10:16:03 -10:00
go.mod and go.work opened as plain text: their language definitions had no ui-mode, so no CodeMirror language loaded. Add a GoMod mode (a small stream parser): directives as keywords, module paths as strings, versions as numbers, // comments; shared by go.mod and go.work. Co-authored-by: elfadl <[email protected]>
13 lines
290 B
TOML
13 lines
290 B
TOML
id = "go.work"
|
|
name = "Go Workspace"
|
|
filenames = ["go.work"]
|
|
line-comment = "//"
|
|
indent = { tab-size = 4, insert-spaces = false }
|
|
ui-mode = "GoMod"
|
|
|
|
[[language-servers]]
|
|
name = "gopls"
|
|
command = "gopls"
|
|
root-markers = ["go.work"]
|
|
install-hint = "go install golang.org/x/tools/gopls@latest"
|