Auto Indent inside curly brackets change size #333
Replies: 1 comment
-
It looks like this is an issue that's only occuring in Rust files and specifically due to the language server Rust Analyzer. I found this discussion here ( rust-lang/rust-analyzer#1191 ). Looks like the LSP server itself just doesnt allow this to be changed. Ive tested and this does not happen in C and other types of files |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I currently have LSP Zero in my nvim configuration I have here
https://gitlab.com/othmanabdulsalam/neovim-config/-/blob/main/after/plugin/lsp.lua?ref_type=heads
At the moment I have tabs set to two spaces instead of four due to preference. I want the same effect when I go inside curly brackets
{}
and I press enter for it to just auto indent by the same 2 spaces instead of 4.This
instead of
Any help is greatly appreciated. thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions