1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 06:40:05 +08:00
SpaceVim/bundle/nvim-lspconfig-0.1.4/lua/lspconfig/server_configurations/slint_lsp.lua
2023-03-29 11:59:27 +08:00

27 lines
511 B
Lua

return {
default_config = {
cmd = { 'slint-lsp' },
filetypes = { 'slint' },
single_file_support = true,
},
docs = {
description = [=[
https://github.com/slint-ui/slint
`Slint`'s language server
You can build and install `slint-lsp` binary with `cargo`:
```sh
cargo install slint-lsp
```
Vim does not have built-in syntax for the `slint` filetype at this time.
This can be added via an autocmd:
```lua
vim.cmd [[ autocmd BufRead,BufNewFile *.slint set filetype=slint ]]
```
]=],
},
}