0.5.3 • Published 5 months ago

mlogls v0.5.3

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
5 months ago

mlogls

A language server protocol implementation for the Mindustry's logic programming language, also known as mlog.

What is a language server?

From https://microsoft.github.io/language-server-protocol/overview

The idea behind a Language Server is to provide the language-specific smarts inside a server that can communicate with development tooling over a protocol that enables inter-process communication.

In simpler terms, this allows editor and addon devs to add support for mlog specific 'smarts' (e.g. diagnostics, autocomplete, etc) to any editor without reinventing the wheel.

Features

Currently Supported:

  • Diagnostic messages
  • Formatting
  • Autocompletions
  • Symbols in Outline panel
  • Color highlighting and color picker
  • Go to definition
  • Code Actions

How can I use it?

Install a plugin for your editor:

VS Code

mlogls has a VS Code extension (mlogls-vscode)

Neovim

First install mlogls globally with a package manager:

npm i -g mlogls

Then, you can have a simple setup using lspconfig.

local lspconfig = require("lspconfig")
local configs = require("lspconfig.configs")

vim.filetype.add {
  extension = {
    mlog = "mlog"
  }
}

configs.mlogls = {
  default_config = {
    cmd = { "mlogls", "--stdio" },
    filetypes = { "mlog" },
    single_file_support = true
  }
}

configs.mlogls.setup {}
0.5.3

5 months ago

0.5.0

5 months ago

0.5.2

5 months ago

0.5.1

5 months ago

0.4.1

10 months ago

0.4.0

10 months ago

0.3.0

11 months ago

0.2.0

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago