hey i dont know if this is the right place to ask this but i am having this issue where i want the indentation in my C code to be 4 spaces but when i format the code with null-ls with astyle with lua vim.lsp.buf.format{ async = true } it formats the code to 2 spaces i know this is the fault of clang-format because when i put // clang-format off on top of the code it formats it correctly
Heres a video showcasing my issue -
hey i dont know if this is the right place to ask this but i am having this issue where i want the indentation in my C code to be 4 spaces but when i format the code with
null-ls
withastyle
withlua vim.lsp.buf.format{ async = true }
it formats the code to 2 spaces i know this is the fault ofclang-format
because when i put// clang-format off
on top of the code it formats it correctly Heres a video showcasing my issue -https://user-images.githubusercontent.com/53911515/212450761-6a3299cc-24ca-4847-ab0b-f956e2e95928.mp4
is there a way to disable
clang-format
by default?