Skip to content

Commit

Permalink
image: add
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Jun 22, 2024
1 parent 3ef0073 commit 43d33ec
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
68 changes: 37 additions & 31 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,47 @@
};
};

outputs = { self, nixvim, ... }: let
angularLsp = { pkgs }: {
name = "angularls";
package = pkgs.callPackage ./pkgs/angular-language-server { };
};
in {
homeManagerModules = {
nvim = { config, lib, pkgs, ... }: let
mkLsp = import "${nixvim.outPath}/plugins/lsp/language-servers/_mk-lsp.nix" { inherit config lib pkgs; };
in {
imports = [
nixvim.homeManagerModules.nixvim
outputs = { self, nixvim, ... }:
let
angularLsp = { pkgs }: {
name = "angularls";
package = pkgs.callPackage ./pkgs/angular-language-server { };
};
in
{
homeManagerModules = {
nvim = { config, lib, pkgs, ... }:
let
mkLsp = import "${nixvim.outPath}/plugins/lsp/language-servers/_mk-lsp.nix" { inherit config lib pkgs; };
in
{
programs.nixvim = mkLsp (angularLsp { inherit pkgs; });
}
./module
];
imports = [
nixvim.homeManagerModules.nixvim
{
programs.nixvim = mkLsp (angularLsp { inherit pkgs; });
}
./module
];
};
default = self.homeManagerModules.nvim;
};
default = self.homeManagerModules.nvim;
};

nixosModules = {
nvim = { config, lib, pkgs, ... }: let
mkLsp = import "${nixvim.outPath}/plugins/lsp/language-servers/_mk-lsp.nix" { inherit config lib pkgs; };
in {
imports = [
nixvim.nixosModules.nixvim
nixosModules = {
nvim = { config, lib, pkgs, ... }:
let
mkLsp = import "${nixvim.outPath}/plugins/lsp/language-servers/_mk-lsp.nix" { inherit config lib pkgs; };
in
{
programs.nixvim = mkLsp (angularLsp { inherit pkgs; });
}
./module
];
};
imports = [
nixvim.nixosModules.nixvim
{
programs.nixvim = mkLsp (angularLsp { inherit pkgs; });
}
./module
];
};

default = self.nixosModules.nvim;
default = self.nixosModules.nvim;
};
};
};
}
1 change: 1 addition & 0 deletions module/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
};

plugins = {
image.enable = true;
# needs 24.05
# remove from extraPlugins
# autoclose.enable = true; # brackets, html, ...
Expand Down

0 comments on commit 43d33ec

Please sign in to comment.