Skip to content

Commit

Permalink
fix(mappings): removed symbols i for go to Insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-grigoriev committed Oct 2, 2023
1 parent 133731d commit dd3e7dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lua/other_modules/mappings/_pytest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
4 changes: 2 additions & 2 deletions lua/other_modules/mappings/running_file.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local commands_filetypes = {
python = ':term python3 %<CR>i',
lua = ':term lua %<CR>i',
python = ':term python3 %<CR>',
lua = ':term lua %<CR>',
}

for filetype, command_for_run in pairs(commands_filetypes) do
Expand Down

0 comments on commit dd3e7dc

Please sign in to comment.