File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ local M = {}
2
+
3
+ local function get_params ()
4
+ return {
5
+ textDocument = vim .lsp .util .make_text_document_params (),
6
+ }
7
+ end
8
+
9
+ function M .fly_check ()
10
+ local params = get_params ()
11
+ vim .lsp .buf_notify (0 , " rust-analyzer/runFlycheck" , params )
12
+ end
13
+
14
+ return M
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ function M.setup(opts)
55
55
local external_docs = require (" rust-tools.external_docs" )
56
56
M .external_docs = external_docs
57
57
58
+ local fly_check = require (" rust-tools.fly_check" )
59
+ M .fly_check = fly_check
60
+
58
61
local hover_actions = require (" rust-tools.hover_actions" )
59
62
M .hover_actions = hover_actions
60
63
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ local function setup_commands()
41
41
rt .debuggables .debuggables ,
42
42
},
43
43
RustExpandMacro = { rt .expand_macro .expand_macro },
44
+ RustFlyCheck = {
45
+ rt .fly_check .fly_check ,
46
+ },
44
47
RustOpenExternalDocs = {
45
48
rt .external_docs .open_external_docs ,
46
49
},
You can’t perform that action at this time.
0 commit comments