mirror of
https://github.com/Ascyii/typstar.git
synced 2026-03-02 01:22:43 +01:00
style: format nix code
This commit is contained in:
17
flake.nix
17
flake.nix
@@ -6,21 +6,24 @@
|
|||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs =
|
||||||
|
inputs@{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-parts,
|
flake-parts,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
];
|
];
|
||||||
|
|
||||||
perSystem = {system, ...}: let
|
perSystem =
|
||||||
pkgs = import nixpkgs {inherit system;};
|
{ system, ... }:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
typstar = pkgs.vimUtils.buildVimPlugin {
|
typstar = pkgs.vimUtils.buildVimPlugin {
|
||||||
name = "typstar";
|
name = "typstar";
|
||||||
src = self;
|
src = self;
|
||||||
@@ -29,10 +32,12 @@
|
|||||||
pkgs.vimPlugins.nvim-treesitter-parsers.typst
|
pkgs.vimPlugins.nvim-treesitter-parsers.typst
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
packages = {
|
packages = {
|
||||||
default = typstar;
|
default = typstar;
|
||||||
nvim = let
|
nvim =
|
||||||
|
let
|
||||||
config = pkgs.neovimUtils.makeNeovimConfig {
|
config = pkgs.neovimUtils.makeNeovimConfig {
|
||||||
customRC = ''
|
customRC = ''
|
||||||
lua << EOF
|
lua << EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user