From 47d52cd635162a845d2f0a847865766cf9446d01 Mon Sep 17 00:00:00 2001 From: home Date: Tue, 21 Nov 2023 14:20:25 +0300 Subject: [PATCH] nvim : rustfmt place braces on newline. --- .config/nvim/lua/plugin/lsp/rust.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/plugin/lsp/rust.lua b/.config/nvim/lua/plugin/lsp/rust.lua index 6515760..111eb6b 100644 --- a/.config/nvim/lua/plugin/lsp/rust.lua +++ b/.config/nvim/lua/plugin/lsp/rust.lua @@ -1,10 +1,10 @@ -local lspconfig = require('lspconfig') +local lspconfig = require("lspconfig") lspconfig.rust_analyzer.setup { settings = { - ['rust-analyzer'] = { + ["rust-analyzer"] = { rustfmt = { - extraArgs = { '--config', 'tab_spaces=2' } + extraArgs = { "--config", "tab_spaces=2", "brace_style=AlwaysNextLine", "control_brace_style=AlwaysNextLine" } } }, },