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 { 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, capabilities = capabilities,
settings = { settings = {
['rust-analyzer'] = { ['rust-analyzer'] = {
cargo = {
features = "all",
},
check = { check = {
command = "clippy", command = "clippy",
} },
} },
} },
} }
local lss = { "pyright", "texlab", --[[ "ccls", ]] "clangd", "ts_ls", --[["tailwindcss"]] "hls", "cmake", local lss = { "pyright", "texlab", --[[ "ccls", ]] "clangd", "ts_ls", --[["tailwindcss"]] "hls", "cmake",