mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
fix(server): Improve file detection
This commit is contained in:
parent
1bb7956d75
commit
073cc00453
@ -120,14 +120,20 @@ func DetectLanguage(
|
||||
fallthrough
|
||||
case "file:///etc/ssh/ssh_config":
|
||||
return LanguageSSHDConfig, nil
|
||||
|
||||
case "file:///etc/fstab":
|
||||
return LanguageFstab, nil
|
||||
|
||||
// Darwin
|
||||
case "file:///private/etc/hosts":
|
||||
fallthrough
|
||||
case "file:///etc/hosts":
|
||||
return LanguageHosts, nil
|
||||
case "file:///etc/aliases":
|
||||
fallthrough
|
||||
|
||||
// Darwin
|
||||
case "file:///private/etc/aliases":
|
||||
fallthrough
|
||||
case "file:///etc/aliases":
|
||||
return LanguageAliases, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user