mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-08 01:36:02 +00:00
Compare commits
No commits in common. "d6338d4c4cee45634dd54dfb9cbb6abc5a86752e" and "df94a99201f374c407c7b0a8256aa5c7ce347775" have entirely different histories.
d6338d4c4c
...
df94a99201
3 changed files with 20 additions and 18 deletions
|
|
@ -11,21 +11,21 @@
|
||||||
layoutDefined = cfg.layout != [];
|
layoutDefined = cfg.layout != [];
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim.startPlugins = [
|
||||||
startPlugins = ["alpha-nvim"];
|
"alpha-nvim"
|
||||||
visuals.nvim-web-devicons.enable = true;
|
"nvim-web-devicons"
|
||||||
|
];
|
||||||
|
|
||||||
pluginRC.alpha = let
|
vim.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,8 +9,11 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = ["nui-nvim"];
|
startPlugins = [
|
||||||
visuals.nvim-web-devicons.enable = true;
|
# dependencies
|
||||||
|
"nui-nvim" # ui library
|
||||||
|
"nvim-web-devicons" # glyphs
|
||||||
|
];
|
||||||
|
|
||||||
lazy.plugins = {
|
lazy.plugins = {
|
||||||
"hunk-nvim" = {
|
"hunk-nvim" = {
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,7 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = ["tiny-devicons-auto-colors-nvim"];
|
startPlugins = ["tiny-devicons-auto-colors-nvim" "nvim-web-devicons"];
|
||||||
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