update(nvim): enable inlay hints in rust_analyzer and add cargo.features = "all"
This commit is contained in:
parent
4f2f2187f3
commit
29ad5b91bf
1 changed files with 10 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue