From dd3e7dc5acff9a6e86917462d8b6701875a83976 Mon Sep 17 00:00:00 2001 From: Ilya Grigoryev Date: Mon, 2 Oct 2023 22:08:57 +0300 Subject: [PATCH] fix(mappings): removed symbols i for go to Insert mode --- lua/other_modules/mappings/_pytest.lua | 2 -- lua/other_modules/mappings/running_file.lua | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/other_modules/mappings/_pytest.lua b/lua/other_modules/mappings/_pytest.lua index 77638c7..c3f724e 100644 --- a/lua/other_modules/mappings/_pytest.lua +++ b/lua/other_modules/mappings/_pytest.lua @@ -2,12 +2,10 @@ vim.keymap.set('n', ',pa', function() vim.cmd('split') vim.cmd('horizontal resize 7') vim.cmd.terminal('python -m pytest -s') - vim.cmd.startinsert() end, { desc = 'Run pytest for all tests' }) vim.keymap.set('n', ',pf', function() vim.cmd('split') vim.cmd('horizontal resize 7') vim.cmd.terminal('python -m pytest % -s') - vim.cmd.startinsert() end, { desc = 'Run pytest for current file' }) diff --git a/lua/other_modules/mappings/running_file.lua b/lua/other_modules/mappings/running_file.lua index 581484b..a52c7a5 100644 --- a/lua/other_modules/mappings/running_file.lua +++ b/lua/other_modules/mappings/running_file.lua @@ -1,6 +1,6 @@ local commands_filetypes = { - python = ':term python3 %i', - lua = ':term lua %i', + python = ':term python3 %', + lua = ':term lua %', } for filetype, command_for_run in pairs(commands_filetypes) do