ipython stuf

This commit is contained in:
cmccay 2023-06-20 15:52:39 -05:00
parent 02d561140c
commit 71a9e05668
4 changed files with 17 additions and 14 deletions

View File

@ -18,8 +18,8 @@ require("clint") -- loads lua/clint/init.lua
require('dap-python').setup('~/.virtualenvs/debugpy/bin/python') require('dap-python').setup('~/.virtualenvs/debugpy/bin/python')
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.cmd.colorscheme 'kanagawa' vim.cmd.colorscheme 'ayu'
-- vim.cmd("highlight Normal guibg=none") vim.cmd("highlight Normal guibg=none")
-- vim.cmd("highlight NonText guibg=none") vim.cmd("highlight NonText guibg=none")
-- vim.cmd("highlight Normal ctermbg=none") vim.cmd("highlight Normal ctermbg=none")
-- vim.cmd("highlight NonText ctermbg=none") vim.cmd("highlight NonText ctermbg=none")

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 }) -- vim.api.nvim_create_autocmd("BufEnter", { command = "echo 'Hello'", group = group })
-- for a moment, highlight the text that was yanked -- for a moment, highlight the text that was yanked
@ -14,3 +14,5 @@ vim.api.nvim_create_autocmd('BufEnter', {
group = group, group = group,
command = "MarkdownPreview", command = "MarkdownPreview",
}) })
-- when opening a python file, try to start the virtualenv of the current project

View File

@ -109,7 +109,7 @@ vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
-- Toggle a custom Terminal with ipython -- Toggle a custom Terminal with ipython
local Terminal = require('toggleterm.terminal').Terminal 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() function _ipython_toggle()
ipython:toggle() ipython:toggle()
end end

View File

@ -128,19 +128,20 @@ return {
}, },
}, },
-- Object Explorer -- -- Object Explorer
{ 'simrat39/symbols-outline.nvim', -- { 'simrat39/symbols-outline.nvim',
config = { -- config = {
auto_preview = true, -- auto_preview = true,
} -- }
}, -- },
-- Terminal -- Terminal
{ 'akinsho/toggleterm.nvim', { 'akinsho/toggleterm.nvim',
version = "*", version = "*",
config = { config = {
open_mapping = [[<c-\>]], open_mapping = [[<c-\>]],
direction = 'horizontal' direction = 'horizontal',
insert_mappings = true
} }
}, },