add install instructions

This commit is contained in:
acereca 2023-04-16 15:26:33 +02:00
parent 949ede76ca
commit 8ad5b7445d
1 changed files with 40 additions and 0 deletions

View File

@ -21,3 +21,43 @@ variable = "some content"
this allows for the docstring to show during completion
## Installation
### neovim (lua)
using [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
install `srls` into your path or give the `cmd` table entry the absolute path:
```lua
local nvim_lsp = require('lspconfig')
nvim_lsp.srls.setup({
cmd = {"srls"},
filetypes = {"skill"},
root_dir = root_pattern(".git")
})
```
#### astronvim
```lua
return {
lsp = {
servers = {
"skill_ls"
},
config = {
skill_ls = function()
return {
cmd = { "srls" },
filetypes = { "skill" },
root_dir = require('lspconfig.util').root_pattern(".git"),
}
end,
}
}
}
```