2023-05-27 21:45:03 +02:00
2023-04-16 15:14:25 +02:00
2023-04-16 15:14:25 +02:00
2023-03-10 20:29:10 +01:00
2023-04-16 14:39:18 +02:00
2023-04-17 08:47:53 +02:00
2023-05-27 21:45:03 +02:00

⚠ 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:

require('lspconfig.configs').srls = {
    default_config = {
        cmd = {"srls"},
        filetypes = {"skill"},
        root_dir = require('lspconfig.util').root_pattern(".git")
    }
}
require('lspconfig').srls.setup({})

astronvim

return {
  lsp = {
    servers = {
      "skill_ls"
    },
    config = {
      skill_ls = function()
        return {
          cmd = { "srls" },
          filetypes = { "skill" },
          root_dir = require('lspconfig.util').root_pattern(".git"),
        }
      end,
    }
  }
}
S
Description
Cadence SKILL Rust Language Server
Readme 8.7 MiB
v0.2.0 Latest
2023-04-15 23:14:39 +02:00
Languages
Rust 100%