Skip to content

Consider renaming options option under vim to be named opts. #1469

@vic

Description

@vic

Hello,

I'm the author of Den, after someone asking how to use NVF standalone with Den, I created an example for them, Den uses a deferred vim module, that will later be given to inputs.nvf.lib.neovimConfiguration

{
  vim.lazy.plugins = { ... };    # works 
  vim.options.expandtab = true;  # FAILS
}

The problem rises from vim being a deferred module, and NVF defining an option named options, our current workaround is to use

{
  vim.config.options.expandtab = true; # Explicit about `options` being a config value
}

However, given that NVF uses Opts suffix for things like plugin's setupOpts, I was wondering if it would be better for NVF to use vim.opts instead of vim.options.

Having an mkAliasOptionModule [ "opt" ] [ "options" ] would also work.

See vic/den#322 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions