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

21 lines
300 B
Nix
Raw Normal View History

2024-11-04 04:37:29 +03:00
{ ... }: {
text = ''
local lspconfig = require("lspconfig")
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
lspconfig.rust_analyzer.setup {
settings = {
["rust-analyzer"] = {
rustfmt = {
extraArgs = {
"--config",
"hard_tabs=true",
}
}
},
},
}
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
vim.g.rust_recommended_style = false
'';
2024-04-06 03:03:58 +03:00
}