SoloVim/lua/user/mason/settings/rust_analyzer.lua
2023-02-27 13:33:57 +02:00

20 lines
355 B
Lua

return {
tools = {
on_initialized = function()
vim.cmd([[
autocmd BufEnter,CursorHold,InsertLeave,BufWritePost *.rs silent! lua vim.lsp.codelens.refresh()
]])
end,
},
settings = {
["rust-analyzer"] = {
lens = {
enable = true,
},
checkOnSave = {
command = "clippy",
},
},
},
}