Skip to content

Commit

Permalink
fix: remove (deprecated?) vim-slime option
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Jun 5, 2023
1 parent 1bf09f2 commit 896c432
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/plugins/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ return {
{
'jpalardy/vim-slime',
init = function()

vim.b['quarto_is_' .. 'python' .. '_chunk'] = false
Quarto_is_in_python_chunk = function()
require 'otter.tools.functions'.is_otter_language_context('python')
end
Expand All @@ -536,7 +538,7 @@ return {
function SlimeOverride_EscapeText_quarto(text)
call v:lua.Quarto_is_in_python_chunk()
if exists('g:slime_python_ipython') && len(split(a:text,"\n")) > 1 && b:quarto_is_python_chunk
return ["%cpaste -q", "\n", g:slime_dispatch_ipython_pause, a:text, "--", "\n"]
return ["%cpaste -q", "\n", a:text, "--", "\n"]
else
return a:text
end
Expand All @@ -552,7 +554,7 @@ return {
vim.b.slime_config = { jobid = vim.g.slime_last_channel }
end

vim.b.slime_cell_delimiter = "#%%"
vim.b.slime_cell_delimiter = "# %%"

-- slime, neovvim terminal
vim.g.slime_target = "neovim"
Expand Down

0 comments on commit 896c432

Please sign in to comment.