-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
[BUG] Missing package molten after enable=true
#1206
Comments
No, there is no |
Thanks a lot for looking at it so swiftly. # in my `nix flake init --template github:nix-community/nixvim` dir
nix-shell -p "python3.withPackages(ps: with ps; [ numpy pandas jupyter ])"
nix run .# Obviously, feel free to tell me if this is outside the scope of nixnvim support. I just wasn't sure if |
I think we need to add it to the extraPythonPackages of nixvim |
That's exactly what I was looking at. Using home-manager, they have this part:
Is there a similar user-defined argument in nixvim? |
This helped a lot to go forward. Now I have:
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
python311
quarto
];
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
}
{ self
, pkgs
, ...
}: {
# Import all your configuration modules here
imports = [
./bufferline.nix
];
extraPython3Packages = p: with p; [ jupyter-client pynvim cairosvg pnglatex plotly pyperclip ];
extraPlugins = [
{ plugin = pkgs.vimPlugins.quarto-nvim; }
{ plugin = pkgs.vimPlugins.otter-nvim; }
{
plugin = pkgs.vimUtils.buildVimPlugin {
name = "jupytext-nvim";
src = pkgs.fetchFromGitHub {
owner = "GCBallesteros";
repo = "jupytext.nvim";
rev = "68fddf28119dbaddfaea6b71f3d6aa1e081afb93";
sha256 = "x5emW+qfUTUDR72B9QdDgVdrb8wGH9D7AdtRrQm80sI=";
};
};
}
];
extraConfigLua = ''
require("jupytext").setup({
style = "markdown",
output_extension = "md",
force_ft = "markdown",
})
'';
plugins.lsp = {
enable = true;
servers = {
tsserver.enable = true;
lua-ls.enable = true;
rnix-lsp.enable = true;
pyright.enable = true;
};
};
plugins.molten = {
enable = true;
};
}
With these three parts, I can The current blocker is that I could only make this works with the line:
in
|
I also had the same problem, where plugins.molten = {
enable = true;
package = pkgs.vimUtils.buildVimPlugin {
pname = "molten-nvim";
version = "2024-02-23";
src = pkgs.fetchFromGitHub {
owner = "benlubas";
repo = "molten-nvim";
rev = "8346bba69e0de96278dad2038e9be74605908b7d";
# sha256 = lib.fakeSha256;
sha256 = "08f3zxzka43f87fks56594476h57yq01x7a1zdsn4acc278xg1nb";
};
passthru.python3Dependencies = ps:
with ps; [
pynvim
jupyter-client
cairosvg
ipython
nbformat
];
meta.homepage = "https://github.com/benlubas/molten-nvim/";
};
}; Maybe the original package in |
Thank you for sharing @Charging1948
|
@xvrdm Very Interesting. I do not override the LD_LIBRARY_PATH and it just works. My config is a mess, but maybe it helps: https://github.com/Charging1948/neovim |
@Charging1948 I actually tried your config after your first config, very impressive, but a bit overwhelming for my level of understanding. Definitely an inspiration. I put my tiny attempt here: https://github.com/xvrdm/nixvim_sandbox |
@xvrdm I tried to replicate the behavior you are experiencing, but i was able to use molten without problems: The only thing i have added was the ipykernel, because it was missing. At this point i dont know what the problem could be, sorry. |
Thanks a lot for trying. |
In the end, I am not sure about what we could/should do at the nixvim level. |
@GaetanLepage, do you mean that they could have been automatically when a user enable From a user perspective, I think it makes sense that I have to add these python packages via the |
I think we should add the required package to the extraPython3Packages |
molten
23.11
Description
I am trying to use the
molten
package. Even though I enabled the package (found in the doc), I don't get any:Molten*
command in nvim. Do I need torequire
it manually?I started from
nix flake init --template github:nix-community/nixvim
and only changedconfig/default.nix
. The other changes (colorschemes, lualine, lsp) were correctly pulled/activated.Thanks for the awesome project!
Minimal, Reproducible Example (MRE)
in
config/default.nix
The text was updated successfully, but these errors were encountered: