update(nvim): enable inlay hints in rust_analyzer and add cargo.features = "all"

This commit is contained in:
qwjyh 2025-02-23 03:15:04 +09:00
parent 4f2f2187f3
commit 29ad5b91bf

View file

@ -769,15 +769,21 @@ lspconfig.tinymist.setup {
}
lspconfig.rust_analyzer.setup {
on_attach = on_attach,
on_attach = function(client, bufnr)
on_attach(client, bufnr)
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
end,
capabilities = capabilities,
settings = {
['rust-analyzer'] = {
cargo = {
features = "all",
},
check = {
command = "clippy",
}
}
}
},
},
},
}
local lss = { "pyright", "texlab", --[[ "ccls", ]] "clangd", "ts_ls", --[["tailwindcss"]] "hls", "cmake",