https://github.com/sergiobenitez/ott-lsp
A rudimentary LSP server for ott.
https://github.com/sergiobenitez/ott-lsp
Last synced: 3 months ago
JSON representation
A rudimentary LSP server for ott.
- Host: GitHub
- URL: https://github.com/sergiobenitez/ott-lsp
- Owner: SergioBenitez
- Created: 2025-01-14T12:22:18.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-21T10:07:04.000Z (5 months ago)
- Last Synced: 2025-03-05T16:43:59.840Z (3 months ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ott-lsp
A simple, mostly WIP (but working) LSP server for [ott]. To use with (neo)vim,
`cargo install --path .` then configure:```lua
local lspconfig = require('lspconfig')
local configs = require('lspconfig.configs')configs.ott_lsp = {
default_config = {
cmd = { 'ott-lsp' },
filetypes = { 'ott' }
root_dir = function()
return vim.fn.getcwd()
end,
single_file_support = true,
settings = {
-- pass additional flags to ott command
ottFlags = { "-additional", "ott_flags", "true" }
}
},
}lspconfig.ott_lsp.setup()
```[ott]: https://github.com/ott-lang/ott