summaryrefslogtreecommitdiff
path: root/nvim/lsp/slint_lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lsp/slint_lsp.lua')
-rwxr-xr-xnvim/lsp/slint_lsp.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/nvim/lsp/slint_lsp.lua b/nvim/lsp/slint_lsp.lua
new file mode 100755
index 0000000..6090450
--- /dev/null
+++ b/nvim/lsp/slint_lsp.lua
@@ -0,0 +1,22 @@
+---@brief
+---
+--- 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 ]]
+--- ```
+return {
+ cmd = { 'slint-lsp' },
+ filetypes = { 'slint' },
+ root_markers = { '.git' },
+}