lua/custom/lsp/** configs This commit removes the need for nvim-lspconfig which is replaced by the vim.lsp API. The lsp/ folder is a copy of nvim-lspconfig's lsp/ folder as it makes it easy to modify LSP configurations on the fly. Conform: biome has been replaced with oxfmt
32 lines
785 B
Lua
32 lines
785 B
Lua
---@brief
|
|
--- https://www.osohq.com/docs/develop/local-dev/env-setup
|
|
---
|
|
--- Oso Polar language server.
|
|
---
|
|
--- `oso-cloud` can be installed by following the instructions
|
|
--- [here](https://www.osohq.com/docs/develop/local-dev/env-setup).
|
|
---
|
|
--- The default `cmd` assumes that the `oso-cloud` binary can be found in the `$PATH`.
|
|
---
|
|
--- You may need to configure the filetype for Polar (*.polar) files:
|
|
---
|
|
--- ```
|
|
--- autocmd BufNewFile,BufRead *.polar set filetype=polar
|
|
--- ```
|
|
---
|
|
--- or
|
|
---
|
|
--- ```lua
|
|
--- vim.filetype.add({
|
|
--- pattern = {
|
|
--- ['.*/*.polar'] = 'polar',
|
|
--- },
|
|
--- })
|
|
---
|
|
--- Alternatively, you may use a syntax plugin like https://github.com/osohq/polar.vim
|
|
|
|
---@type vim.lsp.Config
|
|
return {
|
|
cmd = { 'oso-cloud', 'lsp' },
|
|
filetypes = { 'polar' },
|
|
}
|