Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teal-language/teal-language-server
A language server for Teal, a typed dialect of Lua
https://github.com/teal-language/teal-language-server
Last synced: 12 days ago
JSON representation
A language server for Teal, a typed dialect of Lua
- Host: GitHub
- URL: https://github.com/teal-language/teal-language-server
- Owner: teal-language
- License: mit
- Created: 2021-02-01T06:23:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T12:16:51.000Z (2 months ago)
- Last Synced: 2024-08-29T13:37:02.801Z (2 months ago)
- Language: Lua
- Size: 202 KB
- Stars: 74
- Watchers: 10
- Forks: 8
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Teal Language Server
A language server for the [Teal language](https://github.com/teal-language/tl)
[![test](https://github.com/teal-language/teal-language-server/actions/workflows/test.yml/badge.svg)](https://github.com/teal-language/teal-language-server/actions/workflows/test.yml)
# Installation
### From luarocks
* `luarocks install teal-language-server`
* `teal-language-server`Tested on Windows, Linux and macOS
### From source
* Clone repo
* From repo root:
* `scripts/setup_local_luarocks`
* `./lua_modules/bin/teal-language-server`# Features
* Go to definition (`textDocument/definition`)
* Linting (`textDocument/publishDiagnostics`)
* Intellisense (`textDocument/completion`)
* Hover (`textDocument/hover`)# Editor Setup
### Neovim
Install the [lspconfig plugin](https://github.com/neovim/nvim-lspconfig) and put the following in your `init.vim` or `init.lua`
```lua
local lspconfig = require("lspconfig")lspconfig.teal_ls.setup {}
```# Usage
```
teal-language-server [--verbose=true] [--log-mode=none|by_proj_path|by_date]
```Note:
* All args are optional
* By default, logging is 'none' which disables logging completely
* When logging is set to by_proj_path or by_date, the log is output to `[User Home Directory]/.cache/teal-language-server`