nvim : rustfmt place braces on newline.

This commit is contained in:
Dmitry Voronin 2023-11-21 14:20:25 +03:00
parent 9632588577
commit 47d52cd635

View file

@ -1,10 +1,10 @@
local lspconfig = require('lspconfig') local lspconfig = require("lspconfig")
lspconfig.rust_analyzer.setup { lspconfig.rust_analyzer.setup {
settings = { settings = {
['rust-analyzer'] = { ["rust-analyzer"] = {
rustfmt = { rustfmt = {
extraArgs = { '--config', 'tab_spaces=2' } extraArgs = { "--config", "tab_spaces=2", "brace_style=AlwaysNextLine", "control_brace_style=AlwaysNextLine" }
} }
}, },
}, },