-
Notifications
You must be signed in to change notification settings - Fork 32
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
Feat: allow save_key to be a function #30
Comments
You can define the save_key on The reason that save_key is not free is because it can be very sensitive (and break other parts if not well implemented) |
@otavioschwanck id like to use the algorithm defined in this file (taken from folke/LazyVim), which I feel is slightly out of scope for any PR here. perhaps if we allowed which would call save_key.lsp()
save_key.git()
--same as: save_key.markers({listOfMarkers)
save_key.markers(unpack({listOfMarkers})
save_key.cwd() this could then also allow users to supply a function for each marker, which would then be called. basically, if I could then add the |
I'd like to assign a function that returns the root to save_key.
This would allow me to use LSP to return the root instead of only
cwd
andgit_root
.The new type of save_key would be
---@type string|fun(): string?
if the function returns nil, use the CWD as the root, else use the returned value
The text was updated successfully, but these errors were encountered: