14 lines
242 B
Lua
14 lines
242 B
Lua
local lspconfig = require('lspconfig')
|
|
|
|
lspconfig.rust_analyzer.setup {
|
|
settings = {
|
|
['rust-analyzer'] = {
|
|
rustfmt = {
|
|
extraArgs = { '--config', 'tab_spaces=2' }
|
|
}
|
|
},
|
|
},
|
|
}
|
|
|
|
vim.g.rust_recommended_style = false
|