maksimr / vim-jsbeautify

vim plugin which formated javascript files by js-beautify
758 stars 68 forks source link

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

Open Migacz85 opened 5 years ago

Migacz85 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.