You've already forked dotfiles
fix: Moving the LSP configs out of the Mason file, using the new vim.lsp.config way of configuring LSPs, adding the 'after' config directory for LSP specific configs that override/extend those in the 'lsp' dir and fit with the new configuration way of NVIM 0.11+, moving shortcuts to lspconfig instead of Mason, removing the rename custom function in telescope and using the LSP based function.
This commit is contained in:
21
nvim/after/lsp/rust_analyzer.lua
Normal file
21
nvim/after/lsp/rust_analyzer.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
settings = {
|
||||
['rust_analyzer'] = {
|
||||
check = {
|
||||
command = 'clippy',
|
||||
extraArgs = {
|
||||
'--',
|
||||
'-D clippy::all',
|
||||
'-W clippy::pedantic',
|
||||
'-W clippy::restriction'
|
||||
},
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
experimental = {
|
||||
enable = true,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user