diff --git a/CHANGELOG.md b/CHANGELOG.md index 86b996f4..a95c0220 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.9.5] - 2023-12-05 + +### Fixed + +- `:RustLsp flyCheck`: Typo in LSP client request, + causing the command to do nothing. + ## [3.9.4] - 2023-12-01 ### Fixed diff --git a/README.md b/README.md index d1ab486d..438cb795 100644 --- a/README.md +++ b/README.md @@ -373,6 +373,12 @@ for more configuration options. vim.cmd.RustLsp { 'flyCheck', 'clear' } vim.cmd.RustLsp { 'flyCheck', 'cancel' } ``` + + > [!NOTE] + > + > This is only useful if you set the option, + > `['rust-analzyer'].checkOnSave = false`. + diff --git a/lua/rustaceanvim/commands/fly_check.lua b/lua/rustaceanvim/commands/fly_check.lua index 82e77c07..79f0f757 100644 --- a/lua/rustaceanvim/commands/fly_check.lua +++ b/lua/rustaceanvim/commands/fly_check.lua @@ -7,7 +7,7 @@ local rl = require('rustaceanvim.rust_analyzer') ---@param cmd flyCheckCommand function M.fly_check(cmd) local params = cmd == 'run' and vim.lsp.util.make_text_document_params() or {} - rl.notify('rust-analyzer/' .. cmd .. 'FlyCheck', params) + rl.notify('rust-analyzer/' .. cmd .. 'Flycheck', params) end return M.fly_check