LSP server for sinbo. Type sinbo: in any file to get snippet completions.
macOS / Linux
curl -sSf https://raw.githubusercontent.com/sinbo-cli/sinbo_lsp/main/install.sh | shWindows
iwr https://raw.githubusercontent.com/sinbo-cli/sinbo_lsp/main/install.ps1 -UseBasicParsing | iexDownload the latest .vsix from releases then install it:
code --install-extension sinbo-lsp-0.1.0.vsixOr via the UI: Extensions > ... > Install from VSIX
Using lsp-mode. Add to your config:
(require 'lsp-mode)
(with-eval-after-load 'lsp-mode
(add-to-list 'lsp-language-id-configuration '(fundamental-mode . "plaintext"))
(lsp-register-client
(make-lsp-client
:new-connection (lsp-stdio-connection "sinbo-lsp")
:major-modes '(fundamental-mode text-mode prog-mode)
:server-id 'sinbo-lsp)))
(add-hook 'find-file-hook #'lsp)Install the LSP4IJ plugin, then add a new LSP server:
- Go to
Settings > Languages & Frameworks > LSP4IJ > New Language Server - Set command to
sinbo-lsp - Set file associations to
*or specific extensions you want - Apply and restart
Install the LSP package via Package Control, then add to your LSP settings (Preferences > Package Settings > LSP > Settings):
{
"clients": {
"sinbo-lsp": {
"enabled": true,
"command": ["sinbo-lsp"],
"selector": "source, text"
}
}
}Install vim-lsp, then add to your .vimrc:
if executable('sinbo-lsp')
au User lsp_setup call lsp#register_server({
\ 'name': 'sinbo-lsp',
\ 'cmd': {server_info->['sinbo-lsp']},
\ 'allowlist': ['*'],
\ })
endifAdd to your config (~/.config/nvim/init.lua):
vim.api.nvim_create_autocmd("FileType", {
pattern = "*",
callback = function()
vim.lsp.start({
name = "sinbo-lsp",
cmd = { "sinbo-lsp" },
root_dir = vim.fn.getcwd(),
})
vim.bo.omnifunc = "v:lua.vim.lsp.omnifunc"
end,
})Add to ~/.config/helix/languages.toml:
[language-server.sinbo-lsp]
command = "sinbo-lsp"
[[language]]
name = "markdown"
language-servers = ["sinbo-lsp"]Add more [[language]] blocks for other file types as needed.
Add to ~/.config/zed/settings.json:
{
"lsp": {
"sinbo-lsp": {
"binary": {
"path": "sinbo-lsp"
}
}
}
}Any editor with LSP support can use sinbo-lsp. Point your editor's LSP client at the sinbo-lsp binary using stdio transport. Check your editor's LSP configuration documentation for the exact steps.
Type sinbo: anywhere in your editor, a completion list of your saved snippets appears. Select one to insert the full snippet content. Encrypted snippets show as [encrypted] and are not inserted.