From f254665710efb0ddf85171442f4adb3914a734de Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 11 Apr 2024 21:56:37 +0100 Subject: [PATCH] Add completion to :Mkdir --- lua/commands.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/commands.lua b/lua/commands.lua index 086c8e9..e0d7e7d 100644 --- a/lua/commands.lua +++ b/lua/commands.lua @@ -110,7 +110,11 @@ vim.api.nvim_create_user_command('Mkdir', function(opts) flags = 'p' end vim.fn.mkdir(opts.args, flags) -end, { bang = true, nargs = 1 }) +end, { + bang = true, + nargs = 1, + complete = 'file', +}) -- :Rg grep for the given string and fuzzy find the results, bang to enable -- regex in given string