From 8dbc3d67c3379e7e1a0f90fae1c493bc8cafcf42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sat, 30 Jul 2022 10:51:03 +0200 Subject: [PATCH] Enable clippy for rust_analyzer --- symlinks/config/nvim/lua/esensar/lsp/servers.lua | 9 +++++++++ symlinks/config/systemd/user/mbsync.service | 2 ++ 2 files changed, 11 insertions(+) diff --git a/symlinks/config/nvim/lua/esensar/lsp/servers.lua b/symlinks/config/nvim/lua/esensar/lsp/servers.lua index 4d2f04b..6faf895 100644 --- a/symlinks/config/nvim/lua/esensar/lsp/servers.lua +++ b/symlinks/config/nvim/lua/esensar/lsp/servers.lua @@ -26,6 +26,15 @@ local configuration_overrides = { lemminx = { cmd = { "lemminx" }, }, + rust_analyzer = { + settings = { + ["rust-analyzer"] = { + checkOnSave = { + command = "clippy" + }, + } + } + } } -- Lsp default language servers diff --git a/symlinks/config/systemd/user/mbsync.service b/symlinks/config/systemd/user/mbsync.service index 03beacf..d3993a0 100644 --- a/symlinks/config/systemd/user/mbsync.service +++ b/symlinks/config/systemd/user/mbsync.service @@ -1,5 +1,7 @@ [Unit] Description=Mailbox synchronization service +After=network-online.target +Wants=network-online.target [Service] Type=oneshot