mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
17 lines
316 B
Nix
17 lines
316 B
Nix
{ lib, config, ... }:
|
|
let
|
|
cfg = config.presets.languages.dart;
|
|
in
|
|
{
|
|
options.presets.languages.dart = {
|
|
enable = lib.mkEnableOption "Dart";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
plugins = {
|
|
conform-nvim.formattersByFt.dart = [ "dart_format" ];
|
|
lsp.servers.dartls.enable = true;
|
|
};
|
|
};
|
|
}
|