1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 01:00:04 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/slint_lsp.lua

27 lines
511 B
Lua
Raw Normal View History

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 ]]
```
]=],
},
}