mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-07-06 16:12:33 +02:00
Edit dashboard, colors & add yazi
Signed-off-by: Hadi <hadi@example.com>
This commit is contained in:
@@ -1,12 +1,24 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
c = config.lib.stylix.colors;
|
||||
in {
|
||||
imports = [inputs.nvf.homeManagerModules.default];
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
vim.luaConfigRC.hl-overrides = ''
|
||||
local function apply_hl()
|
||||
vim.api.nvim_set_hl(0, "MiniStarterHeader", { fg = "#${c.base0D}", bold = true })
|
||||
vim.api.nvim_set_hl(0, "SnacksPickerBorder", { fg = "#${c.base0D}" })
|
||||
vim.api.nvim_set_hl(0, "SnacksPickerTitle", { fg = "#${c.base0D}", bold = true })
|
||||
end
|
||||
apply_hl()
|
||||
vim.api.nvim_create_autocmd("ColorScheme", { pattern = "*", callback = apply_hl })
|
||||
'';
|
||||
imports = [
|
||||
./options.nix
|
||||
./languages.nix
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{lib, ...}: {
|
||||
vim.luaConfigRC.mini-clue = ''
|
||||
local miniclue = require('mini.clue')
|
||||
miniclue.setup({
|
||||
@@ -29,6 +29,7 @@
|
||||
{ mode = 'n', keys = '<Leader>x', desc = '+trouble' },
|
||||
{ mode = 'n', keys = '<Leader>!', desc = 'shell' },
|
||||
{ mode = 'v', keys = '<Leader>!', desc = 'shell' },
|
||||
{ mode = 'n', keys = '<Leader>e', desc = 'yazi' },
|
||||
},
|
||||
window = { delay = 300 },
|
||||
})
|
||||
@@ -36,7 +37,55 @@
|
||||
|
||||
vim.mini = {
|
||||
ai.enable = true;
|
||||
starter.enable = true;
|
||||
starter = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
header = ''
|
||||
⣟⣯⣟⣯⡇⠀⣿⢩⣛⡼⣏⠀⠈⠋⠀⣈⡷⣙⢎⡳⣙⢮⣙⢮⣙⢎⡳⣙⢾⣿
|
||||
⢿⡾⣽⡞⣷⣤⣏⡳⡜⡼⠗⠁⢀⠀⠙⢧⠳⣍⢞⡱⣭⠲⣍⠶⣩⢞⡱⡭⣾⣿
|
||||
⠈⠻⠧⢿⣧⣿⠶⣵⢻⢞⡷⢲⡟⡶⢴⡭⢿⣜⣮⡱⢎⡳⣍⢞⡱⢮⡱⣳⣿⣽
|
||||
⠀⣰⣶⡏⢷⣈⣿⣸⣇⣾⣸⣿⣾⣹⣆⡹⡎⡶⢇⡿⣹⢷⣾⣈⠷⣇⢷⣿⣿⣹
|
||||
⣾⣻⣭⣿⣾⣿⣿⣟⣿⣿⡿⣽⡿⣿⢿⣿⣿⣿⣾⣶⣵⣾⠲⣭⢳⣞⣾⡿⣷⣿
|
||||
⣿⣿⣿⣯⣷⣿⣿⠿⢝⠚⠋⠉⠉⠉⠙⠚⠛⡾⢿⣿⣻⣿⣿⣶⣏⠶⣩⠿⣿⡈
|
||||
⣿⣟⣿⣻⣿⡏⠀⠀⠀⠳⡀⠀⠀⠀⠀⠰⠊⠀⠀⠈⠙⠳⣿⣿⣿⣿⣧⣻⣿⣿
|
||||
⠘⢻⣿⣿⣽⡇⠈⠧⣄⠀⠀⠀⠀⠀⠀⢀⣄⡤⠴⠚⠀⠀⠀⠙⢿⣷⡿⣿⣿⣿
|
||||
⠀⠠⢈⢛⣿⠀⠚⠉⠉⠱⣼⡷⠀⠀⠀⠀⠉⠉⠑⠶⠀⠀⠀⠀⠀⠻⣿⣿⣾⢿
|
||||
⠀⠡⠈⠉⠹⡀⠀⠀⡄⠀⣸⡀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣯⣿⢿
|
||||
⠀⠁⢶⣶⠀⢷⠀⠀⠉⠉⠀⠈⠉⠶⠆⠈⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⣾⣿
|
||||
⠀⠡⢸⢹⠏⡍⠓⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣺⡟⠋⠉⢹⢭⢣
|
||||
⠀⠀⢸⣹⡏⠭⠭⠭⠙⣲⣦⣤⣤⣀⣀⣀⣀⣤⣤⣶⣞⠉⠙⠛⠷⢀⣀⠘⣎⠧
|
||||
⢁⣈⣀⣀⢀⣀⣀⣀⣼⠟⠹⢿⣯⣟⣿⣻⡿⠿⠛⢿⣿⣦⡀⠀⠀⠀⠀⠉⠉⠘
|
||||
'';
|
||||
footer = "";
|
||||
items = [
|
||||
{
|
||||
name = "files";
|
||||
action = lib.mkLuaInline "function() Snacks.picker.files() end";
|
||||
section = "";
|
||||
}
|
||||
{
|
||||
name = "directories";
|
||||
action = lib.mkLuaInline "function() Snacks.explorer() end";
|
||||
section = "";
|
||||
}
|
||||
{
|
||||
name = "tmp";
|
||||
action = lib.mkLuaInline ''
|
||||
function()
|
||||
local uuid = vim.fn.system("uuidgen"):match("(%S+)")
|
||||
vim.cmd("edit /tmp/" .. uuid .. ".md")
|
||||
end
|
||||
'';
|
||||
section = "";
|
||||
}
|
||||
{
|
||||
name = "recent";
|
||||
action = lib.mkLuaInline "function() Snacks.picker.recent() end";
|
||||
section = "";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
comment.enable = true;
|
||||
icons.enable = true;
|
||||
indentscope.enable = true;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
desc = "Smart Find Files";
|
||||
}
|
||||
{
|
||||
key = "<leader>e";
|
||||
key = "<leader>E";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "<cmd>lua Snacks.explorer()<cr>";
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
vim.keymap.del("n", "<leader>tdt")
|
||||
'';
|
||||
undoFile.enable = true;
|
||||
utility.yazi-nvim = {
|
||||
enable = true;
|
||||
mappings.openYazi = "<leader>e";
|
||||
};
|
||||
notes.todo-comments.enable = true;
|
||||
assistant.copilot = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user