general: add package options (#127)

* barbar: package option

* Base16: package option

* gruvbox: package option

* nord: package option

* one: package option

* onedark: package option

* tokyonight: package option

* nvim-cmp: package option

* coq: package option

* lspkind: package option

* helpers: added package option to mkPlugin

* fugitive: package option

* gitgutter: package option

* gitsigns: package option

* neogit: package option

* ledger: package option

* nix: package option

* plantuml-syntax: package option

* treesitter-context: package option + formatting

* treesitter-refactor: package option + formatting

* treesitter: package option

* zig: package option

* null-ls: package option

* null-ls/servers: package option

* lsp-lines: package option

* lspsaga: package option

* trouble: package option

* luasnip: added description for package option

* airline: package option

* lightline: package option

* lualine: package option

* telescope: package option

* telescope/frecency: package option

* telescope/fzf-native: package option

* telescope/media-files: package option

* comment-nvim: package option

* vim-commentary: package option

* dashboard: package option

* easyescape: package option

* emmet: package option

* endwise: package option

* floaterm: package option

* goyo: package option

* intellitab: package option

* mark-radar: package option

* notify: package option

* nvim-autopairs: package option

* nvim-tree: package option

* project-nvim: package option

* specs: package option

* startify: package option

* surround: package option

* undotree: package option
This commit is contained in:
Alexander Nortung 2023-01-19 10:45:15 +00:00 committed by GitHub
parent 83f6e1647f
commit 3f9effc575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 457 additions and 180 deletions

View file

@ -9,6 +9,12 @@ in
colorschemes.base16 = {
enable = mkEnableOption "Enable base16";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.base16-vim;
description = "Plugin to use for base16";
};
useTruecolor = mkOption {
type = types.bool;
default = true;
@ -31,7 +37,7 @@ in
config = mkIf cfg.enable {
colorscheme = "base16-${cfg.colorscheme}";
extraPlugins = [ pkgs.vimPlugins.base16-vim ];
extraPlugins = [ cfg.package ];
plugins.airline.theme = mkIf (cfg.setUpBar) "base16";
plugins.lightline.colorscheme = null;

View file

@ -9,6 +9,12 @@ in
colorschemes.gruvbox = {
enable = mkEnableOption "Enable gruvbox";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.gruvbox-nvim;
description = "Plugin to use for gruvbox";
};
italics = mkEnableOption "Enable italics";
bold = mkEnableOption "Enable bold";
underline = mkEnableOption "Enable underlined text";
@ -113,7 +119,7 @@ in
config = mkIf cfg.enable {
colorscheme = "gruvbox";
extraPlugins = [ pkgs.vimPlugins.gruvbox-nvim ];
extraPlugins = [ cfg.package ];
globals = {
gruvbox_bold = mkIf (!cfg.bold) 0;

View file

@ -8,6 +8,12 @@ in
colorschemes.nord = {
enable = mkEnableOption "Enable nord";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.nord-nvim;
description = "Plugin to use for nord.nvim";
};
contrast = mkEnableOption
"Make sidebars and popup menus like nvim-tree and telescope have a different background";
@ -33,7 +39,7 @@ in
config = mkIf cfg.enable {
colorscheme = "nord";
extraPlugins = [ pkgs.vimPlugins.nord-nvim ];
extraPlugins = [ cfg.package ];
globals = {
nord_contrast = mkIf cfg.contrast 1;

View file

@ -7,12 +7,18 @@ in
options = {
colorschemes.one = {
enable = mkEnableOption "Enable vim-one";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.vim-one;
description = "Plugin to use for one";
};
};
};
config = mkIf cfg.enable {
colorscheme = "one";
extraPlugins = [ pkgs.vimPlugins.vim-one ];
extraPlugins = [ cfg.package ];
options = {
termguicolors = true;

View file

@ -7,12 +7,18 @@ in
options = {
colorschemes.onedark = {
enable = mkEnableOption "Enable onedark";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.onedark-vim;
description = "Plugin to use for one";
};
};
};
config = mkIf cfg.enable {
colorscheme = "onedark";
extraPlugins = [ pkgs.vimPlugins.onedark-vim ];
extraPlugins = [ cfg.package ];
options = {
termguicolors = true;

View file

@ -9,6 +9,11 @@ in
options = {
colorschemes.tokyonight = {
enable = mkEnableOption "Enable tokyonight";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.tokyonight-nvim;
description = "Plugin to use for tokyonight";
};
style = mkOption {
type = style;
default = "storm";
@ -75,7 +80,7 @@ in
};
config = mkIf cfg.enable {
colorscheme = "tokyonight";
extraPlugins = [ pkgs.vimPlugins.tokyonight-nvim ];
extraPlugins = [ cfg.package ];
options = { termguicolors = true; };
extraConfigLuaPre =
let