Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 611 Bytes

README.markdown

File metadata and controls

27 lines (22 loc) · 611 Bytes

vscode-workspace

Allows configuring VSCode workspace extensions and settings in devenv

Usage

{ inputs, pkgs, lib, ... }: {
  imports = [ inputs.toolbox.modules.devenv.vscode-workspace ];

  vscode-workspace = {
    extensions = with pkgs.vscode-extensions; [
      jnoortheen.nix-ide
      thenuprojectcontributors.vscode-nushell-lang
      bmalehorn.vscode-fish
    ];

    settings = {
      nix = {
        enableLanguageServer = true;
        serverPath = lib.getExe pkgs.nil;
        serverSettings.nil.formatting.command = [(lib.getExe pkgs.nixfmt-rfc-style)];
      };
    };
  };
}