NixOS/dev/lsp.nix

14 lines
520 B
Nix
Raw Permalink Normal View History

2023-12-15 19:53:37 +00:00
{ pkgs, lib, ... }:
let
settings = import ./../settings.nix;
in
{
# various language server used by IDEs and by Neovim lsp-config
environment.systemPackages = with pkgs;
lib.optionals settings.dev.lsp.shellcheck [ shellcheck ]
++ lib.optionals settings.dev.lsp.luals [ lua-language-server ]
++ lib.optionals settings.dev.lsp.pyright[ pyright ]
++ lib.optionals settings.dev.lsp.arduino [ arduino-language-server ]
++ lib.optionals settings.dev.lsp.clangd [ clang ];
}