配置文件可以参考helix的lsp配置文件helix/languages.toml at master · helix-editor/helix
例如添加go的lsp配置
使用M-x lsp-copilot-open-config-file
打开配置文件
[language-server.gopls]
command = "gopls"
[language-server.gopls.config.hints]
assignVariableTypes = true
compositeLiteralFields = true
constantValues = true
functionTypeParameters = true
parameterNames = true
rangeVariableTypes = true
[[language]]
name = "go"
file-types = ["go"]
language-id = "go"
roots = ["go.work", "go.mod"]
language-servers = ["gopls"]
然后执行lsp-copilot-restart
即可生效