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

"Neoformat: No changes necessary" #265

Open
ballenwillis opened this issue Dec 14, 2019 · 10 comments
Open

"Neoformat: No changes necessary" #265

ballenwillis opened this issue Dec 14, 2019 · 10 comments

Comments

@ballenwillis
Copy link

ballenwillis commented Dec 14, 2019

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.

image

@sbrocos
Copy link

sbrocos commented Jul 22, 2020

I have the same Problem in SPACEVIM, in OSX

@ccqstark
Copy link

@sbrocos Me too!

@Johan-Palacios
Copy link

Johan-Palacios commented Jun 15, 2021

I have the same issue

@markdestouches
Copy link

The same issue with c files while python formatters work just fine.

@Johan-Palacios
Copy link

Johan-Palacios commented Jun 28, 2021

Bros I can solve this problems when i installed the native language servers in my PC and neoformat works well

@olivewong
Copy link

I have this too :/

@sheldond
Copy link

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.

@olivewong
Copy link

I fixed by using :Neoformat :prettier instead of :Neoformat and double check prettier is installed npm install -g prettier

@alk-mandrianarijaona
Copy link

@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 :/

@ghost
Copy link

ghost commented Dec 24, 2022

@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.

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

No branches or pull requests

8 participants