This commit is contained in:
c 2023-06-20 22:57:06 -05:00
parent 81bc1b2a12
commit e5574c7658
3 changed files with 11 additions and 1 deletions

View File

@ -89,7 +89,8 @@ keymap('n', '<F7>', ":lua require'dap'.step_over()<CR>", default_ops)
keymap('n', '<Leader>D', ":lua require'dapui'.toggle()<CR>", default_ops)
-- REPL
keymap('v', '<Leader>x', ':ToggleTermSendVisualLines 100<CR><CR>', default_ops)
keymap('v', '<Leader>x', ':ToggleTermSendVisualLines 100<CR><CR><CR>', default_ops)
keymap('n', '<Leader>x', ':ToggleTermSendCurrentLine 100<CR><CR>', default_ops)
-- Helpful stuff for ToggleTerm, taken from their docs
@ -108,8 +109,13 @@ vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
-- Toggle a custom Terminal with ipython
local Terminal = require('toggleterm.terminal').Terminal
<<<<<<< Updated upstream
local ipython = Terminal:new({ cmd="ipython", direction="horizontal", count="100"})
local function _ipython_toggle()
=======
local ipython = Terminal:new({ cmd="ipython", direction="horizontal", count=100})
function _ipython_toggle()
>>>>>>> Stashed changes
ipython:toggle()
end
keymap('n', '<F1>', ":lua _ipython_toggle()<CR><Cmd>wincmd k<CR>", default_ops)

View File

@ -17,7 +17,10 @@ def subtract(x, y) -> int:
return: int
"""
print(f"{x} - {y} = {x-y}\n")
print("ahother break")
return x + y
# open terminal 100: f1
add(1, 2)
subtract(1, 2)

View File

@ -8,6 +8,7 @@ fi
#USE_POWERLINE="true"
# aliases
alias python="/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
alias cp="cp -i"
alias more="less"
alias weather="curl wttr.in"