Problem: lua-language-server is not available in the dev shell, making it impossible to run local diagnostics checks. Solution: add pkgs.lua-language-server to the devShell packages.
30 lines
632 B
Nix
30 lines
632 B
Nix
{
|
|
description = "nonicons.nvim — nonicons for Neovim";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
systems.url = "github:nix-systems/default";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
systems,
|
|
...
|
|
}:
|
|
let
|
|
forEachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
|
in
|
|
{
|
|
devShells = forEachSystem (pkgs: {
|
|
default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.prettier
|
|
pkgs.stylua
|
|
pkgs.selene
|
|
pkgs.lua-language-server
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|