Merge branch 'master' into reorg

This commit is contained in:
c 2023-06-20 23:05:37 -05:00
commit dfb1a6cd6a
5 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,4 @@
local group = vim.api.nvim_create_augroup("clints_custom_autocmds", {})
local group = vim.api.nvim_create_augroup("clints_custom_autocmds", { clear = true })
-- vim.api.nvim_create_autocmd("BufEnter", { command = "echo 'Hello'", group = group })
-- for a moment, highlight the text that was yanked
@ -14,3 +14,5 @@ vim.api.nvim_create_autocmd('BufEnter', {
group = group,
command = "MarkdownPreview",
})
-- when opening a python file, try to start the virtualenv of the current project

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,10 @@ vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
-- Toggle a custom Terminal with ipython
local Terminal = require('toggleterm.terminal').Terminal
local ipython = Terminal:new({ cmd="ipython", direction="horizontal", count="100"})
local ipython = Terminal:new({ cmd="ipython", direction="horizontal", count=100})
function _ipython_toggle()
ipython:toggle()
end
keymap('n', '<F1>', ":lua _ipython_toggle()<CR><Cmd>wincmd k<CR>", default_ops)
keymap('i', '<F1>', "<Esc>:lua _ipython_toggle()<CR><Cmd>wincmd k<CR>", default_ops)
keymap('t', '<F1>', "<Esc><Cmd>wincmd k<CR>:lua _ipython_toggle()<CR>", default_ops)

View File

@ -150,7 +150,8 @@ return {
version = "*",
config = {
open_mapping = [[<c-\>]],
direction = 'horizontal'
direction = 'horizontal',
insert_mappings = true
}
},

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"