plugin/theme: add dev icons

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-18 12:15:44 +03:00
parent 0453314971
commit 252f3cf2a6
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 13 additions and 2 deletions

View file

@ -1,4 +1,10 @@
{ wrapNeovim, neovim-unwrapped, vimPlugins, ... }: { enableBarBar ? false
, enableDevIcons ? false
, wrapNeovim
, neovim-unwrapped
, vimPlugins
, ...
}:
let let
lib = import ./lib.nix; lib = import ./lib.nix;
@ -11,7 +17,9 @@ let
plugins = callPlugins [ plugins = callPlugins [
./plugins/syntax ./plugins/syntax
./plugins/explorer ./plugins/explorer
(import ./plugins/theme { }) (import ./plugins/theme {
inherit enableBarBar enableDevIcons;
})
./plugins/lsp ./plugins/lsp
./plugins/formatter ./plugins/formatter
]; ];

View file

@ -1,4 +1,5 @@
{ enableBarBar ? false { enableBarBar ? false
, enableDevIcons ? false
}: }:
{ lib { lib
@ -6,6 +7,7 @@
, lualine-nvim , lualine-nvim
, lualine-lsp-progress , lualine-lsp-progress
, barbar-nvim , barbar-nvim
, nvim-web-devicons
, ... , ...
}: }:
@ -19,5 +21,6 @@ in
plugins = [ catppuccin-nvim ] plugins = [ catppuccin-nvim ]
++ lualinePlugins ++ lualinePlugins
++ (lib.optional enableDevIcons [ nvim-web-devicons ])
++ (lib.optional enableBarBar [ barbar-nvim ]); ++ (lib.optional enableBarBar [ barbar-nvim ]);
} }