-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with LazyVim setup #84
Comments
Have you checked whether the plugin is actually loaded? You can do so by checking the LazyVim dashboard ( If the plugin is not loaded you may want to adjust the LazyVim configuration a little to load it according to your needs. For debugging you can just change it to: return{
{
"dccsillag/magma-nvim",
lazy = false,
},
} This should force the plugin to be loaded. Afterwards you can check the dashboard and You may also want to check whether your python provider is correctly setup and all the dependencies from here are installed properly. By the time, support for |
Thanks for the reply. Adding lazy = false didn't help. But ueberzug may be the issue. I do not have that dependency. And it doesn't seem like I can get it. Is there an alternative? Or a way around it? |
If |
I've gotten this working under Lazy.nvim. Either way, thanks for this plugin, I really needed it! |
@elliottgreen would you share what is the config used to make it work with Lazy.nvim? |
Could I get some help? I cannot get this to work lazy configutation: {
"dccsillag/magma-nvim",
version = "*",
lazy = false, -- workaround while debugging other stuff
ft = { "ipynb" },
keys = {
{
"<leader>mi",
"<cmd>MagmaInit<CR>",
desc = "This command initializes a runtime for the current buffer.",
},
{ "<leader>mo", "<cmd>MagmaEvaluateOperator<CR>", desc = "Evaluate the text given by some operator." },
{ "<leader>ml", "<cmd>MagmaEvaluateLine<CR>", desc = "Evaluate the current line." },
{ "<leader>mv", "<cmd>MagmaEvaluateVisual<CR>", desc = "Evaluate the selected text." },
{ "<leader>mc", "<cmd>MagmaEvaluateOperator<CR>", desc = "Reevaluate the currently selected cell." },
{ "<leader>mr", "<cmd>MagmaRestart!<CR>", desc = "Shuts down and restarts the current kernel." },
{
"<leader>mx",
"<cmd>MagmaInterrupt<CR>",
desc = "Interrupts the currently running cell and does nothing if not cell is running.",
},
},
}
Everything is being run inside a virtual environment with pynvim
jupyter_client
ueberzug_bak From the terminal inside neovim:
Related issues: |
@pavelskipenes You must configure NeoVim's python provider in order to support plugins written in python (including magma-nvim). Adding the following lines to your init.lua script should do the trick: vim.g.python3_host_prog = vim.fn.exepath 'python3'
vim.g.loaded_python3_provider = nil Once you've added those lines & restarted NeoVim, you should then reach the same point as the rest of us - IE, UPDATE: I figured out the missing piece this morning - I did not have remote plugins properly configured. After adding |
I am trying to set up magma with LazyVim. Any help would be appreciated for basic configuration. I have magma installed in its own /nvim/lua/plugins/magma.lua file. The file only contains the basic installation:
return{
{
"dccsillag/magma-nvim",
},
}
I have not configured any custom keys yet. Magma appears in LazyVim as "Loaded". Checkhealth shows everything is ok.
The problem is that I cannot run any :Magma commands.
For example, in Normal mode, running :MagmaInit
returns this error:
E492: Not an editor command: MagmaInit
I apologize if this is a trivial issue and super obvious. I just need some help. Any help would be appreciated. Thank you.
The text was updated successfully, but these errors were encountered: