Skip to content

Latest commit

 

History

History
executable file
·
36 lines (29 loc) · 749 Bytes

File metadata and controls

executable file
·
36 lines (29 loc) · 749 Bytes

Node.js

{ config, pkgs, lib, ... }:
{
  imports = [
    ../../nvim/lsp.nix
  ];

  home.packages = with pkgs; [
    nodejs
  ];

  home.sessionVariables.PREFIX =
    "${config.home.homeDirectory}/.npm-global";
  home.sessionPath = [
    config.home.sessionVariables.PREFIX
  ];

  <<<modules/home/packages/developing/node>>>
}

Neovim support

# You must manually install `npm i -g eslint`
# and run `npx eslint --init` in all projects
nvimLSP.eslint = rec { # JS (EcmaScript) and TS
  package = pkgs.nodePackages.vscode-langservers-extracted;
  config = {
    cmd = ["${package}/bin/vscode-eslint-language-server" "--stdio"];
  };
};