Skip to content

Problem using nixvim and latex in a shell #2645

Open
@biscotty666

Description

@biscotty666

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 ];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions