maksimr/vim-jsbeautify

'Can not find global .editorconfig file!'

Opened this issue · 2 comments

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?

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

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.