Updated a bunch of configs
This commit is contained in:
@@ -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 },
|
||||
-- },
|
||||
--},
|
||||
}}
|
||||
|
||||
@@ -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
|
||||
}}
|
||||
|
||||
@@ -12,8 +12,10 @@ return {{
|
||||
"Saecki/crates.nvim",
|
||||
event = { "BufRead Cargo.toml" },
|
||||
opts = {
|
||||
src = {
|
||||
cmp = { enabled = true },
|
||||
completion = {
|
||||
cmp = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user