diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
| commit | b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch) | |
| tree | 366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/slint_lsp.lua | |
Nixos
Diffstat (limited to 'nvim/lsp/slint_lsp.lua')
| -rwxr-xr-x | nvim/lsp/slint_lsp.lua | 22 |
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' }, +} |
