From ae98c4e34d861eeba32f4e045087e835760a886f Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Tue, 6 Aug 2024 03:39:50 +0200 Subject: [PATCH] Autocmd fix for :Py --- lua/autocmd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autocmd.lua b/lua/autocmd.lua index 322cfce..2d6b31d 100644 --- a/lua/autocmd.lua +++ b/lua/autocmd.lua @@ -4,7 +4,7 @@ -- These should be self-explanatory vim.api.nvim_create_user_command('Cd', 'cd %:h', { desc = 'Change directory to the current file' }) -vim.api.nvim_create_user_command('Py', 'python %', { desc = 'Execute python file' }) +vim.api.nvim_create_user_command('Py', '!python %', { desc = 'Execute python file' }) -- Instantly move help window to the right -- This is almost certainly a hacky way to do this)