mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-06 00:42:55 +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 != [];
|
layoutDefined = cfg.layout != [];
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim.startPlugins = [
|
vim = {
|
||||||
"alpha-nvim"
|
startPlugins = ["alpha-nvim"];
|
||||||
"nvim-web-devicons"
|
visuals.nvim-web-devicons.enable = true;
|
||||||
];
|
|
||||||
|
|
||||||
vim.pluginRC.alpha = let
|
pluginRC.alpha = let
|
||||||
setupOpts =
|
setupOpts =
|
||||||
if themeDefined
|
if themeDefined
|
||||||
then lib.generators.mkLuaInline "require'alpha.themes.${cfg.theme}'.config"
|
then lib.generators.mkLuaInline "require'alpha.themes.${cfg.theme}'.config"
|
||||||
else {
|
else {
|
||||||
inherit (cfg) layout opts;
|
inherit (cfg) layout opts;
|
||||||
};
|
};
|
||||||
in ''
|
in ''
|
||||||
require('alpha').setup(${toLuaObject setupOpts})
|
require('alpha').setup(${toLuaObject setupOpts})
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,8 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = [
|
startPlugins = ["nui-nvim"];
|
||||||
# dependencies
|
visuals.nvim-web-devicons.enable = true;
|
||||||
"nui-nvim" # ui library
|
|
||||||
"nvim-web-devicons" # glyphs
|
|
||||||
];
|
|
||||||
|
|
||||||
lazy.plugins = {
|
lazy.plugins = {
|
||||||
"hunk-nvim" = {
|
"hunk-nvim" = {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
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 ''
|
pluginRC.tiny-devicons-auto-colors = entryAnywhere ''
|
||||||
require("tiny-devicons-auto-colors").setup(${toLuaObject cfg.setupOpts})
|
require("tiny-devicons-auto-colors").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue