aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-01-12 02:37:27 +0100
committerGitHub <noreply@github.com>2022-01-11 17:37:27 -0800
commita8624be213b042b475f020252a7ea0d55b9f1bf9 (patch)
tree1c033011a21c6db4c3c1ab204bed45505b77bfc8 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-a8624be213b042b475f020252a7ea0d55b9f1bf9.tar
nvim-lspconfig-a8624be213b042b475f020252a7ea0d55b9f1bf9.tar.gz
nvim-lspconfig-a8624be213b042b475f020252a7ea0d55b9f1bf9.tar.bz2
nvim-lspconfig-a8624be213b042b475f020252a7ea0d55b9f1bf9.tar.lz
nvim-lspconfig-a8624be213b042b475f020252a7ea0d55b9f1bf9.tar.xz
nvim-lspconfig-a8624be213b042b475f020252a7ea0d55b9f1bf9.tar.zst
nvim-lspconfig-a8624be213b042b475f020252a7ea0d55b9f1bf9.zip
feat: add opencl_ls (#1654)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/opencl_ls.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/opencl_ls.lua b/lua/lspconfig/server_configurations/opencl_ls.lua
new file mode 100644
index 00000000..dc88d24c
--- /dev/null
+++ b/lua/lspconfig/server_configurations/opencl_ls.lua
@@ -0,0 +1,21 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'opencl-language-server' },
+ filetypes = { 'opencl' },
+ root_dir = util.find_git_ancestor,
+ },
+ docs = {
+ description = [[
+https://github.com/Galarius/opencl-language-server
+
+Build instructions can be found [here](https://github.com/Galarius/opencl-language-server/blob/main/_dev/build.md).
+
+Prebuilt binaries are available for Linux, macOS and Windows [here](https://github.com/Galarius/opencl-language-server/releases).
+]],
+ default_config = {
+ root_dir = [[util.root_pattern(".git")]],
+ },
+ },
+}