summaryrefslogtreecommitdiff
path: root/cmd/hexai-lsp-server/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/hexai-lsp-server/main.go')
-rw-r--r--cmd/hexai-lsp-server/main.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/cmd/hexai-lsp-server/main.go b/cmd/hexai-lsp-server/main.go
index e3e458d..6577bc2 100644
--- a/cmd/hexai-lsp-server/main.go
+++ b/cmd/hexai-lsp-server/main.go
@@ -17,7 +17,7 @@ import (
func main() {
defaultLog := defaultLogPath()
logPath := flag.String("log", defaultLog, "path to log file (optional)")
- defaultCfg := defaultConfigPath()
+ defaultCfg := appconfig.DefaultConfigPath()
configPath := flag.String("config", "", fmt.Sprintf("path to config file (default: %s)", defaultCfg))
showVersion := flag.Bool("version", false, "print version and exit")
flag.Parse()
@@ -32,14 +32,6 @@ func main() {
}
}
-func defaultConfigPath() string {
- path, err := appconfig.ConfigPath()
- if err != nil {
- return "$XDG_CONFIG_HOME/hexai/config.toml"
- }
- return path
-}
-
// defaultLogPath returns the default LSP log file path in the state directory.
// Falls back to the system temp directory if the state directory is unavailable.
func defaultLogPath() string {