nvf and cleanup

This commit is contained in:
foglar 2025-01-11 21:28:39 +01:00
parent a75ef902af
commit 8111065f13
4 changed files with 47 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ {
description = "My highly sofisticated and complicated flake"; description = "My highly sophisticated and complicated flake";
inputs = { inputs = {
install-script = { install-script = {
@ -60,6 +60,8 @@
url = "github:ghostty-org/ghostty"; url = "github:ghostty-org/ghostty";
}; };
nvf.url = "github:notashelf/nvf";
# Nix on Droid Configuration # Nix on Droid Configuration
nixpkgs-droid.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs-droid.url = "github:NixOS/nixpkgs/nixos-24.05";
@ -162,5 +164,13 @@
}; };
}; };
}; };
packages."x86_64-linux".default =
(inputs.nvf.lib.neovimConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [
./nixos/system/packages/nvf.nix
];
})
.neovim;
}; };
} }

View File

@ -30,7 +30,7 @@
++ ( ++ (
if pkgs.system == "x86_64-linux" if pkgs.system == "x86_64-linux"
then [ then [
nvtopPackages.full #nvtopPackages.full
toybox toybox
] ]
else [] else []

View File

@ -0,0 +1,31 @@
{...}: {
vim = {
viAlias = true;
vimAlias = true;
theme = {
enable = true;
name = "catppuccin"; # catppuccin, tokyo-night, one-dark
style = "mocha";
};
languages = {
enableLSP = true;
enableTreesitter = true;
nix.enable = true;
rust.enable = true;
python.enable = true;
lua.enable = true;
csharp.enable = true;
go.enable = true;
markdown.enable = true;
clang.enable = true;
html.enable = true;
};
statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
};
}

View File

@ -41,11 +41,14 @@
"x-scheme-handler/https" = "${config.xdg.da.browser}.desktop"; "x-scheme-handler/https" = "${config.xdg.da.browser}.desktop";
"x-scheme-handler/about" = "${config.xdg.da.browser}.desktop"; "x-scheme-handler/about" = "${config.xdg.da.browser}.desktop";
"x-scheme-handler/unknown" = "${config.xdg.da.browser}.desktop"; "x-scheme-handler/unknown" = "${config.xdg.da.browser}.desktop";
"text/plain" = "${userSettings.editor}.desktop"; "text/plain" = "${userSettings.editor}.desktop";
"application/pdf" = "org.gnome.Evince.desktop"; "application/pdf" = "org.gnome.Evince.desktop";
"image/svg+xml" = "org.gnome.Loupe.desktop"; "image/svg+xml" = "inkscape.desktop";
"image/jpeg" = "org.gnome.Loupe.desktop"; "image/jpeg" = "org.gnome.Loupe.desktop";
"image/png" = "org.gnome.Loupe.desktop"; "image/png" = "org.gnome.Loupe.desktop";
"inode/directory" = "org.gnome.Nautilus.desktop";
"video/mp4" = "mpv.desktop";
}; };
programs.zsh.enable = programs.zsh.enable =