diff options
| author | Davidescu the Romanian <37593660+vidlew@users.noreply.github.com> | 2023-01-13 16:46:35 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-14 08:46:35 +0800 |
| commit | 0c8df53a323b471066bba14227d710a2b8752039 (patch) | |
| tree | 66612ffc922a42b029bc3f941d99b5a2ddf520c4 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-0c8df53a323b471066bba14227d710a2b8752039.tar nvim-lspconfig-0c8df53a323b471066bba14227d710a2b8752039.tar.gz nvim-lspconfig-0c8df53a323b471066bba14227d710a2b8752039.tar.bz2 nvim-lspconfig-0c8df53a323b471066bba14227d710a2b8752039.tar.lz nvim-lspconfig-0c8df53a323b471066bba14227d710a2b8752039.tar.xz nvim-lspconfig-0c8df53a323b471066bba14227d710a2b8752039.tar.zst nvim-lspconfig-0c8df53a323b471066bba14227d710a2b8752039.zip | |
feat: add futhark-lsp support (#2395)
Co-authored-by: manifold11 <you@example.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/futhark_lsp.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/futhark_lsp.lua b/lua/lspconfig/server_configurations/futhark_lsp.lua new file mode 100644 index 00000000..f627bfe4 --- /dev/null +++ b/lua/lspconfig/server_configurations/futhark_lsp.lua @@ -0,0 +1,28 @@ +local util = require 'lspconfig.util' + +local cmd = { 'futhark', 'lsp' } + +if vim.fn.has 'win32' == 1 then + cmd = { 'cmd.exe', '/C', 'futhark', 'lsp' } +end + +return { + default_config = { + cmd = cmd, + filetypes = { 'futhark', 'fut' }, + root_dir = util.find_git_ancestor, + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/diku-dk/futhark + +Futhark Language Server + +This language server comes with the futhark compiler and is run with the command +``` +futhark lsp +``` +]], + }, +} |
