Compare commits
2 Commits
c62cbcd80d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 82af4d91d4 | |||
| f0378b57e6 |
@@ -32,7 +32,7 @@
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "6e51ca170563330e063720449c21f43e27ca0bc1" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" },
|
||||
"rustaceanvim": { "branch": "master", "commit": "12504405821c05874d2d1f6b5ec919f9808e2c99" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "f176232e7759c4f8abd923c21e3e5a5c76cd6837" },
|
||||
|
||||
@@ -167,12 +167,19 @@ return {
|
||||
},
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = "^4",
|
||||
version = "^6",
|
||||
lazy = false,
|
||||
ft = { "rust" },
|
||||
config = function()
|
||||
local rust_analyzer_path = vim.fn.trim(vim.fn.system("rustup which rust-analyzer"))
|
||||
if rust_analyzer_path == "" then
|
||||
vim.notify("rust-analyzer not found! Install it with: rustup component add rust-analyzer",
|
||||
vim.log.levels.ERROR)
|
||||
return
|
||||
end
|
||||
vim.g.rustaceanvim = {
|
||||
server = {
|
||||
cmd = { rust_analyzer_path },
|
||||
on_attach = lsp_attach,
|
||||
settings = {
|
||||
-- rust-analyzer language server configuration
|
||||
@@ -185,11 +192,7 @@ return {
|
||||
runBuildScripts = true,
|
||||
},
|
||||
-- Add clippy lints for Rust.
|
||||
checkOnSave = {
|
||||
allFeatures = true,
|
||||
command = "clippy",
|
||||
extraArgs = { "--no-deps" },
|
||||
},
|
||||
checkOnSave = true,
|
||||
-- TODO this breaks diagnostics, look into what can be done
|
||||
-- procMacro = {
|
||||
-- enable = true,
|
||||
|
||||
Reference in New Issue
Block a user