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
lib = import ./lib.nix;
@ -11,7 +17,9 @@ let
plugins = callPlugins [
./plugins/syntax
./plugins/explorer
(import ./plugins/theme { })
(import ./plugins/theme {
inherit enableBarBar enableDevIcons;
})
./plugins/lsp
./plugins/formatter
];

View file

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