Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/main/resources/templates/lsp/omnisharp-roslyn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
You can use [Clojure LSP](https://clojure-lsp.io/) to edit Clojure files, by following these instructions:

* [Download the asset compatible with your OS](https://github.com/clojure-lsp/clojure-lsp/releases)
* After unzipping the asset, reference the file (ex : `clojure-lsp.exe` for Windows OS) in the Command prompt.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"caseSensitive": true,
"lineCommentPrefix": ";",
"completion": {
"useContextAwareSorting": true,
"useTemplateForInvocationOnlySnippet": false
},
"workspaceSymbol": {
"supportsGotoClass": true
}
}
53 changes: 53 additions & 0 deletions src/main/resources/templates/lsp/omnisharp-roslyn/installer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"id": "omnisharp-roslyn",
"name": "Omnisharp Roslyn",
"executeOnStartServer": false,
"check": {
"exec": {
"name": "Trying current command",
"command": "${server.command}",
"timeout": 2000
}
},
"run": {
"download": {
"name": "Download Omnisharp Roslyn",
"github": {
"owner": "OmniSharp",
"repository": "omnisharp-roslyn",
"prerelease": false,
"asset": {
"windows": {
"x86_64": "omnisharp-win-x64.zip",
"x86": "omnisharp-win-x86.zip",
"arm64": "omnisharp-win-arm64.zip"
},
"unix": {
"x86_64": "omnisharp-linux-x86.zip",
"amd64": "omnisharp-linux-x64.zip",
"arm64": "omnisharp-linux-arm64.zip"
},
"mac": "omnisharp-osx.zip"
}
},
"output": {
"dir": "$USER_HOME$/.lsp4ij/lsp/omnisharp-roslyn",
"file": {
"name": {
"windows": "OmniSharp.exe",
"unix": "OmniSharp",
"mac": "OmniSharp"
},
"executable": true
}
},
"onSuccess": {
"configureServer": {
"name": "Configure Omnisharp Roslyn server command",
"command": "${output.dir}/${output.file.name} --languageserver",
"update": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
20 changes: 20 additions & 0 deletions src/main/resources/templates/lsp/omnisharp-roslyn/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "omnisharp-roslyn",
"name": "Omnisharp Roslyn",
"programArgs": {
"windows": "\"OmniSharp --languageserver\"",
"default": "\"OmniSharp --languageserver\""
},
"expandConfiguration": true,
"fileTypeMappings": [
{
"fileType": {
"name": "CSharp",
"patterns": [
"*.cs"
]
},
"languageId": "clojure"
}
]
}