Merge pull request #1482 from vic/push-xqomlsslywmq

Alias vim.options as vim.opts
This commit is contained in:
raf 2026-03-24 13:07:07 +03:00 committed by GitHub
commit 9779ffb81c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -13,6 +13,9 @@ isMaximal: {
logFile = "/tmp/nvim.log";
};
# vim.opts and vim.options are aliased
opts.expandtab = true;
spellcheck = {
enable = true;
programmingWordlist.enable = isMaximal;

View file

@ -78,6 +78,11 @@ in {
};
};
# Alias vim.options as vim.opts.
# This is a convenience for people using frameworks like flake-parts or Den that use lib.types.deferredModule
# and users would set `vim.options` but error when Nix confuses it with Nix Module's options-definitions.
imports = [(lib.mkAliasOptionModule ["vim" "opts"] ["vim" "options"])];
config.vim = {
# Set options that were previously interpolated in 'luaConfigRC.basic' as vim.options (vim.o)
# and 'vim.globals' (vim.g). Future options, if possible, should be added here instead of the