|
||
---|---|---|
assets | ||
src | ||
test/data | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE.txt | ||
README.md |
README.md
⚠ This language server is still in it infancy. It only partially supports the SKILL language and can break quite easily during usage. ⚠
SKILL Rust Language Server - SRLS
a language server for Cadence SKILL,
Features
Variable completion
variables assigned to using the infix =
operator can be completed anywhere
Custom docstrings
;;; this is a custom docstring supported for variable definitions
variable = "some content"
this allows for the docstring to show during completion
Installation
neovim (lua)
using nvim-lspconfig
install srls
into your path or give the cmd
table entry the absolute path:
local nvim_lsp = require('lspconfig')
nvim_lsp.srls.setup({
cmd = {"srls"},
filetypes = {"skill"},
root_dir = root_pattern(".git")
})
astronvim
return {
lsp = {
servers = {
"skill_ls"
},
config = {
skill_ls = function()
return {
cmd = { "srls" },
filetypes = { "skill" },
root_dir = require('lspconfig.util').root_pattern(".git"),
}
end,
}
}
}