mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: nixvim refactor
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.presets.languages.css;
|
||||
in
|
||||
{
|
||||
options.presets.languages.css = {
|
||||
enable = lib.mkEnableOption "CSS";
|
||||
stylelint = lib.mkEnableOption "stylelint";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
plugins = {
|
||||
none-ls = lib.mkIf cfg.stylelint {
|
||||
enable = true;
|
||||
sources = {
|
||||
diagnostics.stylelint.enable = true;
|
||||
formatting.stylelint.enable = true;
|
||||
};
|
||||
};
|
||||
lsp.servers.cssls.enable = true;
|
||||
};
|
||||
extraPackages = lib.mkIf cfg.stylelint [ pkgs.nodePackages.stylelint ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user