How to disable check on save ? #227
-
|
Is it possible to disable check on save, i would rather prefer triggering it manually |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Hey 👋 Yes. See Fly check in the readme's Usage section. |
Beta Was this translation helpful? Give feedback.
-
|
hi, thanks for quick responde but even though i have |
Beta Was this translation helpful? Give feedback.
-
|
@mrcjkb Is it possible to toggle this option on the fly? I've tried this: local function toggle_check_on_save()
local old_val = vim.g.rustaceanvim.server.default_settings["rust-analyzer"].checkOnSave
vim.g.rustaceanvim.server.default_settings["rust-analyzer"].checkOnSave = not old_val
local status = old_val and "diabled" or "enabled"
vim.notify("checkOnSave " .. status, vim.log.levels.INFO)
end
vim.keymap.set("n", "<leader>ts", toggle_check_on_save, { desc = "Toggle Check on Save" })But the value never changed. I guess it's readonly. |
Beta Was this translation helpful? Give feedback.

Just released a fix 😄