From b4e35d5b18b77f0304c2949941ad75644cb9ce23 Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Mon, 25 Nov 2024 12:03:46 +0100 Subject: [PATCH] fix: expose `target` scommand in `:RustAnalyzer` command completion (#589) --- lua/rustaceanvim/lsp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/rustaceanvim/lsp/init.lua b/lua/rustaceanvim/lsp/init.lua index 07e9294e..d22837f5 100644 --- a/lua/rustaceanvim/lsp/init.lua +++ b/lua/rustaceanvim/lsp/init.lua @@ -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