mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 07:25:30 +00:00
24 lines
468 B
Nix
24 lines
468 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (builtins) any attrValues;
|
|
|
|
cfg = config.vim.languages.tex;
|
|
in {
|
|
imports = [
|
|
./texlab.nix
|
|
];
|
|
|
|
config =
|
|
mkIf
|
|
(
|
|
cfg.enable # Check if nvf is enabled.
|
|
&& (any (x: x.enable) (attrValues cfg.lsp)) # Check if any of the LSPs have been enabled.
|
|
)
|
|
{
|
|
vim.lsp.lspconfig.enable = lib.mkDefault true; # Enable lspconfig when any of the lsps are enabled
|
|
};
|
|
}
|