summaryrefslogtreecommitdiff
path: root/hm/editors/nvf.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
committeradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
commit791bc419b6dac7c70951981ef6b34cdf85828470 (patch)
tree56d0962fdf829ae942feb1344763e54dbc3c89a3 /hm/editors/nvf.nix
parente60410393cea222b16743a1a87f29c06b9b3543b (diff)
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'hm/editors/nvf.nix')
-rw-r--r--hm/editors/nvf.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/hm/editors/nvf.nix b/hm/editors/nvf.nix
new file mode 100644
index 0000000..91348a9
--- /dev/null
+++ b/hm/editors/nvf.nix
@@ -0,0 +1,48 @@
+{ inputs, config, lib, pkgs, ... }:
+let
+ cfg = config.szpont.hm.editors.nvf;
+in
+{
+ options.szpont.hm.editors.nvf.enable = lib.mkEnableOption "enables nvf configuration framework";
+
+ config = lib.mkIf cfg.enable {
+ programs.nvf = {
+ enable = true;
+
+ settings.vim = {
+ package = inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default;
+
+ viAlias = true;
+ vimAlias = true;
+
+ theme = {
+ enable = true;
+ name = "gruvbox";
+ style = "dark";
+ };
+
+ statusline = {
+ lualine = {
+ enable = true;
+ theme = "gruvbox-material";
+ };
+ };
+
+ autopairs.nvim-autopairs.enable = true;
+
+ lsp.enable = true;
+
+ languages = {
+ nix = {
+ enable = true;
+ format = {
+ enable = true;
+ type = "alejandra";
+ };
+ };
+ clang.enable = true;
+ };
+ };
+ };
+ };
+}