mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
This represents a major rearchitecture for nixvim, so I'm leaving this up to track the progress for now, and to serve as a reference for any breaking changes during transition. The main change is, of course, being able to use nixvim standalone. To do this, you should use the new build function, which takes in two arguments: the system architecture (e.g. x86_64-linux) and the configuration. For the new configuration, do not use the programs.nixvim. prefix. For module development, the main change is that you should no longer prefix your modules with programs.nixvim..
18 lines
345 B
Nix
18 lines
345 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.plugins.easyescape;
|
|
helpers = import ../helpers.nix { inherit lib; };
|
|
in
|
|
{
|
|
options = {
|
|
plugins.easyescape = {
|
|
enable = mkEnableOption "Enable easyescape";
|
|
};
|
|
};
|
|
config = mkIf cfg.enable {
|
|
extraPlugins = with pkgs.vimPlugins; [
|
|
vim-easyescape
|
|
];
|
|
};
|
|
}
|