2024-11-14 10:26:02 +01:00
|
|
|
##############################
|
|
|
|
## Configuration for lsp-ai ##
|
|
|
|
##############################
|
|
|
|
|
|
|
|
[language-server.lsp-ai]
|
|
|
|
command = "lsp-ai"
|
|
|
|
|
|
|
|
[language-server.lsp-ai.config.memory]
|
|
|
|
file_store = { }
|
|
|
|
|
|
|
|
[language-server.lsp-ai.config.models.codestral]
|
|
|
|
type = "mistral_fim"
|
|
|
|
fim_endpoint = "https://api.mistral.ai/v1/fim/completions"
|
|
|
|
model = "codestral-latest"
|
|
|
|
auth_token_env_var_name = "CODESTRAL_API_KEY"
|
|
|
|
|
|
|
|
[language-server.lsp-ai.config.completion]
|
|
|
|
model = "codestral"
|
|
|
|
|
|
|
|
[language-server.lsp-ai.config.completion.parameters]
|
|
|
|
max_tokens = 64
|
|
|
|
max_context = 1024
|
|
|
|
|
|
|
|
|
|
|
|
#################################
|
|
|
|
## Configuration for languages ##
|
|
|
|
#################################
|
|
|
|
|
2024-01-27 13:05:51 +01:00
|
|
|
[[language]]
|
|
|
|
name = "rust"
|
|
|
|
|
|
|
|
[language.debugger]
|
|
|
|
command = "codelldb"
|
|
|
|
name = "codelldb"
|
|
|
|
port-arg = "--port {}"
|
|
|
|
transport = "tcp"
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
|
|
|
[[language.debugger.templates.completion]]
|
|
|
|
completion = "filename"
|
|
|
|
name = "binary"
|
|
|
|
|
|
|
|
[language.debugger.templates.args]
|
|
|
|
program = "{0}"
|
|
|
|
runInTerminal = false
|
|
|
|
|
2023-09-28 10:52:20 +02:00
|
|
|
[[language]]
|
|
|
|
name = "python"
|
2024-05-20 11:31:39 +02:00
|
|
|
language-servers = [ "pyright", "ruff" ]
|
|
|
|
|
|
|
|
[language-server.pyright.config.python.analysis]
|
|
|
|
typeCheckingMode = "basic"
|
|
|
|
|
|
|
|
[language-server.ruff]
|
|
|
|
command = "ruff-lsp"
|
|
|
|
|
|
|
|
[language-server.ruff.config.settings]
|
|
|
|
args = ["--ignore", "E501"]
|
|
|
|
|
|
|
|
[language.formatter]
|
|
|
|
command = "black"
|
|
|
|
args = ["--line-length", "88", "--quiet", "-"]
|
|
|
|
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "astro"
|
2023-09-28 10:52:20 +02:00
|
|
|
auto-format = true
|
2024-05-20 11:31:39 +02:00
|
|
|
language-servers = [ "astro-ls" ]
|
2023-09-28 10:52:20 +02:00
|
|
|
|
2023-11-03 09:41:37 +01:00
|
|
|
[language-server.astro-ls]
|
|
|
|
command = "astro-ls"
|
|
|
|
args = ["--stdio"]
|
2024-02-29 21:43:09 +01:00
|
|
|
config = {typescript = {tsdk = "/home/gaspard/.local/share/fnm/node-versions/v20.11.1/installation/lib/node_modules/typescript/lib"}, environment = "node"}
|
2024-01-31 09:08:08 +01:00
|
|
|
timeout = 2
|
2023-11-03 09:41:37 +01:00
|
|
|
|
2023-12-28 09:47:56 +01:00
|
|
|
[language-server.spyglass]
|
|
|
|
command="spyglassmc-language-server"
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "mcfunction"
|
|
|
|
scope = "source.mcfunction"
|
|
|
|
file-types = [ "mcfunction" ]
|
|
|
|
roots = [ "spyglass.json", ".spyglassrc.json" ]
|
|
|
|
language-servers = [ "spyglass" ]
|
|
|
|
|
2023-09-28 10:52:20 +02:00
|
|
|
[[language]]
|
|
|
|
name = "html"
|
|
|
|
formatter = { command = 'prettier', args = ["--parser", "html"] }
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "json"
|
|
|
|
formatter = { command = 'prettier', args = ["--parser", "json"] }
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "css"
|
|
|
|
formatter = { command = 'prettier', args = ["--parser", "css"] }
|
|
|
|
|
2024-02-06 16:59:47 +01:00
|
|
|
[[language]]
|
|
|
|
name = "scss"
|
|
|
|
formatter = { command = "prettier", args = ["--stdin-filepath", "dummy.scss"] }
|
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
|
|
|
language-servers = ["vscode-css-language-server"]
|
|
|
|
auto-format = true
|
|
|
|
|
2023-09-28 10:52:20 +02:00
|
|
|
[[language]]
|
|
|
|
name = "javascript"
|
|
|
|
formatter = { command = 'prettier', args = ["--parser", "typescript"] }
|
|
|
|
auto-format = true
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "typescript"
|
|
|
|
formatter = { command = 'prettier', args = ["--parser", "typescript"] }
|
|
|
|
auto-format = true
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "markdown"
|
|
|
|
formatter = { command = 'prettier', args = ["--parser", "markdown"] }
|
|
|
|
auto-format = true
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "hcl"
|
|
|
|
formatter = { command = 'terraform', args = ["fmt", "-"] }
|
|
|
|
auto-format = true
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "tfvars"
|
|
|
|
formatter = { command = 'terraform', args = ["fmt", "-"] }
|
|
|
|
auto-format = true
|