ref(nix): helper functions

This commit is contained in:
Léana 江 2024-02-12 20:00:27 +01:00 committed by Léana 江
parent eaeb922882
commit 6899a5887e
4 changed files with 42 additions and 52 deletions

View file

@ -2,8 +2,11 @@
config,
pkgs,
extraLanguageServers,
helperFuncs,
...
}: {
}: let
inherit (helperFuncs) if';
in {
programs.neovim = {
enable = true;
defaultEditor = true;
@ -14,17 +17,13 @@
shellcheck
nil
]
++ (
if extraLanguageServers
then [
nodePackages.vim-language-server
vscode-langservers-extracted # HTML/CSS/JSON/ESLint
marksman
nodePackages.pyright
taplo
]
else []
);
++ if' extraLanguageServers [
nodePackages.vim-language-server
vscode-langservers-extracted # HTML/CSS/JSON/ESLint
marksman
nodePackages.pyright
taplo
];
};
home.file = let