Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Can not find global .editorconfig file!' #148

Open
Migacz85 opened this issue Feb 28, 2019 · 2 comments
Open

'Can not find global .editorconfig file!' #148

Migacz85 opened this issue Feb 28, 2019 · 2 comments
Labels

Comments

@Migacz85
Copy link

Migacz85 commented Feb 28, 2019

When running:
:call BeautifierApplyConfig()

'Can not find global .editorconfig file!'

When I exit vim and enter again - new config is loaded. But when I change .editorconfig I don't have new values for options. I need to exit vim, and again enter to see new results how to fix that?

@maksimr
Copy link
Owner

maksimr commented Feb 28, 2019

You should use :EditorConfigReload from editorconfig plugin.

BeautifierApplyConfig() used inside plugin to apply settings for global/default/home config file on start.
We try to find .editorconfig file in these places
'$HOME/.editorconfig', '$HOME/.vim/.editorconfig', '$HOME/.config/nvim/.editorconfig', s:plugin_Root_directory.'/.editorconfig'.
If you really need this function and you don't have / want file in places above you can pass custom path to this function as first argument

@Migacz85
Copy link
Author

Migacz85 commented Feb 28, 2019

Running :EditorConfigReload don't load new settings on the go.
I have this file in $HOME/.vim/.editorconfig
Is updating only when opening new instance of vim.

@maksimr maksimr reopened this Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants