Organzie nixvim, add basic alpha config

This commit is contained in:
albert 2024-02-19 15:03:29 +09:00
parent 6cf13479be
commit cb8bb7b266
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
5 changed files with 74 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ hostname, ... }: { { ... }: {
imports = [ imports = [
./bash.nix ./bash.nix
./btop.nix ./btop.nix

View file

@ -1,5 +1,5 @@
{ ... }: { { ... }: {
imports = [ ./nixvim-base.nix ]; imports = [ ./nixvim/base.nix ];
programs.nixvim = { programs.nixvim = {
plugins = { plugins = {

View file

@ -0,0 +1,67 @@
{...}: {
programs.nixvim.plugins.alpha = {
enable = true;
layout = [
{
type = "padding";
val = 2;
}
{
opts = {
hl = "Type";
position = "center";
};
type = "text";
val = [
" "
" "
" "
" "
" "
" "
];
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
on_press = {
__raw = "function() vim.cmd[[ene]] end";
};
opts = {
shortcut = "n";
};
type = "button";
val = " New file";
}
{
on_press = {
__raw = "function() vim.cmd[[qa]] end";
};
opts = {
shortcut = "q";
};
type = "button";
val = " Quit Neovim";
}
];
}
{
type = "padding";
val = 2;
}
{
opts = {
hl = "Keyword";
position = "center";
};
type = "text";
val = "Inspiring quote here.";
}
];
};
}

View file

@ -1,5 +1,6 @@
{ inputs, pkgs, lib, theme, ... }: { { inputs, pkgs, lib, theme, ... }: {
imports = [ imports = [
./nixvim/alpha.nix
inputs.nixvim.homeManagerModules.nixvim inputs.nixvim.homeManagerModules.nixvim
] ++ lib.optional (builtins.isString theme) ../../../../stylix/${theme}/home-manager/nixvim.nix; ] ++ lib.optional (builtins.isString theme) ../../../../stylix/${theme}/home-manager/nixvim.nix;

View file

@ -1,9 +1,9 @@
{ lib, config, pkgs, inputs, hostname, system, username, desktop, theme, hmStateVersion, ... }: { { lib, inputs, hostname, username, desktop, theme, hmStateVersion, ... }: {
imports = [ imports = [
# Common configs # Common configs
./common/software/cli/bash.nix ./common/software/cli/bash.nix
./common/software/cli/git.nix ./common/software/cli/git.nix
./common/software/cli/nixvim-base.nix ./common/software/cli/nixvim/base.nix
./common/software/cli/ssh.nix ./common/software/cli/ssh.nix
./common/software/cli/btop.nix ./common/software/cli/btop.nix
./common/software/cli/starship.nix ./common/software/cli/starship.nix