feat(home): move nvf config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 18:52:44 +08:00
parent af7226d30e
commit 1a3ff4b92a
No known key found for this signature in database
21 changed files with 40 additions and 50 deletions

View file

@ -0,0 +1,38 @@
{ lib, pkgs, ... }:
let
inherit (lib) singleton;
in
{
home.sessionVariables.EDITOR = "nvim";
persistDirs = singleton ".local/share/nvf";
programs.nvf.enable = true;
programs.nvf.settings.vim = {
startPlugins = [ pkgs.pantheon.snippets ];
hideSearchHighlight = true;
syntaxHighlighting = true;
telescope.enable = true;
searchCase = "ignore";
undoFile.enable = true;
fzf-lua.enable = true;
git.enable = true;
git.gitsigns.enable = false;
autopairs.nvim-autopairs.enable = true;
autocomplete = import ./_nvf/autocomplete.nix { inherit lib; };
binds = import ./_nvf/binds.nix;
clipboard = import ./_nvf/clipboard.nix;
diagnostics = import ./_nvf/diagnostics.nix;
keymaps = import ./_nvf/keymaps.nix;
languages = import ./_nvf/languages.nix;
lsp = import ./_nvf/lsp.nix;
navigation = import ./_nvf/navigation.nix;
notes = import ./_nvf/notes.nix;
options = import ./_nvf/options.nix;
notify = import ./_nvf/notify.nix;
snippets = import ./_nvf/snippets.nix;
statusline = import ./_nvf/statusline.nix;
treesitter = import ./_nvf/treesitter.nix;
ui = import ./_nvf/ui.nix;
utility = import ./_nvf/utility.nix;
visuals = import ./_nvf/visuals.nix;
};
}