Expand your neovim sense with small UI components
1.9 kB
82 lines
1{
2 description = "sense.nvim";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6 neorocks.url = "github:nvim-neorocks/neorocks";
7 flake-parts.url = "github:hercules-ci/flake-parts";
8 vimcats.url = "github:mrcjkb/vimcats";
9 };
10
11 outputs = inputs @ {
12 self,
13 nixpkgs,
14 neorocks,
15 flake-parts,
16 ...
17 }: let
18 plugin-overlay = import ./nix/plugin-overlay.nix {
19 inherit self;
20 };
21 test-overlay = import ./nix/test-overlay.nix {
22 inherit self inputs;
23 };
24 in
25 flake-parts.lib.mkFlake {inherit inputs;} {
26 systems = [
27 "x86_64-linux"
28 "x86_64-darwin"
29 "aarch64-linux"
30 "aarch64-darwin"
31 ];
32 perSystem = {
33 config,
34 self',
35 inputs',
36 system,
37 ...
38 }: let
39 pkgs = import nixpkgs {
40 inherit system;
41 overlays = [
42 neorocks.overlays.default
43 plugin-overlay
44 test-overlay
45 ];
46 };
47 in {
48 packages = rec {
49 default = nvim-plugin;
50 nvim-plugin = pkgs.sense-nvim-dev;
51 inherit
52 (pkgs)
53 docgen
54 neovim-with-sense
55 ;
56 };
57
58 devShells.default = pkgs.mkShell {
59 name = "sense.nvim devShell";
60 shellHook = ''
61 export LUA_PATH="$(luarocks path --lr-path --lua-version 5.1 --local)"
62 export LUA_CPATH="$(luarocks path --lr-cpath --lua-version 5.1 --local)"
63 '';
64 buildInputs = with pkgs; [
65 sumneko-lua-language-server
66 stylua
67 docgen
68 sync-readme
69 (pkgs.lua5_1.withPackages (ps: with ps; [luarocks luacheck]))
70 ];
71 };
72
73 checks = {
74 inherit
75 (pkgs)
76 neovim-stable-test
77 neovim-nightly-test
78 ;
79 };
80 };
81 };
82}