2023-04-17 22:27:27 +02:00
|
|
|
{lib, ...}:
|
|
|
|
with lib; let
|
|
|
|
mkEnable = desc:
|
|
|
|
mkOption {
|
2023-04-18 00:11:02 +02:00
|
|
|
description = "Turn on ${desc} for enabled languages by default";
|
2023-04-17 22:27:27 +02:00
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
imports = [
|
2023-04-17 23:55:27 +02:00
|
|
|
./markdown
|
2023-04-17 23:38:57 +02:00
|
|
|
./tidal
|
|
|
|
|
2023-04-17 22:27:27 +02:00
|
|
|
./clang.nix
|
|
|
|
./go.nix
|
|
|
|
./nix.nix
|
|
|
|
./python.nix
|
|
|
|
./rust.nix
|
|
|
|
./sql.nix
|
|
|
|
./ts.nix
|
|
|
|
./zig.nix
|
2023-04-18 00:05:18 +02:00
|
|
|
./html.nix
|
2023-04-17 22:27:27 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
options.vim.languages = {
|
|
|
|
enableLSP = mkEnable "LSP";
|
|
|
|
enableTreesitter = mkEnable "treesitter";
|
|
|
|
enableFormat = mkEnable "formatting";
|
|
|
|
enableExtraDiagnostics = mkEnable "extra diagnostics";
|
|
|
|
};
|
|
|
|
}
|