@@ -351,10 +351,13 @@ func (c *Config) applyLSPDefaults() {
351351
352352 // Apply defaults to each LSP configuration
353353 for name, cfg := range c.LSP {
354− // Try to get defaults from powernap based on command name
354+ // Try to get defaults from powernap based on name or command name.
355355 base, ok := configManager.GetServer(name)
356356 if !ok {
357− continue
357+ base, ok = configManager.GetServer(cfg.Command)
358+ if !ok {
359+ continue
360+ }
358361 }
359362 if cfg.Options == nil {
360363 cfg.Options = base.Settings
@@ -368,6 +371,12 @@ func (c *Config) applyLSPDefaults() {
368371 if len(cfg.RootMarkers) == 0 {
369372 cfg.RootMarkers = base.RootMarkers
370373 }
374+ if len(cfg.Args) == 0 {
375+ cfg.Args = base.Args
376+ }
377+ if len(cfg.Env) == 0 {
378+ cfg.Env = base.Environment
379+ }
371380 // Update the config in the map
372381 c.LSP[name] = cfg
373382 }