Skip to content

Releases: shmargum/vim-sass-colors

Enable on less and css

18 Apr 07:13
Compare
Choose a tag to compare
v1.0.1

add less and css support

Full Color Support

18 Apr 07:11
Compare
Choose a tag to compare

Add support for 3 char hex, hsl(a), and css colors.
Add support for specifying default import paths and files.

Add more default style folders

12 Jul 16:31
5350f59
Compare
Choose a tag to compare

Additionally checks if current file is in a /style/ or /styles/ directory for more robust default color importing support.

Handle new window in buffer

15 Dec 22:03
b11aa78
Compare
Choose a tag to compare

Fixes issue with doing a simple vim split with no other file.
Scope variables to windows instead of buffers.
Detect first entry of a new window in the case a read was not performed.

Restricts imports to match the file suffix.

11 Dec 23:19
626fbf8
Compare
Choose a tag to compare

only imports .scss files if you open a .scss file, etc.
resolves bugs when file is found matching your import name, but has a wrong suffix
this seems like a general enough use case, but if we are abiding by ruby's Dir.glob restrictions, we can't use a restrictive regex to only allow /\.scss|\.sass|\.less/

Support loading a new buffer

23 Jun 23:14
Compare
Choose a tag to compare

Fixes some issues when closing a buffer and then opening the same file
Adds hook to run on reading new buffers

Fix for using with vim split

14 Jun 23:31
Compare
Choose a tag to compare
Merge pull request #3 from shmargum/fix-vs

fix issue for vim split

Fix interaction with other vim plugins using matchadd

12 Jun 14:48
Compare
Choose a tag to compare

Instead of calling clearmatches() which clears all matches added with matchadd() we instead keep a list of matches we have added and just clear those on (re)save.

Additionally fixed typo where we were adding unnecessary 'placeholder' matches, this will speed up the plugin the more colors you use that are unassigned to variables.

Enhance performance

10 Jun 01:32
Compare
Choose a tag to compare

previously, when saving a file repeatedly, we would re-parse everything and keep adding duplicate matches which would slow down vim after many saves

  • clears matches before running each time
  • doesn't redefine a highlight group
  • doesn't re-add rgb, rgba, or hex color literal mathes

Clean up file import logic

09 May 18:27
Compare
Choose a tag to compare

Should still work the same as previous version
Cleaned up and encapsulated file import logic
Squeezes adjacent slashes (/) in globbing (no difference, but cleaner)