Nvim: update plugins with newer maintainers
This commit is contained in:
40
.config/nvim/lua/plugins/jupyter.lua
Normal file
40
.config/nvim/lua/plugins/jupyter.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
return {
|
||||
{
|
||||
"benlubas/molten-nvim",
|
||||
dependencies = { "3rd/image.nvim" },
|
||||
build = ":UpdateRemotePlugins",
|
||||
config = function()
|
||||
-- these are examples, not defaults. Please see the readme
|
||||
vim.g.molten_image_provider = "image.nvim"
|
||||
vim.g.molten_output_win_max_height = 20
|
||||
vim.g.molten_auto_open_output = false
|
||||
vim.keymap.set("n", "<localleader>R", ":MoltenEvaluateOperator<CR>",
|
||||
{ silent = true, noremap = true, desc = "run operator selection" })
|
||||
vim.keymap.set("n", "<localleader>rl", ":MoltenEvaluateLine<CR>",
|
||||
{ silent = true, noremap = true, desc = "evaluate line" })
|
||||
vim.keymap.set("n", "<localleader>rc", ":MoltenReevaluateCell<CR>",
|
||||
{ silent = true, noremap = true, desc = "re-evaluate cell" })
|
||||
vim.keymap.set("v", "<localleader>r", ":<C-u>MoltenEvaluateVisual<CR>gv",
|
||||
{ silent = true, noremap = true, desc = "evaluate visual selection" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
-- see the image.nvim readme for more information about configuring this plugin
|
||||
"3rd/image.nvim",
|
||||
opts = {
|
||||
backend = "kitty", -- whatever backend you would like to use
|
||||
max_width = 100,
|
||||
max_height = 12,
|
||||
max_height_window_percentage = math.huge,
|
||||
max_width_window_percentage = math.huge,
|
||||
window_overlap_clear_enabled = true, -- toggles images when windows are overlapped
|
||||
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
|
||||
},
|
||||
},
|
||||
{
|
||||
'goerz/jupytext.vim',
|
||||
config = function()
|
||||
vim.cmd([[ let g:jupytext_enable = 1 ]])
|
||||
end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user