[neovim] Adds configs. Auto-sessions doesn't load properly.

This commit is contained in:
2025-02-04 09:57:37 -08:00
parent cc6705d3b9
commit 6c1f099e12
7 changed files with 90 additions and 15 deletions

View File

@@ -0,0 +1,42 @@
{ pkgs, lib, ... }:
let
fromGitHub = repo: ref: rev: pkgs.vimUtils.buildVimPlugin {
pname = "${lib.strings.sanitizeDerivationName repo}";
version = ref;
src = builtins.fetchGit {
url = "https://github.com/${repo}.git";
ref = ref;
rev = rev;
};
};
in
{
home.file.".config/nvim" = {
source = ./config/neovim;
recursive = true;
};
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [
nvim-treesitter
surround-nvim
telescope-nvim
plenary-nvim # dependency of telescope
rnvimr
(fromGitHub "decaycs/decay.nvim" "HEAD" "457014541ebcfb29bd660592a0b02f22c9e2d0e2")
auto-session
];
extraPackages = with pkgs; [
gcc # For treesitter complation
ripgrep # Search support
wayclip # Clipboard support
fd # finder for telescope
];
};
}