{ 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 ]; }; }