mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-05 16:32:56 +00:00
Compare commits
2 commits
df94a99201
...
d6338d4c4c
| Author | SHA1 | Date | |
|---|---|---|---|
|
d6338d4c4c |
|||
|
1c0c41e8f5 |
3 changed files with 18 additions and 20 deletions
|
|
@ -11,21 +11,21 @@
|
|||
layoutDefined = cfg.layout != [];
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = [
|
||||
"alpha-nvim"
|
||||
"nvim-web-devicons"
|
||||
];
|
||||
vim = {
|
||||
startPlugins = ["alpha-nvim"];
|
||||
visuals.nvim-web-devicons.enable = true;
|
||||
|
||||
vim.pluginRC.alpha = let
|
||||
setupOpts =
|
||||
if themeDefined
|
||||
then lib.generators.mkLuaInline "require'alpha.themes.${cfg.theme}'.config"
|
||||
else {
|
||||
inherit (cfg) layout opts;
|
||||
};
|
||||
in ''
|
||||
require('alpha').setup(${toLuaObject setupOpts})
|
||||
'';
|
||||
pluginRC.alpha = let
|
||||
setupOpts =
|
||||
if themeDefined
|
||||
then lib.generators.mkLuaInline "require'alpha.themes.${cfg.theme}'.config"
|
||||
else {
|
||||
inherit (cfg) layout opts;
|
||||
};
|
||||
in ''
|
||||
require('alpha').setup(${toLuaObject setupOpts})
|
||||
'';
|
||||
};
|
||||
|
||||
assertions = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,11 +9,8 @@
|
|||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [
|
||||
# dependencies
|
||||
"nui-nvim" # ui library
|
||||
"nvim-web-devicons" # glyphs
|
||||
];
|
||||
startPlugins = ["nui-nvim"];
|
||||
visuals.nvim-web-devicons.enable = true;
|
||||
|
||||
lazy.plugins = {
|
||||
"hunk-nvim" = {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = ["tiny-devicons-auto-colors-nvim" "nvim-web-devicons"];
|
||||
startPlugins = ["tiny-devicons-auto-colors-nvim"];
|
||||
visuals.nvim-web-devicons.enable = true;
|
||||
|
||||
pluginRC.tiny-devicons-auto-colors = entryAnywhere ''
|
||||
require("tiny-devicons-auto-colors").setup(${toLuaObject cfg.setupOpts})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue