lots of stuff

This commit is contained in:
gwg313 2026-01-04 10:27:19 -05:00
parent ccf213f488
commit 49cca73363
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
29 changed files with 471 additions and 235 deletions

View file

@ -6,12 +6,13 @@
{
programs.nvf.settings.vim = {
undoFile.enable = true;
theme = lib.mkForce {
enable = true;
name = "catppuccin";
style = "latte";
transparent = false;
};
# theme = lib.mkForce {
# enable = true;
# name = "catppuccin";
# style = "latte";
# transparent = false;
# };
navigation = {
harpoon.enable = true;
};
@ -30,10 +31,6 @@
# cmp.enable = true;
# };
statusline.lualine.enable = true;
# autocomplete.blink-cmp = {
# enable = true;
# friendly-snippets.enable = true;
# };
autocomplete = {
nvim-cmp = {
enable = true;
@ -48,6 +45,55 @@
};
};
snippets.luasnip.enable = true;
snippets.luasnip.customSnippets.snipmate = {
all = [
{
trigger = "if";
body = "if $1 else $2";
}
];
nix = [
{
trigger = "mkOption";
body = ''
mkOption {
type = $1;
default = $2;
description = $3;
example = $4;
}
'';
}
];
haskell = [
{
trigger = "zzis";
body = ''
insert :: (Ord a) => a -> [a] -> [a]
insert x [] = [x]
insert x (y:ys)
| x <= y = x : y : ys
| otherwise = y : insert x ys
insertionSort :: (Ord a) => [a] -> [a]
insertionSort [] = []
insertionSort (x:xs) = insert x (insertionSort xs)
'';
}
{
trigger = "zzso";
body = ''
sortOn :: Ord b => (a -> b) -> [a] -> [a]
sortOn f = foldr insert []
where
insert x [] = [x]
insert x (y:ys)
| f x <= f y = x : y : ys
| otherwise = y : insert x ys
'';
}
];
};
ui = {
noice.enable = true;
colorizer.enable = true;