Skip to content

neovim: gradually deprecate shorthand vim.* aliases to vim.options and vim.globals#480

Merged
NotAShelf merged 13 commits intomainfrom
more-option-stuff
Jan 10, 2025
Merged

neovim: gradually deprecate shorthand vim.* aliases to vim.options and vim.globals#480
NotAShelf merged 13 commits intomainfrom
more-option-stuff

Conversation

@NotAShelf
Copy link
Owner

Slowly deprecates top-level options that used to set Neovim's vim.opt options in favor of vim.options and vim.globals module options.

@NotAShelf NotAShelf changed the base branch from main to v0.7 December 2, 2024 21:57
@NotAShelf NotAShelf changed the base branch from v0.7 to main January 4, 2025 12:36
@NotAShelf NotAShelf marked this pull request as ready for review January 10, 2025 07:10
@NotAShelf NotAShelf mentioned this pull request Jan 10, 2025
1 task
@NotAShelf NotAShelf linked an issue Jan 10, 2025 that may be closed by this pull request
1 task
@NotAShelf NotAShelf merged commit 5250f8e into main Jan 10, 2025
10 checks passed
Comment on lines +240 to +248
signcolumn = mkOption {
type = either str bool;
default = true;
apply = x:
if isBool x
then toVimBool x # convert to a yes/no str
else x;
description = "Show the sign column";
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just have it be a string, and remove the toVimBool function

'';

example = literalExpression ''"$${builtins.readFile ./my-lua-config-pre.lua}"'';
example = literalExpression ''''${builtins.readFile ./my-lua-config-pre.lua}'';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
example = literalExpression ''''${builtins.readFile ./my-lua-config-pre.lua}'';
example = literalExpression "\${builtins.readFile ./my-lua-config-pre.lua}";

@github-actions github-actions bot deleted the more-option-stuff branch April 1, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mouse option combinations

3 participants