Updated a bunch of configs

This commit is contained in:
Lol3rrr
2026-01-20 11:59:23 +01:00
parent 6f5ffca775
commit ea27234ab1
6 changed files with 31 additions and 25 deletions

View File

@@ -1,9 +1,9 @@
return {{
"Saecki/crates.nvim",
event = { "BufRead Cargo.toml" },
opts = {
src = {
cmp = { enabled = true },
},
},
--event = { "BufRead Cargo.toml" },
--opts = {
-- src = {
-- cmp = { enabled = true },
-- },
--},
}}

View File

@@ -5,7 +5,7 @@ return {{
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
"3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
lazy = false
}}

View File

@@ -12,8 +12,10 @@ return {{
"Saecki/crates.nvim",
event = { "BufRead Cargo.toml" },
opts = {
src = {
cmp = { enabled = true },
completion = {
cmp = {
enabled = true,
},
},
},
},

View File

@@ -4,7 +4,9 @@ return {{
ft = { "rs" },
lazy = false,
opts = {
tools = {},
server = {
status_notify_level = false,
on_attach = function(_, bufnr)
vim.keymap.set("n", "<leader>cR", function()
vim.cmd.RustLsp("codeAction")
@@ -21,12 +23,14 @@ return {{
loadOutDirsFromCheck = true,
runBuildScripts = true,
},
-- Add clippy lints for Rust.
checkOnSave = {
allFeatures = true,
command = "clippy",
extraArgs = { "--no-deps" },
},
-- They changed the configuration, so it's only checkOnSave with a boolean
-- # TODO: Figure out how we can enable clippy lints again
--checkOnSave = {
-- allFeatures = true,
-- command = "clippy",
-- extraArgs = { "--no-deps" },
--},
checkOnSave = true,
procMacro = {
enable = true,
ignored = {