-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(options): take ownership of options.txt #24528
Conversation
2d3457b
to
ec9d6ad
Compare
ec9d6ad
to
cd73f42
Compare
Nice! Is the plan here to bootstrap |
Is there any plan to do the same to I think referencing https://github.com/folke/neodev.nvim/blob/main/lua/neodev/build/options.lua for generating it would also be nice |
Assuming we are ok to take ownership of options.txt. Since you're asking I'll take that as a yes.
Yes. |
In the generated file, I think |
cd73f42
to
ef0d376
Compare
Reworking this PR to take ownership of the options documentation, similar for what we've done for |
Not in favor of that. We shouldn't add more "armor" around vim.opt, we need to deprecate it and enhance vim.o to serve any missing important use-case. #20107 |
021e1a6
to
5f5510d
Compare
5f5510d
to
e6a3a82
Compare
48806f7
to
5b2981d
Compare
5b2981d
to
2ce0128
Compare
2ce0128
to
fd4a4b4
Compare
Almost similar thing for |
fd4a4b4
to
9c5748d
Compare
7c49308
to
b3d6443
Compare
@@ -2,3 +2,4 @@ | |||
/src | |||
/test | |||
/runtime/lua/vim/re.lua | |||
/runtime/lua/vim/_meta/options.lua |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is failing on stylua however adding this line doesn't seem to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it failing? Is it feasible to fix the warnings?
language annotations? 🥺 |
As with the eval.lua, I'd like to avoid that in this PR just to make the diffs reviewable. The larger the diff, the higher the risk of mistakes not getting caught. |
b3d6443
to
8735c36
Compare
Unless anyone wants me to hold off, I'll merge this sometime tomorrow. |
Needs rebase and regeneration of docs |
- `src/nvim/options.lua` is now the source of truth - generate runtime/lua/vim/_meta/options.lua
d6adad0
to
fe5eadf
Compare
* docs(options): take ownership of options.txt - `src/nvim/options.lua` is now the source of truth - generate runtime/lua/vim/_meta/options.lua * fixup! zeer comments * fixup! zeer comments (2) * fixup! re-enable luacheck * fixup! regen
* docs(options): take ownership of options.txt - `src/nvim/options.lua` is now the source of truth - generate runtime/lua/vim/_meta/options.lua * fixup! zeer comments * fixup! zeer comments (2) * fixup! re-enable luacheck * fixup! regen
Will https://github.com/ii14/emmylua-nvim still be necessary with this PR / once nvim 0.10.0 gets released? |
Credit to: https://github.com/ii14/emmylua-nvim/tree/master