- Notifications
You must be signed in to change notification settings - Fork8
A text editor theme that visually differentiates languages.
License
jasonlong/lavalamp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
It currently works in Vim, but I hope to port it to Atom and Sublime Text.
====
Copylavalamp.vim to your.vim/colors directory.
$ cd lavalamp/vim$ cp lavalamp.vim ~/.vim/colors/Then update your.vimrc with these lines:
syntax enableset background=darkcolorscheme lavalampIf you're usingairline, you can install the lavalamp theme for that.
$ cd lavalamp/vim/autoload/airline/themes$ cp lavalamp.vim ~/.vim/autoload/airline/themes/For the iTerm theme, you should be able to double-click on thelavalamp/iterm/lavalamp.itermcolors file to install it.
If you're using CoffeeScript, I highly recommend installing thevim-coffee-script plugin since it offers much better syntax highlighting (which lavalamp utilizes).
For xterm, you should copy the contents ofxterm/Xresources to your~/.Xresources.
If you're running Vim in a terminal (as opposed to MacVim, etc.) this colorscheme won't work by default. You can use theCSApprox plugin to get it working though. You also may need to add this line to your.vimrc:
set t_Co=256The idea behind the theme is that each language has its own core color. This way, it's easier to visually differentiate languages when they're used together.
For example, HTML uses shades of blue while Ruby uses red. Then it's easy to see your ERB tags:
CSS uses purple (an homage to@mdo):
In a Sass file, it's easy to see vanilla CSS vs. Sass (which is red, since it's Ruby):
I've chosen green for #"auto">
And browns for Coffeescript:
The iTerm and Terminal themes look like so:
- Fork it (http://github.com/jasonlong/lavalamp/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
If you'd like to add support for addtional languages, you'll need to add new entries for each syntax scope. I have foundvim-HiLinkTrace to be very handy for figuring out what a given scope a character is in. Once you've installed that (via Vundle, NeoBundle, etc.), you can add a keyboard shortcut to your.vimrc. This is what I use:
nmap <leader>h :HLT<CR>Then, when your cursor is over a character you want to know about, hit<leader>h and the syntax scope will be shown at the bottom of your Vim window. Create a new line with this inlavalamp.vim.
I've been using this theme for a while in this state since these are the languages I mostly use. If more people want to use the theme, more languages will need to be fleshed out.
And I'd really ❤️ some help getting this working with Atom and Sublime as similarly as possible.
About
A text editor theme that visually differentiates languages.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Contributors2
Uh oh!
There was an error while loading.Please reload this page.