nvim : rustfmt place braces on newline.
This commit is contained in:
parent
9632588577
commit
47d52cd635
|
@ -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" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue