Enhanced HTML-CSS Autocompletion Features for Neovim
ESSO0428 opened this issue · comments
Hello everyone,
I have been working on a fork of the HTML-CSS autocompletion plugin for Neovim, and I'm excited to share some enhancements that might be beneficial for the community. My fork can be found here: https://github.com/ESSO0428/nvim-html-css.
Enhancements include:
- External Git Repository Support: The plugin now operates smoothly outside of a git repository, maintaining a performance that is robust and efficient.It supports autocompletion for both CSS
classes
andids
, enhancing coding efficiency. - Selective File Reading: Instead of loading the entire working directory, the plugin now only reads the style tags and linked CSS from the currently open HTML file. This significantly reduces performance overhead.
- Asynchronous Operations and CSS File Monitoring: Implemented mechanisms for asynchronous operations and monitoring changes in CSS files to improve responsiveness and reduce lag.
- Caching for Remote URLs: To enhance performance, the plugin now downloads and caches files from remote URLs, speeding up subsequent accesses to these files.
- Enhanced Template Support for htmldjango: In addition to the above, for
htmldjango
files (*.html), the plugin will also read templates extended by the current file, including any href or style tags within those templates. - Completion Item Symbols:
- Items from the
style tags
in the current HTML file are marked with a star symbol (★) to indicate their source. - Items from remote CSS files linked (
link tags
) via href in previously accessed HTML files are marked with a globe symbol (🌐) to denote their remote origin. - Completion items from local CSS files linked (
link tags
) via href in any HTML file do not have a symbol, maintaining a clean and simple identification.
- Items from the
I hope these enhancements will be helpful for your ongoing development and perhaps could be integrated into the original project. I'm looking forward to any feedback or suggestions you might have!
Best regards,
Thank you to the development team for your hard work and dedication.
Thank you for sharing these amazing enhancements. They will be very helpful for the upcoming development of the plugin. I have a bunch of ideas to improve the user experience and plugin performance, and these enhancements will definitely be beneficial in implementing those ideas. Once again, thank you for sharing!