nix/home/config/nvim/module/plugin/lsp/Rust.nix

22 lines
360 B
Nix

{ ... }:
{
text = ''
local lspconfig = require("lspconfig")
lspconfig.rust_analyzer.setup {
settings = {
["rust-analyzer"] = {
rustfmt = {
extraArgs = {
"--config",
"hard_tabs=true",
}
}
},
},
}
vim.g.rust_recommended_style = false
'';
}