-
Hi! I'm having a hard time having molten work as a code runner for quarto, and keep getting the message that the runner is not initialized. I have a configuration file for molten and quarto that allow me to initialize the kernel, see the output and run basic evaluation with But whenever I try to run with quarto I get the message Any ideas what could be wrong? thanks {
'quarto-dev/quarto-nvim',
ft = { 'quarto', 'markdown' },
dev = false,
dependencies = {
'jmbuhr/otter.nvim',
},
keys = {
{"n", "<localleader>rc", desc = "run cell" },
{"n", "<localleader>ra", desc = "run cell and above" },
{"n", "<localleader>rA", desc = "run all cells" },
{"n", "<localleader>rl", desc = "run line" },
{"v", "<localleader>r", desc = "run visual range" },
},
config = {
lspFeatures = {
-- NOTE: put whatever languages you want here:
languages = { "r", "python", "rust" },
chunks = "all",
diagnostics = {
enabled = true,
triggers = { "BufWritePost" },
},
completion = {
enabled = true,
},
},
keymap = {
-- NOTE: setup your own keymaps:
hover = "H",
definition = "gd",
rename = "<leader>rn",
references = "gr",
format = "<leader>gf",
},
codeRunner = {
enabled = true,
default_method = "molten",
ft_runners = {
markdown = 'molten',
python = 'molten'
}
},
}
},
{
'benlubas/molten-nvim',
lazy = false,
build = ':UpdateRemotePlugins',
init = function()
vim.g.molten_image_provider = 'image.nvim'
vim.g.molten_output_win_max_height = 20
vim.g.molten_auto_open_output = false
end,
keys = {
{ '<leader>mi', ':MoltenInit<cr>', desc = '[m]olten [i]nit' },
{
'<leader>mv',
':<C-u>MoltenEvaluateVisual<cr>',
mode = 'v',
desc = 'molten eval visual',
},
{'<localleader>me', ':MoltenEvaluateOperator<CR>', desc = 'evaluate operator'},
{'<localleader>mo', ':noautocmd MoltenEnterOutput<CR>', desc = 'open output window' },
{'<localleader>mr', ':MoltenReevaluateCell<CR>', desc = 're-eval cell' },
{'<localleader>mv', ':<C-u>MoltenEvaluateVisual<CR>gv', desc = 'execute visual selection' },
{'<localleader>mho', ':MoltenHideOutput<CR>', desc = 'close output window' },
{'<localleader>md', ':MoltenDelete<CR>', desc = 'delete Molten cell' },
{'<localleader>mi', ':MoltenInit<CR>', desc = 'init molten' },
},
}, thanks for the help File l'm using for my neovim is here; https://github.com/victorhg/neovim_config/blob/main/lua/plugins/datascience.lua |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Gotta run |
Beta Was this translation helpful? Give feedback.
Gotta run
:QuartoActivate
in your markdown file (or create an ftplugin or autocommand to do it for you)