From 15ead8ad534e863c692866a51fc86541e33a5a1a Mon Sep 17 00:00:00 2001 From: meml0rz Date: Tue, 12 Nov 2024 23:22:00 +0100 Subject: [PATCH] kekl --- modules/nix/nvim/alpha.nix | 71 ++++++++++++++++++++++++++++++++++++ modules/nix/nvim/cmp.nix | 2 +- modules/nix/nvim/default.nix | 2 +- 3 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 modules/nix/nvim/alpha.nix diff --git a/modules/nix/nvim/alpha.nix b/modules/nix/nvim/alpha.nix new file mode 100644 index 0000000..a1b2f0b --- /dev/null +++ b/modules/nix/nvim/alpha.nix @@ -0,0 +1,71 @@ +{ config, pkgs, nixvim, ... }: +{ + programs.nixvim = { + plugins = { + alpha = { + 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."; + } + ] + }; + }; + }; +} diff --git a/modules/nix/nvim/cmp.nix b/modules/nix/nvim/cmp.nix index ece71d2..56ee900 100644 --- a/modules/nix/nvim/cmp.nix +++ b/modules/nix/nvim/cmp.nix @@ -9,7 +9,7 @@ autoEnableSources = true; cmdline = { completion = { - completeopt = { "menu", "menuone", "noinsert", "noselect" } + completeopt = [ "menu" "menuone" "noinsert" "noselect" ]; }; }; settings = { diff --git a/modules/nix/nvim/default.nix b/modules/nix/nvim/default.nix index d3927d5..b3102fd 100644 --- a/modules/nix/nvim/default.nix +++ b/modules/nix/nvim/default.nix @@ -7,7 +7,7 @@ ./neotree.nix ./opts.nix ./lualine.nix - + ./alpha.nix ]; programs.nixvim = { enable = true;