embe-ls

command module
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2022 License: GPL-3.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

embe-ls

An LSP implementation for embe.

Features

  • diagnostics
  • code completion
  • snippets
  • signature help
  • documentation on hover
  • display and edit colors
  • symbol rename

Installation

Build the embe-ls binary and place it somewhere in your PATH.

VS Code

Install the vscode-embe extension.

Neovim

Install the vim-embe plugin for syntax highlighting and indentation.

coc

In coc-settings.json:

{
  "languageserver": {
    "embe-ls": {
      "command": "embe-ls",
      "filetypes": ["embe"],
      "rootPatterns": [".git/", "."]
    }
  }
}
lspconfig

In init.lua:

local lspconfig = require('lspconfig')
local configs = require('lspconfig.configs')
configs.embe = {
  default_config = {
    cmd = { "embe-ls" },
    root_dir = lspconfig.util.root_pattern('.git'),
    single_file_support = true,
    filetypes = { 'embe' },
    init_options = {
      command = { 'embe-ls' },
    },
  },
}
lspconfig.embe.setup{}

Building

Prerequisites
  • Go 1.19+
git clone https://github.com/Bananenpro/embe-ls
cd embe-ls
go build

Config

You can configure embe-ls in one of the following locations:

  • Windows: %LOCALAPPDATA%\embe-ls\config.json
  • MacOS: ~/Library/Application Support/embe-ls/config.json
  • Linux: ~/.config/embe-ls/config.json

Example config:

{
	"log_file": "~/.cache/embe-ls.log", // the path for logging output (directory must exist) (leave empty to disable logging, default: "")
	"log_level": "trace", // the minimum log level (possible values: trace, info, warning, error, fatal, none, default: warning)
	"lsp_log_file": "~/.cache/embe-ls-lsp.log" // the path for Language Server Protocol logging output (leave empty to disable protocol logging, default: "")
}

License

Copyright (c) 2022 Julian Hofmann

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL