Skip to content

Commit

Permalink
fix: expose target scommand in :RustAnalyzer command completion (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 authored Nov 25, 2024
1 parent 6e742b9 commit b4e35d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rustaceanvim/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ vim.api.nvim_create_user_command('RustAnalyzer', rust_analyzer_cmd, {
complete = function(arg_lead, cmdline, _)
local clients = rust_analyzer.get_active_rustaceanvim_clients()
---@type RustAnalyzerCmd[]
local commands = #clients == 0 and { 'start' } or { 'stop', 'restart', 'reloadSettings' }
local commands = #clients == 0 and { 'start' } or { 'stop', 'restart', 'reloadSettings', 'target' }
if cmdline:match('^RustAnalyzer%s+%w*$') then
return vim.tbl_filter(function(command)
return command:find(arg_lead) ~= nil
Expand Down

0 comments on commit b4e35d5

Please sign in to comment.