init
This commit is contained in:
commit
c3b7f039e3
4 changed files with 367 additions and 0 deletions
48
languages.toml
Normal file
48
languages.toml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# introduce new language server
|
||||
[language-server.scls]
|
||||
command = "simple-completion-language-server"
|
||||
|
||||
[language-server.scls.config]
|
||||
feature_words = false # enable completion by word
|
||||
feature_snippets = true # enable snippets
|
||||
snippets_first = true # completions will return before snippets by default
|
||||
snippets_inline_by_word_tail = false # suggest snippets by WORD tail, for example text `xsq|` become `x^2|` when snippet `sq` has body `^2`
|
||||
feature_unicode_input = false # enable "unicode input"
|
||||
feature_paths = false # enable path completion
|
||||
feature_citations = false # enable citation completion (only on `citation` feature enabled)
|
||||
|
||||
|
||||
# write logs to /tmp/completion.log
|
||||
[language-server.scls.environment]
|
||||
RUST_LOG = "info,simple-completion-language-server=info"
|
||||
LOG_FILE = "/tmp/completion.log"
|
||||
|
||||
[language-server.godot]
|
||||
command = "nc"
|
||||
args = [ "127.0.0.1", "6005"]
|
||||
|
||||
[[language]]
|
||||
name = "gdscript"
|
||||
language-servers = [ "godot" ]
|
||||
|
||||
[[language]]
|
||||
name = "go"
|
||||
auto-format = true
|
||||
language-servers = ["scls", "gopls", "golangci-lint2-langserver"]
|
||||
formatter = { command = "goimports" }
|
||||
|
||||
[language-server.golangci-lint2-langserver]
|
||||
command = "golangci-lint-langserver"
|
||||
|
||||
[language-server.golangci-lint2-langserver.config]
|
||||
command = [
|
||||
"golangci-lint",
|
||||
"run",
|
||||
"--output.json.path",
|
||||
"stdout",
|
||||
"--show-stats=false",
|
||||
"--issues-exit-code=1",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue