@@ -3841,33 +3841,24 @@ func testRuntime(v *Nvim) func(*testing.T) {
3841
3841
switch runtime .GOOS {
3842
3842
case "linux" , "darwin" :
3843
3843
if nvimVersion .Minor <= 5 {
3844
- home , err := os .UserHomeDir ()
3845
- if err != nil {
3846
- t .Fatal (err )
3847
- }
3848
3844
oldRuntimePaths := []string {
3849
- filepath .Join (home , ".config" , "nvim" ),
3850
3845
filepath .Join ("/etc" , "xdg" , "nvim" ),
3851
- filepath .Join (home , ".local " , "share " , "nvim" , "site " ),
3846
+ filepath .Join ("/etc " , "xdg " , "nvim" , "after " ),
3852
3847
filepath .Join ("/usr" , "local" , "share" , "nvim" , "site" ),
3848
+ filepath .Join ("/usr" , "local" , "share" , "nvim" , "site" , "after" ),
3853
3849
filepath .Join ("/usr" , "share" , "nvim" , "site" ),
3854
3850
filepath .Join ("/usr" , "share" , "nvim" , "site" , "after" ),
3855
- filepath .Join ("/usr" , "local" , "share" , "nvim" , "site" , "after" ),
3856
- filepath .Join (home , ".local" , "share" , "nvim" , "site" , "after" ),
3857
- filepath .Join ("/etc" , "xdg" , "nvim" , "after" ),
3858
- filepath .Join (home , ".config" , "nvim" , "after" ),
3859
3851
}
3860
3852
wantPaths = append (wantPaths , oldRuntimePaths ... )
3861
3853
}
3862
-
3863
3854
case "windows" :
3864
3855
if nvimVersion .Minor <= 5 {
3865
3856
localAppDataDir := os .Getenv ("LocalAppData" )
3866
3857
oldRuntimePaths := []string {
3867
3858
filepath .Join (localAppDataDir , "nvim" ),
3859
+ filepath .Join (localAppDataDir , "nvim" , "after" ),
3868
3860
filepath .Join (localAppDataDir , "nvim-data" , "site" ),
3869
3861
filepath .Join (localAppDataDir , "nvim-data" , "site" , "after" ),
3870
- filepath .Join (localAppDataDir , "nvim" , "after" ),
3871
3862
}
3872
3863
wantPaths = append (wantPaths , oldRuntimePaths ... )
3873
3864
}
0 commit comments