Skip to content

Commit

Permalink
fix(configuration): join local coc-settings.json (#4854)
Browse files Browse the repository at this point in the history
fix invalid path on Windows

Closes fannheyward/coc-pyright#1044
  • Loading branch information
fannheyward authored Feb 21, 2024
1 parent 02c4a31 commit 45f8a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configuration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default class Configurations {

public folderToConfigfile(folder: string): string | undefined {
if (sameFile(folder, os.homedir())) return undefined
let filepath = path.join(folder, `.vim/${CONFIG_FILE_NAME}`)
let filepath = path.join(folder, '.vim', CONFIG_FILE_NAME)
if (sameFile(filepath, this.userConfigFile)) return undefined
return filepath
}
Expand Down

0 comments on commit 45f8a11

Please sign in to comment.