Initial commit
This commit is contained in:
commit
1518f7007b
39 changed files with 1779 additions and 0 deletions
15
m/home/helix/langs/default.nix
Normal file
15
m/home/helix/langs/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
rec {
|
||||
use = name: (import ./${"${name}.nix"}) pkgs;
|
||||
combine = lhs: rhs: {
|
||||
lsp = (lhs.lsp or {}) // (rhs.lsp or {});
|
||||
entries = (lhs.entries or []) ++ (rhs.entries or []);
|
||||
};
|
||||
|
||||
intoHelixFormat = cfg: {
|
||||
language-server = cfg.lsp;
|
||||
language = cfg.entries;
|
||||
};
|
||||
useMany = langs: builtins.foldl' combine {} (map use langs);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue