Skip to content
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

Problem using nixvim and latex in a shell #2645

Open
biscotty666 opened this issue Dec 12, 2024 · 0 comments
Open

Problem using nixvim and latex in a shell #2645

biscotty666 opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@biscotty666
Copy link

I have a very basic shell.nix which I use in directories in which I write Latex. The flake also loads VSCode, but I generally prefer using neovim (nixvim), which is installed system-wide via home manager (NixOS/current).

When I need to add an additional package, say "verse", in the shell, nvim complains that it cannot find verse.sty. But if I work with it in VSCode there is no problem, which is why I keep in in the shell.

How can I get nixvim to "see" the modules installed by the flake? I've pasted it below.

Thank you.

let
  pkgs = import <nixpkgs> { config.allowUnfree = true; };
  myvscode = pkgs.vscode-with-extensions.override {
    vscodeExtensions = (with pkgs.vscode-extensions; [
      equinusocio.vsc-material-theme
      equinusocio.vsc-material-theme-icons
      james-yu.latex-workshop
      vscodevim.vim
      valentjn.vscode-ltex
    ]);
  };
  mytex = pkgs.texliveMedium.withPackages (ps: [ ps.mathdesign
        ps.verse
        ps.quotchap
        ps.biblatex]);
in
pkgs.mkShell {
  buildInputs = [ myvscode mytex ];
}
@biscotty666 biscotty666 added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant