1

Modules/Neovim: Don't hardcode home directory

This commit is contained in:
2026-03-21 14:46:11 +01:00
parent d0e6fe072a
commit 9e62f755bb
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ in {
maplocalleader = ",";
};
opts = import ./vim_opts.nix {inherit lib mylib;};
opts = import ./vim_opts.nix {inherit config lib mylib;};
extraConfigLuaPost = builtins.readFile ./extraConfigLuaPost.lua;
extraConfigLua = builtins.readFile ./extraConfigLua.lua;

View File

@ -1,4 +1,4 @@
_: {
{config}: {
showmode = false; # Status line already shows this
backspace = ["indent" "eol" "start"];
termguicolors = true; # Required by multiple plugins
@ -37,7 +37,7 @@ _: {
# swapfile = true;
# backup = false;
undofile = true;
undodir = "/home/christoph/.vim/undo";
undodir = "${config.home.homeDirectory}/.vim/undo";
undolevels = 10000;
# autochdir = true;
confirm = true;