mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-05 18:40:53 +00:00
Merge pull request #1482 from vic/push-xqomlsslywmq
Alias vim.options as vim.opts
This commit is contained in:
commit
9779ffb81c
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue