-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
lib: function for custom plugin setup()
arguments
#181
lib: function for custom plugin setup()
arguments
#181
Conversation
b98889a
to
aff4f4b
Compare
@horriblename I'd like to lend a hand with this, as my schedule is finally clearing up. Which modules would you like me to take a look at? |
thanks! been kinda busy lately so I couldn't put much into this you can start with any directory in right now the conversion process is something like:
some problems I haven't worked out:
|
I get the idea behind extractDefault (I think) but it looks like a clever abuse of functional programming. As you said, it "feels" bad. Pretty sure we can run up to some very abstract errors through that. I'll see if I can get around that. In other news, I'm still not even sure how freeform modules are meant to work. Other projects (the ones that I'm aware of) are either raw lua, or they mkOption for each plugin option like we do. That's a solution, but it gets out of hand in time.
I'm not sure how many of the users actually use all 146 of the nvim-tree options. I know I don't. We can go around deprecating those with a major release (0.7) to give people the option to remain on 0.6 until they get around changing the old options. A "migration guide" of sorts would definitely not hurt. |
turns out I don't need maybe we can use |
we already use mkRenamedOptionModule as of v0.6 release - it has a few problems that I don't know how to work out (i.e the file location is not always reported correctly) but should work for the most part, though it's still a problem for us to rename all the options we got rid of |
@horriblename what do you think about backporting the library changes of this plugin into main, and creating a new branch for individually updating each major pluigins? I've been meaning to add a few plugins, but avoiding adding more lua configuration until we get this one through - it'd make adding quick plugins faster, and we can tackle large plugins on our own accord. |
what do you mean backport? we can merge this now if thats what you mean |
I'm talking about extracting specifically the lib changes and merging them into main, keeping plugin config translations in this branch for the foreseeable future. We can rebase this, and it should contain only plugin changes. |
9f8626d
to
59b2e6b
Compare
setup()
setup()
arguments
I've removed the changes to nvim-tree, lualine and telescope. You can merge this first, then I'll make a new PR for the plugins |
setup()
argumentssetup()
arguments
…config lib: function for custom plugin `setup()` arguments
closes #133
I started playing around with the idea a bit more. will try to convert the bigger plugins first to get a grasp on how it would go
progress (by directories in
modules/
)assistant
autopairs
basic**
comments
completion
core**
[-] dashboard
debugger
dap-ui
filetree
git
languages (need rawLua)
lsp
minimap
notes
projects
rich-presence
session
snippets
statusline
tabline
terminal
theme
treesitter
ui
utility
- [ ] cheatsheet
- [ ] filetree
- [ ] nvimtree-lua
- [ ] hop
- [ ] leap
- [ ] glow
visuals
*no breaking changes: I won't add it for now, since they can be easily added later
**nothing to do
random bugs I found:
defaults
but most are notextensions
should not be underoptions