Skip to content

Conversation

@lu-zero
Copy link

@lu-zero lu-zero commented Dec 20, 2024

It provides more flexibility and it has a better default for cli tools.

Fixes #1107.

// Linuxi & macOS: ~/.config/vimclap/config.toml
// Windows: ~\AppData\Roaming\Vim\Vim Clap\config\config.toml
let config_file_path = Dirs::project().config_dir().join("config.toml");
let config_file_path = Dirs::config_dir().join("config.toml");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the support of ~/Library/Application\ Support/org.vim.Vim-Clap/config.toml on macOS? This will ensure compatibility for existing macOS users, preventing any complaints about their current configuration file no longer working.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add the logic to look on both places.

@lu-zero
Copy link
Author

lu-zero commented Dec 21, 2024

This will have to wait until lunacookies/etcetera#22 lands and is released if you want to stay compatible.

It provides more flexibility and it has a better default for cli tools.

Fixes liuchengxu#1107.
@liuchengxu
Copy link
Owner

The upstream PR has been pending for quite a while, I don't mind using a patched dep of etcetera since it seems to be stable if you would like this PR merged into vim-clap sooner. CI failure is unrelated and can be ignored.

@lu-zero
Copy link
Author

lu-zero commented Dec 23, 2024

I wished to not bring in another custom version of the same logic, if only the directories author weren't that stubborn...

@utkarshgupta137
Copy link

v0.9 released with fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could be possible to switch to use etcetera and use Xdg paths on macOS as well

3 participants