about summary refs log tree commit diff stats
path: root/modules/by-name/nv/nvim/plgs/lf-nvim/default.nix
blob: 5e2836b0f7a18c54aa8fcc594f2cdd2749f76fe4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  pkgs,
  lib,
  config,
  ...
}: let
  cfg = config.soispha.programs.nvim;
in {
  home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable {
    # TODO: package lf-nvim though a module
    # FIXME: change the nvim path, when I change the path with lf
    extraConfigLuaPost = ''
      ${lib.strings.fileContents ./lua/lf-nvim.lua}
    '';
    extraPlugins = [
      pkgs.vimExtraPlugins.lf-nvim

      pkgs.vimPlugins.toggleterm-nvim # required by lf-nvim
    ];
  };
}