Vim Users Super Thread

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Vim Users Super Thread

Post by josefnpat »

davisdude wrote:I'm reviving this thread show off the new syntax highlighting I created (and I totally didn't rip the idea from josefnpat...)

Anyway, you can view it here.
I have totally not been keeping up with the forums, but I remember seeing this repo and going, wow, this is awesome! Wait ... didn't I do something like this at one point?
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Vim Users Super Thread

Post by davisdude »

Yeah, it was inspired by yours but it does a couple things different.
It clones the LOVE-API repo into the repository to generate the syntax. It also uses a syntax file instead of a dictionary, this way it can be more customizable, like having highlighting only within a defined love.conf function (see second picture on github page for example), and also highlights sub-methods, like source:play(). I just wanted to create a more "complete" feeling highlighting.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Vim Users Super Thread

Post by s-ol »

Is there a way to use davisdude/vim-love-docs with Vundle?

Also has anyone ever gotten a löve omnicomplete setup to work?

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Vim Users Super Thread

Post by davisdude »

I've never used vundle or omnicomplete, but I plan on formatting it to be usable with Pathogen soon, so if I've read correctly, it should work with that.

Edit: Just committed some changes that restructure the file so that it should work with Vundle/Pathogen/etc. now. I also started working on docs so that you can just type help love-graphics-draw. If you have any input, let me know.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Vim Users Super Thread

Post by davisdude »

S0lll0s wrote:Is there a way to use davisdude/vim-love-docs with Vundle?
Hey, I've made some changes to formatting, it should work with Vundle now (as far as I know). I can confirm it does work with Pathogen, but Vundle remains untested.

Critiques and comments are welcome, although the code is becoming kind of unwieldy (the table of contents is almost 1,000 lines long! :shock:)
Check it out here
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests