neoformat
neoformat copied to clipboard
"Neoformat: No changes necessary"
In my vim config file I simple have
Plug 'sbdchd/neoformat'
On a JS file in react native, when I try to run :Neoformat
it gives me the message "Neoformat: No changes necessary". I've confirmed I save the file before running this.
According to my linter (and just by looking at it) some lines do not meet the prettier config, so I'm not sure why neoformat is saying my file is good.
I have the same Problem in SPACEVIM, in OSX
@sbrocos Me too!
I have the same issue
The same issue with c files while python formatters work just fine.
Bros I can solve this problems when i installed the native language servers in my PC and neoformat works well
I have this too :/
FYI I seem to receive this message when the formatting program exits with an error. In particular I saw it happening when I introduced a syntax error into my code, which meant the formatter cannot parse the code and returns with an error.
I fixed by using :Neoformat :prettier
instead of :Neoformat and double check prettier is installed npm install -g prettier
@olivewong, there should be no need to install prettier globally if it is installd in local project since setting let g:neoformat_try_node_exe = 1
. Yet in my case, prettier is installed locally but still not available in to execute :/
@olivewong no need for :prettier
in :Neoformat :prettier
if you let g:neoformat_try_node_exe=1
in your init.vim
file. but yes, you need to install prettier either globally or locally. you can also use autocmd BufWritePre *.js Neoformat
in your init.vim
to format your code on write (save) w/o having to do :Neoformat
every time.