saving file using :w in neovim made the syntax little bit unreadable

So, i have this issue in Neovim, whenever i try to save a file using :w, the syntax (indentation, line etc) becomes "broken", what i mean is that, let's say I'm write a C++ file, in a line that has:
void somefunction() {
std::cout << "Hello, idk" << std::endl;
}
void somefunction() {
std::cout << "Hello, idk" << std::endl;
}
when i press :w, the part become little bit unreadable:
void somefunction() { std::cout << "Hello, idk" << std::endl; }
void somefunction() { std::cout << "Hello, idk" << std::endl; }
see, why?, can someone explain it to me? how do i fix it?
Solution:
go to the LazyVim repo and open a new thread in the discussions
Jump to solution
6 Replies
komo
komo2mo ago
do you have some kind of autoformat plugin?
RandomGuy
RandomGuyOP2mo ago
What plugin? there's lot of plugin and i don't know which one
RandomGuy
RandomGuyOP2mo ago
No description
No description
fisher
fisher2mo ago
this is a lazynvim problem not a termux problem you should ask them
RandomGuy
RandomGuyOP2mo ago
where?
Solution
komo
komo2mo ago
go to the LazyVim repo and open a new thread in the discussions

Did you find this page helpful?