Merge branch 'main' into undofile-opts

This commit is contained in:
raf 2024-09-17 17:53:45 +00:00 committed by NotAShelf
commit c7bfb3171b
Signed by: NotAShelf
GPG key ID: AF26552424E53993
19 changed files with 207 additions and 115 deletions

View file

@ -162,13 +162,13 @@ in {
};
undoFile = {
enable = mkEnableOption "undofile for Neovim";
enable = mkEnableOption "undofile for persistent undo behaviour";
path = mkOption {
type = either str luaInline;
default = mkLuaInline "vim.fn.stdpath('state') .. '/nvf/undo'";
default = mkLuaInline "vim.fn.stdpath('state') .. '/undo'";
defaultText = literalMD ''
```nix
mkLuaInline "vim.fn.stdpath('state') .. '/nvf/undo'"
mkLuaInline "vim.fn.stdpath('state') .. '/undo'"
```
'';
example = literalMD ''
@ -176,7 +176,7 @@ in {
mkLuaInline "os.getenv('XDG_DATA_HOME') .. '/nvf/undo'"
```
'';
description = "Path to the file in which undo history will be saved";
description = "Path to the directory in which undo history will be stored";
};
};
};