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

Feature Request - Quiet mode #354

Closed
danhab99 opened this issue Jul 16, 2021 · 3 comments
Closed

Feature Request - Quiet mode #354

danhab99 opened this issue Jul 16, 2021 · 3 comments

Comments

@danhab99
Copy link

Possible duplicate of #265

Could we have an option to disable status outputs. I have neoformat set to format on save and it adds another keystroke to me saving files.

If we could have this:

Neoformat: formatter definition for prettier not found
Press ENTER or type command to continue

and this:

Neoformat: no change necessary with prettier
Press ENTER or type command to continue

optionally suppressed I think it would improve our QOL. Thoughts?

@Hubro
Copy link

Hubro commented Aug 15, 2021

@danhab99 Vim already has a good solution for this, namely :silent!. This is in my ftplugin/javascript.vim:

au BufWritePre <buffer> silent! Neoformat prettier

@danhab99
Copy link
Author

Fantastic! Thank's alot :)

@ekaj2
Copy link

ekaj2 commented Sep 28, 2023

Probably better to do this now:

-- lua
vim.g.neoformat_only_msg_on_error = 1

or

" Vim script
let g:neoformat_only_msg_on_error = 1

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

3 participants