-
Notifications
You must be signed in to change notification settings - Fork 267
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
Added Denite Support #191
Added Denite Support #191
Conversation
abbr is what is displayed to the denite buffer. It's intended use is to change how the source is displayed without changing the source candidates themselves.
…ldnt really matter
@0phoff Thanks for this by the way! Sorry for the delay 😄 |
Do I need to change anything for you to merge it in? |
@0phoff At a glance it looks good so nope I don't think you need to change anything 👍 I have just been away from the project since end of last year and still trying to get my dev environment back up to 100%. I will let you know if I have any issues with the PR. |
Hi, I just tried this branch and I'm running into a couple of issues:
|
Hey, It is normal that denite gets a little slower with this plugin! It has to fetch images for all filetypes after all! About the other issue, thats probably a problem of load order of the plugins, make sure you load WebDevIcons as last plugin, but the issue might be in the coding and not your fault.. |
@0phoff Thanks for following up. @sodiumjoe Yeah I also think that error seems unrelated to the branch but I haven't had a chance to test that out (having nerdtree open on load) |
@0phoff thanks for the response!
|
Hmm not to sure about the input lag thing.. I though it was kinda the same with unite! I implemented this the same way as @ryanoasis did for unite, so I am guessing that it has to do with how denite implemented things.. Denite is usually faster than unite though, so that seems weird... (btw in the denite docs, the author says that ripgrep is slower than Ag.. Not sure if it is true but might be worth checking out) As for the second error, that might be my fault.. I changed some things in how this plugins gets loaded |
I just tried with Happy to supply any debugging info for the nerdtree issue! |
Is it possible to also include support for |
@0phoff Hey so first sorry for the delay (been busy with some other things and I had to rebuild my vim8 with only python 3 support -- since Denite requires Vim8 + Python3) TestingI have tested your PR a bit and it does add the glyphs however it always seems to use the default. This looks like it is because the Your changesMy additional changes (see gist diff)Here is my changeset with the icons showing for the correct types: See changes here: VimDevIcons-PR191-feedback.diff (my working changes) There are obviously some tweaks we probably want to do (add padding before glyph, retain the buffer number, etc.) Looks like we need to revert back to the simple init: |
@0phoff I am leaning toward merging this in and then making my changes I posted above (see the diff) for the next release (maybe this weekend) |
@ryanoasis, Do as you want! I don't have to much time to work on this either (last month before I have to turn in my thesis...), so do what you need to do! About your problem with the abbr. In my denite setup the only thing in this string is the path to the file, so I didn't give it much thought... Your solution is thus more appropriate! One thing I was thinking about is the fact that we are calling the getFileTypeSymbol function in vim, through the self.vim.funcs functionality. I did this so I didn't have to duplicate code in python that was already in vimscript. |
ooh, i wonder if that would help my perf issue |
@0phoff Sure thanks I understand! 😄 Yeah a lot of the logic I added was more or less the same as was done for Unite. @0phoff , @sodiumjoe Good point on the vim function calls 👍 I feel like things are really starting to log jam (mostly my fault). So I think for now what I'll do is incorporate my changes with yours and as long as it's working I will call it 'good enough' for now 😆 . However if the performance issue is really because of this then we can enhance it and re-implement the necessary functions in Python 🤔 |
* fixes load errors * fixes display of icons in Denite
should i open a new issue for the perf issues? |
@sodiumjoe Yes feel free to do that 😄 |
Requirements (please check off with 'x')
What does this Pull Request (PR) do?
Add support for the denite plugin
Any background context you can provide?
works the same way as the unite converter, but denite requires any addons to be coded in python so that's what I did!
Screenshots (if appropriate or helpful)