72 lines
2.8 KiB
TOML
72 lines
2.8 KiB
TOML
# time in seconds after which a rust-analyzer server instance with no clients
|
|
# connected will get killed to save system memory.
|
|
#
|
|
# you can set this option to `false` for infinite timeout
|
|
instance_timeout = 300 # after 5 minutes
|
|
|
|
# time in seconds how long to wait between the gc task checks for disconnected
|
|
# clients and possibly starts a timeout task. the value must be at least 1.
|
|
gc_interval = 10 # every 10 seconds
|
|
|
|
# ip address and port on which lspmux server listens
|
|
# or unix socket path on *nix operating systems
|
|
#
|
|
# ports below 1024 will typically require root privileges and should be
|
|
# avoided, the default was picked at random, this only needs to change if
|
|
# another application happens to collide with lspmux.
|
|
# listen = ["127.0.0.1", 27631] # localhost & some random unprivileged port
|
|
listen = "/run/user/1002/lspmux.sock" # unix socket
|
|
|
|
# ip address and port to which lspmux will connect to or unix socket path on
|
|
# *nix operating systems
|
|
#
|
|
# this should usually just match the value of `listen`
|
|
# connect = ["127.0.0.1", 27631] # same as `listen`
|
|
connect = "/run/user/1002/lspmux.sock" # same as `listen`
|
|
|
|
# default log filters
|
|
#
|
|
# RUST_LOG env variable overrides this option, both use the same syntax which
|
|
# is documented in the `env_logger` documentation here:
|
|
# <https://docs.rs/env_logger/0.9.0/env_logger/index.html#enabling-logging>
|
|
log_filters = "info" # off, error, warn, info, debug, trace
|
|
|
|
# filter environment variables passed from `lspmux client` to the server
|
|
#
|
|
# The filters are separated into positive and negative (prepended by `!`). For
|
|
# an environment variable to be passed its name must match at least one positive
|
|
# filter (the default filter set is ["*"] which passes everything), and must not
|
|
# match any negative filters. The full glob syntax is described in the `glob`
|
|
# crate documentation <https://docs.rs/glob/latest/glob/struct.Pattern.html>,
|
|
# except the leading `!` for negative patterns which is parsed and removed by
|
|
# `lspmux`.
|
|
#
|
|
# If the "PATH" variable is passed to the server then it'll be also used for
|
|
# looking up a relative argument to `--server-path`.
|
|
#
|
|
# One way to filter variables is to explicitly list every variable you want to
|
|
# pass to the language server.
|
|
# (This is backward compatible with behaviour prior to v0.3.1)
|
|
#
|
|
# Example: pass_environment = ["PATH", "LD_LIBRARY_PATH"]
|
|
#
|
|
# Another option is to allow everything and then use negative filters to exclude
|
|
# variables which cause problems - variables like WINDOWID set by the terminal
|
|
# emulator which would cause `lspmux` to spawn a new language server for every
|
|
# connected client, defeating its purpose.
|
|
#
|
|
# Example: pass_environment = ["*", "!DESKTOP_STARTUP_ID", "!WINDOWID", "!ALACRITTY_*"]
|
|
pass_environment = [
|
|
"PATH",
|
|
"*HOME", # * to include XDG stuff
|
|
|
|
"RA_*",
|
|
"RUST*",
|
|
"CARGO*",
|
|
"CLIPPY*",
|
|
|
|
"ALL_PROXY",
|
|
"DATABASE_URL",
|
|
"LD_LIBRARY_PATH",
|
|
]
|