Slight improvement regarding the git handles completion source #128
Nelyah
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
This is great @Nelyah; I think it proves exactly the point that I was trying to make in my video — namely, that with a bit of Lua, you can put together an autocomplete that pretty much fits your specific usecase (whatever that may be) like a glove. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @wincent,
I watched your video about adding a custom nvim-cmp source and got inspired to look up your solution. It felt really clunky that I had to maintain a
.json
files with the relevant handles. Especially if you switch between different repos of different teams (or open-source repos).I committed this to my dotfiles: Nelyah/dotfiles@f4cdb6a (check out the
.config/nvim/lua/completion-sources/handles.lua
file from that commit). Using plenary I'm gathering all users from the current repo I'm in, marshalling this intojson
format and then feeding the output to the function you made.All the work happens asynchronously. I feel that since a lot of the work originally comes from you, you could be interested in that solution as well! Thanks for showcasing it in the first place 😁
Beta Was this translation helpful? Give feedback.
All reactions