Skip to content

Commit b4e35d5

Browse files
fix: expose target scommand in :RustAnalyzer command completion (#589)
1 parent 6e742b9 commit b4e35d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rustaceanvim/lsp/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ vim.api.nvim_create_user_command('RustAnalyzer', rust_analyzer_cmd, {
363363
complete = function(arg_lead, cmdline, _)
364364
local clients = rust_analyzer.get_active_rustaceanvim_clients()
365365
---@type RustAnalyzerCmd[]
366-
local commands = #clients == 0 and { 'start' } or { 'stop', 'restart', 'reloadSettings' }
366+
local commands = #clients == 0 and { 'start' } or { 'stop', 'restart', 'reloadSettings', 'target' }
367367
if cmdline:match('^RustAnalyzer%s+%w*$') then
368368
return vim.tbl_filter(function(command)
369369
return command:find(arg_lead) ~= nil

0 commit comments

Comments
 (0)