Giter Site home page Giter Site logo

minetest-tools's Introduction

Minetest Tools

Repository | Issues

Features

  • Minetest (5.4.1) Lua API code autocompletion
  • Mod and game folder structure boilerplates
  • .luacheckrc generator (globals only)
  • Formspec string syntax highlighting

Note: Code snippets were generated from lua_api.txt using snippets.js. Quality not guaranteed.

Extension Settings

  • minetest-tools.workspaceOnly: Code snippets will only be shown if certain files/folders (init.lua, mods, modpack.txt) are detected in the main workspace folder (default: true).

  • editor.quickSuggestions.strings: Some snippets (formspecs, texture modifiers) depend on string suggestions being enabled. This can be very annoying sometimes, so the snippets will only work if the string key in editor.quickSuggestions is set to true.
    It should look something like this:

     "editor.quickSuggestions": {
     	"other": true,
     	"comments": false,
     	"strings": true
     }

TODO

  • Make autocomplete snippets update automatically when needed
  • Generate .luacheckrc and snippet.js from API
  • Fix formspec element autocomplete (this will require a language server)

Release Notes

1.4.1: June 12, 2021

  • Fixed function arguments breaking on certain characters
  • Fixed autocompletion of constants

1.4.0: April 30, 2021

  • API autocompletion bumped to Minetest version 5.4.1
  • Rewrote snippet generator
    • No longer requires manual input
    • Captures all API methods, tables, and constants
    • Adjusted quick info formatting
    • Includes API links
  • CompletionItemProvider can handle some backspacing now
  • Methods with functions as parameters are a little smarter now
  • Texture modifiers will remove trailing bracket if autocompleted
  • Global constructors and namespaces now have snippets
  • Added missing globals to .luacheckrc
  • Fixed and tweaked formspec highlighting

1.3.1: January 18, 2020

  • Fixed incorrect method snippets

minetest-tools's People

Contributors

afcms avatar dependabot[bot] avatar greenxenith avatar

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.