An open API service indexing awesome lists of open source software.

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.

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