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,22 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.presets.languages.python;
|
||||
in
|
||||
{
|
||||
options.presets.languages.python = {
|
||||
enable = lib.mkEnableOption "Python";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
plugins = {
|
||||
conform-nvim.formattersByFt.python = [ "black" ];
|
||||
lsp.servers.pylsp.enable = true;
|
||||
};
|
||||
extraPackages = [ pkgs.black ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user