GithubHelp home page GithubHelp logo

davisdude / vim-love-docs Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 7.0 1.46 MB

Vim plugin for LÖVE syntax highlighting and help file

Home Page: http://www.vim.org/scripts/script.php?script_id=5298

License: MIT License

Batchfile 5.60% Lua 84.67% Shell 5.58% Vim Script 4.15%
love2d vim

vim-love-docs's People

Contributors

davisdude avatar idbrii avatar jacobsims avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vim-love-docs's Issues

Sort enums by module

I.e. File system: write mode, etc
Add 2 tags to be able to search: love-FileMode, love-filesystem-FileMode
Also love-filesysyem-enums

Allow for alternate love.conf

With the current syntax group for love.conf, the following declaration does not highlight love.conf or any of its flags.

love.conf = function
...

This is (most likely) because Lua's function group (luaFunctionBlock) is overriding it.

`lua: main.lua:42: table index is nil` while generating docs

> ./gen.sh
Cloning into 'love-api'...
remote: Enumerating objects: 5121, done.
remote: Counting objects: 100% (331/331), done.
remote: Compressing objects: 100% (185/185), done.
remote: Total 5121 (delta 191), reused 250 (delta 140), pack-reused 4790
Receiving objects: 100% (5121/5121), 5.60 MiB | 3.16 MiB/s, done.
Resolving deltas: 100% (3212/3212), done.
lua: main.lua:42: table index is nil
stack traceback:
	main.lua:42: in local 'getLoveTypes'
	main.lua:603: in main chunk
	[C]: in ?

It looks like t.name is not always set to a value.

LOVE_TYPES[t.name] = true

Pushd and Popd errors

In Linux (Kubuntu 17.10 in my case), needs #!/bin/bash on top of gen.sh files in order for pushd and popd to work.

I'll update the code and PR

Does it support vim-plug? I can't get it to work

Hello, I'm having difficulties with this plugin, the installation is fine, the plugin is installed, but nothing works:
the syntax is not highlighted and :help love.txt produces an error.
Any idea? Honestly I don't think it's related to vim-plug, maybe is it because I'm using neovim instead of vim?

Undefined variable g:lovedocs_colors

While launching vim on Ubuntu Linux, I get the following error:
Error detected while processing (...)/lua.vim:
line 13:
E121: Undefined variable: g:lovedocs_colors
line 14:
E121: Undefined variable: g:lovedocs_colors
line 15:
E121: Undefined variable: g:lovedocs_colors
line 16:
E121: Undefined variable: g:lovedocs_colors

Subsequently no commands are highlighted and the help file doesn't load.
If I comment those lines, the auto complete doesn't work, but the help file works fine.
Vim 8.1

Format like Vim Docs

                                    *ref* *ref-2*
name                   description blah blah blah
                       blah blah 

                       Arguments blah blah blah

                       Return values blah blah 
                       blah

Make love types jumpable by wrapping with || instead of <>

Currently generates docs that look like:

            `align`: <AlignMode>

                The alignment.

AlignMode is defined elsewhere but pressing K on it says "Sorry, no help for ". If you replace all <> with || (%sm/\v: \<(.*)\>$/: |\1|), then AlignMode becomes jumpable.

If lua types were prefixed with lrv- then they would be jumpable with luarefvim.

Consolidate topics

Put enums and types under modules.

i.e.

1. love                             |love-love|
  1.1. graphics                     |love.graphics|
    1.1.1. modules                  |love.graphics-modules|
      1.1.1.1. draw                 |love.graphics.draw|
    1.1.2. enums                    |love.graphics-enums|
      1.1.2.1. fillMode             |love.graphics-fillMode| |love-fillMode|
    1.1.3. types                    |love.graphics-types|
      1.1.3.1. Canvas               |love.graphics-Canvas| |love-Canvas|

To do this, indent size would have to be decreased in order to not cut off names

Pros:

  • More organised
  • More logical

Cons:

  • More work
  • Less clean (for table of contents, bc of spacing)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.