NotAShelf / nvf

A highly modular, extensible and distro-agnostic Neovim configuration framework for Nix/NixOS.
https://notashelf.github.io/nvf/
MIT License
212 stars 29 forks source link

neovim/basic: add undofile options #367

Closed NotAShelf closed 1 month ago

NotAShelf commented 2 months ago

vim.undoFile.enable and vim.undoFile.path can be used to manipulate whether undofile will be enabled, and the location if it is enabled.

Closes #331

Soliprem commented 1 month ago

This looks good to me. I do think having undofiile.path have a sane default rather than throw an error if it's unspecified would provide a smoother transition from a lua config, but it's a minor inconvenience

NotAShelf commented 1 month ago

I think using a default value makes too many assumptions about user's setup. I'll see if Neovim can pick this path by itself without us supplying a value.

Soliprem commented 1 month ago

that looks like it would work