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