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