Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions lsp/lateralus_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---@brief
---
--- https://github.com/bad-antics/lateralus-lang
---
--- Lateralus Language Server, providing IDE features for the Lateralus programming language.
---
--- The language server can be installed via:
--- ```sh
--- curl -fsSL https://lateralus.dev/install.sh | sh
--- ```
---
--- Or via cargo:
--- ```sh
--- cargo install lateralus-lsp
--- ```
---
--- Configuration:
--- ```lua
--- vim.lsp.config('lateralus_ls', {
--- settings = {
--- lateralus = {
--- inlayHints = {
--- enable = true,
--- typeHints = true,
--- parameterHints = true,
--- },
--- diagnostics = {
--- enable = true,
--- },
--- completion = {
--- autoImport = true,
--- }
--- }
--- }
--- })
--- ```

return {
cmd = { 'lateralus-lsp' },
filetypes = { 'lateralus' },
root_markers = { 'lateralus.toml', '.git' },
settings = {
lateralus = {
inlayHints = {
enable = true,
typeHints = true,
parameterHints = true,
},
diagnostics = {
enable = true,
},
completion = {
autoImport = true,
}
}
},
docs = {
description = [[
https://github.com/bad-antics/lateralus-lang

Lateralus Language Server provides full IDE support for the Lateralus programming language,
including semantic highlighting, code completion, go-to-definition, hover documentation,
rename refactoring, and inlay hints.

Features:
- Semantic syntax highlighting
- Code completion with auto-import
- Go to definition/references
- Hover documentation
- Rename refactoring
- Inlay type hints
- Code actions and quick fixes
- Workspace symbol search

Installation:
```sh
curl -fsSL https://lateralus.dev/install.sh | sh
```
]],
},
}
Loading