feat: run the config through deadnix

This commit is contained in:
NotAShelf 2023-03-31 05:20:35 +03:00
parent 655c193540
commit d8b52451dd
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
98 changed files with 45 additions and 253 deletions

View file

@ -3,7 +3,6 @@
outputs = { outputs = {
nixpkgs, nixpkgs,
flake-parts, flake-parts,
zig,
... ...
} @ inputs: } @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} { flake-parts.lib.mkFlake {inherit inputs;} {

View file

@ -1,20 +1,15 @@
{inputs, ...}: let {inputs, ...}: let
inherit (import ../extra.nix inputs) neovimConfiguration mainConfig; inherit (import ../extra.nix inputs) neovimConfiguration mainConfig;
tidalConfig = {
config.vim.tidal.enable = true;
};
buildPkg = pkgs: modules: buildPkg = pkgs: modules:
(neovimConfiguration { (neovimConfiguration {inherit pkgs modules;})
inherit pkgs modules;
})
.neovim; .neovim;
nixConfig = mainConfig false; nixConfig = mainConfig false;
maximalConfig = mainConfig true; maximalConfig = mainConfig true;
tidalConfig = {config.vim.tidal.enable = true;};
in { in {
flake.overlays.default = final: prev: { flake.overlays.default = _final: prev: {
inherit neovimConfiguration; inherit neovimConfiguration;
neovim-nix = buildPkg prev [nixConfig]; neovim-nix = buildPkg prev [nixConfig];
neovim-maximal = buildPkg prev [maximalConfig]; neovim-maximal = buildPkg prev [maximalConfig];

View file

@ -3,7 +3,6 @@
system, system,
config, config,
pkgs, pkgs,
lib,
... ...
}: { }: {
packages = let packages = let

View file

@ -77,7 +77,7 @@ in {
topoSort = dag: let topoSort = dag: let
dagBefore = dag: name: dagBefore = dag: name:
builtins.attrNames builtins.attrNames
(filterAttrs (n: v: builtins.elem name v.before) dag); (filterAttrs (_n: v: builtins.elem name v.before) dag);
normalizedDag = normalizedDag =
mapAttrs (n: v: { mapAttrs (n: v: {
name = n; name = n;

View file

@ -5,9 +5,7 @@
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.assistant.copilot;
in {
options.vim.assistant.copilot = { options.vim.assistant.copilot = {
enable = mkEnableOption "Enable GitHub Copilot"; enable = mkEnableOption "Enable GitHub Copilot";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.assistant.tabnine;
in {
options.vim.assistant.tabnine = { options.vim.assistant.tabnine = {
enable = mkEnableOption "Enable TabNine assistant"; enable = mkEnableOption "Enable TabNine assistant";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
lib, lib,
config, config,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.autopairs;
in {
options.vim = { options.vim = {
autopairs = { autopairs = {
enable = mkOption { enable = mkOption {

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
lib, lib,
config, config,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim;
in {
options.vim = { options.vim = {
debugMode = { debugMode = {
enable = mkEnableOption "Enable debug mode"; enable = mkEnableOption "Enable debug mode";

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.comments.comment-nvim;
in {
options.vim.comments.comment-nvim = { options.vim.comments.comment-nvim = {
enable = mkEnableOption "comment-nvim"; enable = mkEnableOption "comment-nvim";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
lib, lib,
config, config,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.autocomplete;
in {
options.vim = { options.vim = {
autocomplete = { autocomplete = {
enable = mkOption { enable = mkOption {

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: }:
with lib; with lib;
@ -135,7 +134,7 @@ in {
else (toJSON val) else (toJSON val)
); );
filterNonNull = mappings: filterAttrs (name: value: value != null) mappings; filterNonNull = mappings: filterAttrs (_name: value: value != null) mappings;
globalsScript = globalsScript =
mapAttrsFlatten (name: value: "let g:${name}=${valToVim value}") mapAttrsFlatten (name: value: "let g:${name}=${valToVim value}")
(filterNonNull cfg.globals); (filterNonNull cfg.globals);

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.dashboard.alpha;
in {
options.vim.dashboard.alpha = { options.vim.dashboard.alpha = {
enable = mkEnableOption "alpha"; enable = mkEnableOption "alpha";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.dashboard.dashboard-nvim;
in {
options.vim.dashboard.dashboard-nvim = { options.vim.dashboard.dashboard-nvim = {
enable = mkEnableOption "dashboard-nvim"; enable = mkEnableOption "dashboard-nvim";
}; };

View file

@ -1,7 +1,4 @@
{ {
pkgs,
config,
lib,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,18 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with builtins; with builtins;
with lib; let with lib; {
cfg = config.vim.dashboard.startify;
mkVimBool = val:
if val
then "1"
else "0";
in {
options.vim.dashboard.startify = { options.vim.dashboard.startify = {
enable = mkEnableOption "Enable startify"; enable = mkEnableOption "Enable startify";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -5,9 +5,7 @@
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.filetree.nvimTreeLua;
in {
options.vim.filetree.nvimTreeLua = { options.vim.filetree.nvimTreeLua = {
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,7 +1,4 @@
{ {
pkgs,
config,
lib,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
@ -23,12 +22,7 @@ in {
config = config =
mkIf cfg.enable mkIf cfg.enable
( (
let {
mkVimBool = val:
if val
then "1"
else "0";
in {
vim.startPlugins = vim.startPlugins =
if (cfg.gitsigns.enable) if (cfg.gitsigns.enable)
then ["gitsigns-nvim"] then ["gitsigns-nvim"]

View file

@ -1,7 +1,4 @@
{ {
config,
lib,
pkgs,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.lsp;
in {
options.vim.lsp = { options.vim.lsp = {
lightbulb = { lightbulb = {
enable = mkEnableOption "lightbulb for code actions. Requires emoji font"; enable = mkEnableOption "lightbulb for code actions. Requires emoji font";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.lsp;
in {
options.vim.lsp = { options.vim.lsp = {
lspSignature = { lspSignature = {
enable = mkEnableOption "lsp signature viewer"; enable = mkEnableOption "lsp signature viewer";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.lsp;
in {
options.vim.lsp = { options.vim.lsp = {
nvimCodeActionMenu = { nvimCodeActionMenu = {
enable = mkEnableOption "nvim code action menu"; enable = mkEnableOption "nvim code action menu";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.lsp;
in {
options.vim.lsp = { options.vim.lsp = {
trouble = { trouble = {
enable = mkEnableOption "trouble diagnostics viewer"; enable = mkEnableOption "trouble diagnostics viewer";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,7 +1,4 @@
{ {
config,
lib,
pkgs,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.markdown.glow;
in {
options.vim.markdown.glow = { options.vim.markdown.glow = {
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.minimap.codewindow;
in {
options.vim.minimap.codewindow = { options.vim.minimap.codewindow = {
enable = mkEnableOption "Enable minimap-vim plugin"; enable = mkEnableOption "Enable minimap-vim plugin";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,7 +1,4 @@
{ {
pkgs,
lib,
config,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.minimap.minimap-vim;
in {
options.vim.minimap.minimap-vim = { options.vim.minimap.minimap-vim = {
enable = mkEnableOption "Enable minimap-vim plugin"; enable = mkEnableOption "Enable minimap-vim plugin";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.notes.mind-nvim;
in {
options.vim.notes.mind-nvim = { options.vim.notes.mind-nvim = {
enable = mkEnableOption "The power of trees at your fingertips. "; enable = mkEnableOption "The power of trees at your fingertips. ";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,14 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.notes.obsidian;
auto = config.vim.autocomplete;
in {
options.vim.notes = { options.vim.notes = {
obsidian = { obsidian = {
enable = mkEnableOption "Complementary neovim plugins for Obsidian editor"; enable = mkEnableOption "Complementary neovim plugins for Obsidian editor";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.notes.orgmode;
in {
options.vim.notes.orgmode = { options.vim.notes.orgmode = {
enable = mkEnableOption "Neovim plugin for Emac Orgmode. Get the best of both worlds."; enable = mkEnableOption "Neovim plugin for Emac Orgmode. Get the best of both worlds.";
orgAgendaFiles = mkOption { orgAgendaFiles = mkOption {

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.notes.todo-comments;
in {
options.vim.notes.todo-comments = { options.vim.notes.todo-comments = {
enable = mkEnableOption "todo-comments"; enable = mkEnableOption "todo-comments";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.notify.nvim-notify;
in {
options.vim.notify.nvim-notify = { options.vim.notify.nvim-notify = {
enable = mkEnableOption "Enable nvim-notify plugin"; enable = mkEnableOption "Enable nvim-notify plugin";
stages = mkOption { stages = mkOption {

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.presence.presence-nvim;
in {
options.vim.presence.presence-nvim = { options.vim.presence.presence-nvim = {
enable = mkEnableOption "Enable presence.nvim plugin"; enable = mkEnableOption "Enable presence.nvim plugin";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.session.nvim-session-manager;
in {
options.vim.session.nvim-session-manager = { options.vim.session.nvim-session-manager = {
enable = mkEnableOption "Enable nvim-session-manager"; enable = mkEnableOption "Enable nvim-session-manager";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.snippets.vsnip;
in {
options.vim.snippets.vsnip = { options.vim.snippets.vsnip = {
enable = mkEnableOption "Enable vim-vsnip"; enable = mkEnableOption "Enable vim-vsnip";
}; };

View file

@ -1,7 +1,4 @@
{ {
pkgs,
config,
lib,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,12 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; let
cfg = config.vim.statusline.lualine;
supported_themes = import ./supported_themes.nix; supported_themes = import ./supported_themes.nix;
in { in {
options.vim.statusline.lualine = { options.vim.statusline.lualine = {

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.tabline.nvimBufferline;
in {
options.vim.tabline.nvimBufferline = { options.vim.tabline.nvimBufferline = {
enable = mkEnableOption "nvim-bufferline-lua"; enable = mkEnableOption "nvim-bufferline-lua";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.terminal.toggleterm;
in {
options.vim.terminal.toggleterm = { options.vim.terminal.toggleterm = {
enable = mkEnableOption "Enable toggleterm as a replacement to built-in terminal command"; enable = mkEnableOption "Enable toggleterm as a replacement to built-in terminal command";
direction = mkOption { direction = mkOption {

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,7 +1,4 @@
{ {
pkgs,
config,
lib,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,7 +1,4 @@
{ {
config,
lib,
pkgs,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.tidal;
in {
options.vim.tidal = { options.vim.tidal = {
enable = mkEnableOption "tidal tools and plugins"; enable = mkEnableOption "tidal tools and plugins";

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,7 +1,4 @@
{ {
config,
lib,
pkgs,
... ...
}: { }: {
imports = [ imports = [

View file

@ -5,9 +5,7 @@
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.treesitter;
in {
options.vim.treesitter = { options.vim.treesitter = {
enable = mkOption { enable = mkOption {
default = false; default = false;

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.ui.noice;
in {
options.vim.ui.noice = { options.vim.ui.noice = {
enable = mkEnableOption "noice-nvim"; enable = mkEnableOption "noice-nvim";
}; };

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.binds.cheatsheet;
in {
options.vim.binds.cheatsheet = { options.vim.binds.cheatsheet = {
enable = mkEnableOption "Searchable cheatsheet for nvim using telescope"; enable = mkEnableOption "Searchable cheatsheet for nvim using telescope";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.binds.whichKey;
in {
options.vim.binds.whichKey = { options.vim.binds.whichKey = {
enable = mkEnableOption "which-key menu"; enable = mkEnableOption "which-key menu";
}; };

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.utility.colorizer;
in {
options.vim.utility.colorizer = { options.vim.utility.colorizer = {
enable = mkEnableOption "ccc color picker for neovim"; enable = mkEnableOption "ccc color picker for neovim";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.utility.diffview-nvim;
in {
options.vim.utility.diffview-nvim = { options.vim.utility.diffview-nvim = {
enable = mkEnableOption "Enable diffview-nvim"; enable = mkEnableOption "Enable diffview-nvim";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.gestures.gesture-nvim;
in {
options.vim.gestures.gesture-nvim = { options.vim.gestures.gesture-nvim = {
enable = mkEnableOption "Enable gesture-nvim plugin"; enable = mkEnableOption "Enable gesture-nvim plugin";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.utility.icon-picker;
in {
options.vim.utility.icon-picker = { options.vim.utility.icon-picker = {
enable = mkEnableOption "Nerdfonts icon picker for nvim"; enable = mkEnableOption "Nerdfonts icon picker for nvim";
}; };

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.telescope;
in {
options.vim.telescope = { options.vim.telescope = {
enable = mkEnableOption "enable telescope"; enable = mkEnableOption "enable telescope";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.utility.venn-nvim;
in {
options.vim.utility.venn-nvim = { options.vim.utility.venn-nvim = {
enable = mkEnableOption "draw ASCII diagrams in Neovim"; enable = mkEnableOption "draw ASCII diagrams in Neovim";
}; };

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
... ...

View file

@ -1,7 +1,4 @@
{ {
pkgs,
config,
lib,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,13 +1,10 @@
{ {
pkgs,
config, config,
lib, lib,
... ...
}: }:
with lib; with lib;
with builtins; let with builtins; {
cfg = config.vim.visuals;
in {
options.vim.visuals = { options.vim.visuals = {
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;