From 522d56557b00246286d803425751a4334f3a94a5 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 15 Jul 2024 20:05:47 +0100 Subject: Update lspconfig, add indent-blankline indent-blankline is probably old because I've actually been using it for ages, but I have a strict if-it-ain't-broke policy, so I'm not going to update it. lspconfig *was* broke though with nvim 0.10, so now it's fixed. --- .../lua/lspconfig/server_configurations/als.lua | 37 ---- .../lspconfig/server_configurations/angularls.lua | 75 -------- .../lspconfig/server_configurations/ansiblels.lua | 47 ----- .../arduino_language_server.lua | 50 ------ .../lspconfig/server_configurations/asm_lsp.lua | 19 -- .../lua/lspconfig/server_configurations/awk_ls.lua | 22 --- .../lua/lspconfig/server_configurations/bashls.lua | 39 ----- .../lspconfig/server_configurations/beancount.lua | 26 --- .../lua/lspconfig/server_configurations/bicep.lua | 47 ----- .../lua/lspconfig/server_configurations/bsl_ls.lua | 19 -- .../lua/lspconfig/server_configurations/ccls.lua | 43 ----- .../lua/lspconfig/server_configurations/clangd.lua | 87 ---------- .../server_configurations/clarity_lsp.lua | 19 -- .../server_configurations/clojure_lsp.lua | 19 -- .../lua/lspconfig/server_configurations/cmake.lua | 26 --- .../lspconfig/server_configurations/codeqlls.lua | 46 ----- .../server_configurations/crystalline.lua | 20 --- .../lspconfig/server_configurations/csharp_ls.lua | 23 --- .../lua/lspconfig/server_configurations/cssls.lua | 49 ------ .../server_configurations/cssmodules_ls.lua | 31 ---- .../cucumber_language_server.lua | 33 ---- .../lua/lspconfig/server_configurations/dartls.lua | 60 ------- .../lua/lspconfig/server_configurations/denols.lua | 114 ------------ .../server_configurations/dhall_lsp_server.lua | 26 --- .../server_configurations/diagnosticls.lua | 29 ---- .../lspconfig/server_configurations/dockerls.lua | 30 ---- .../lua/lspconfig/server_configurations/dotls.lua | 27 --- .../lua/lspconfig/server_configurations/efm.lua | 43 ----- .../lspconfig/server_configurations/elixirls.lua | 39 ----- .../lua/lspconfig/server_configurations/elmls.lua | 44 ----- .../lua/lspconfig/server_configurations/ember.lua | 30 ---- .../lspconfig/server_configurations/emmet_ls.lua | 31 ---- .../lspconfig/server_configurations/erlangls.lua | 34 ---- .../lspconfig/server_configurations/esbonio.lua | 55 ------ .../lua/lspconfig/server_configurations/eslint.lua | 172 ------------------ .../lua/lspconfig/server_configurations/flow.lua | 27 --- .../lspconfig/server_configurations/flux_lsp.lua | 22 --- .../lspconfig/server_configurations/foam_ls.lua | 31 ---- .../lua/lspconfig/server_configurations/fortls.lua | 24 --- .../server_configurations/fsautocomplete.lua | 32 ---- .../lua/lspconfig/server_configurations/fstar.lua | 19 -- .../lspconfig/server_configurations/gdscript.lua | 19 -- .../lua/lspconfig/server_configurations/ghcide.lua | 21 --- .../server_configurations/golangci_lint_ls.lua | 34 ---- .../lua/lspconfig/server_configurations/gopls.lua | 22 --- .../lspconfig/server_configurations/gradle_ls.lua | 37 ---- .../lspconfig/server_configurations/grammarly.lua | 38 ---- .../lspconfig/server_configurations/graphql.lua | 33 ---- .../lspconfig/server_configurations/groovyls.lua | 36 ---- .../server_configurations/haxe_language_server.lua | 47 ----- .../server_configurations/hdl_checker.lua | 20 --- .../lua/lspconfig/server_configurations/hhvm.lua | 21 --- .../lua/lspconfig/server_configurations/hie.lua | 34 ---- .../lua/lspconfig/server_configurations/hls.lua | 43 ----- .../lspconfig/server_configurations/hoon_ls.lua | 29 ---- .../lua/lspconfig/server_configurations/html.lua | 48 ----- .../lspconfig/server_configurations/idris2_lsp.lua | 41 ----- .../server_configurations/intelephense.lua | 50 ------ .../server_configurations/java_language_server.lua | 18 -- .../lua/lspconfig/server_configurations/jdtls.lua | 193 --------------------- .../server_configurations/jedi_language_server.lua | 28 --- .../lua/lspconfig/server_configurations/jsonls.lua | 48 ----- .../lspconfig/server_configurations/jsonnet_ls.lua | 40 ----- .../lspconfig/server_configurations/julials.lua | 75 -------- .../kotlin_language_server.lua | 71 -------- .../lspconfig/server_configurations/lean3ls.lua | 54 ------ .../lua/lspconfig/server_configurations/leanls.lua | 77 -------- .../lspconfig/server_configurations/lelwel_ls.lua | 21 --- .../lspconfig/server_configurations/lemminx.lua | 23 --- .../lua/lspconfig/server_configurations/ltex.lua | 47 ----- .../lua/lspconfig/server_configurations/metals.lua | 45 ----- .../lua/lspconfig/server_configurations/mint.lua | 20 --- .../lua/lspconfig/server_configurations/mm0_ls.lua | 20 --- .../lspconfig/server_configurations/nickel_ls.lua | 37 ---- .../lua/lspconfig/server_configurations/nimls.lua | 21 --- .../lspconfig/server_configurations/ocamlls.lua | 28 --- .../lspconfig/server_configurations/ocamllsp.lua | 38 ---- .../lua/lspconfig/server_configurations/ols.lua | 20 --- .../lspconfig/server_configurations/omnisharp.lua | 52 ------ .../lspconfig/server_configurations/opencl_ls.lua | 21 --- .../server_configurations/openscad_ls.lua | 32 ---- .../lua/lspconfig/server_configurations/pasls.lua | 28 --- .../lua/lspconfig/server_configurations/perlls.lua | 39 ----- .../server_configurations/perlnavigator.lua | 39 ----- .../lspconfig/server_configurations/perlpls.lua | 29 ---- .../lspconfig/server_configurations/phpactor.lua | 26 --- .../lua/lspconfig/server_configurations/please.lua | 19 -- .../server_configurations/powershell_es.lua | 72 -------- .../lspconfig/server_configurations/prismals.lua | 34 ---- .../server_configurations/prosemd_lsp.lua | 22 --- .../lua/lspconfig/server_configurations/psalm.lua | 29 ---- .../lua/lspconfig/server_configurations/puppet.lua | 38 ---- .../server_configurations/purescriptls.lua | 28 --- .../lua/lspconfig/server_configurations/pylsp.lua | 31 ---- .../lua/lspconfig/server_configurations/pyre.lua | 22 --- .../lspconfig/server_configurations/pyright.lua | 56 ------ .../server_configurations/quick_lint_js.lua | 19 -- .../server_configurations/r_language_server.lua | 28 --- .../server_configurations/racket_langserver.lua | 21 --- .../lspconfig/server_configurations/reason_ls.lua | 23 --- .../lspconfig/server_configurations/remark_ls.lua | 50 ------ .../lspconfig/server_configurations/rescriptls.lua | 42 ----- .../lua/lspconfig/server_configurations/rls.lua | 42 ----- .../lua/lspconfig/server_configurations/rnix.lua | 28 --- .../server_configurations/robotframework_ls.lua | 21 --- .../lua/lspconfig/server_configurations/rome.lua | 42 ----- .../server_configurations/rust_analyzer.lua | 79 --------- .../lspconfig/server_configurations/salt_ls.lua | 24 --- .../lua/lspconfig/server_configurations/scry.lua | 22 --- .../lspconfig/server_configurations/serve_d.lua | 20 --- .../lspconfig/server_configurations/sixtyfps.lua | 28 --- .../lspconfig/server_configurations/slint_lsp.lua | 26 --- .../lua/lspconfig/server_configurations/solang.lua | 27 --- .../lspconfig/server_configurations/solargraph.lua | 38 ---- .../lua/lspconfig/server_configurations/solc.lua | 19 -- .../server_configurations/solidity_ls.lua | 24 --- .../lua/lspconfig/server_configurations/sorbet.lua | 26 --- .../lspconfig/server_configurations/sourcekit.lua | 19 -- .../lspconfig/server_configurations/sourcery.lua | 55 ------ .../lspconfig/server_configurations/spectral.lua | 29 ---- .../lua/lspconfig/server_configurations/sqlls.lua | 18 -- .../lua/lspconfig/server_configurations/sqls.lua | 25 --- .../server_configurations/stylelint_lsp.lua | 54 ------ .../server_configurations/sumneko_lua.lua | 63 ------- .../lua/lspconfig/server_configurations/svelte.lua | 29 ---- .../lua/lspconfig/server_configurations/svls.lua | 24 --- .../server_configurations/tailwindcss.lua | 126 -------------- .../lua/lspconfig/server_configurations/taplo.lua | 27 --- .../lspconfig/server_configurations/teal_ls.lua | 29 ---- .../server_configurations/terraform_lsp.lua | 43 ----- .../server_configurations/terraformls.lua | 42 ----- .../lua/lspconfig/server_configurations/texlab.lua | 126 -------------- .../lua/lspconfig/server_configurations/tflint.lua | 20 --- .../server_configurations/theme_check.lua | 31 ---- .../lspconfig/server_configurations/tsserver.lua | 60 ------- .../lspconfig/server_configurations/typeprof.lua | 19 -- .../lspconfig/server_configurations/vala_ls.lua | 40 ----- .../lua/lspconfig/server_configurations/vdmj.lua | 128 -------------- .../lspconfig/server_configurations/verible.lua | 21 --- .../lua/lspconfig/server_configurations/vimls.lua | 41 ----- .../lua/lspconfig/server_configurations/vls.lua | 32 ---- .../lua/lspconfig/server_configurations/volar.lua | 138 --------------- .../lua/lspconfig/server_configurations/vuels.lua | 68 -------- .../lua/lspconfig/server_configurations/yamlls.lua | 87 ---------- .../lspconfig/server_configurations/zeta_note.lua | 28 --- .../lua/lspconfig/server_configurations/zk.lua | 48 ----- .../lua/lspconfig/server_configurations/zls.lua | 20 --- 147 files changed, 5919 deletions(-) delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/als.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/angularls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ansiblels.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/arduino_language_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/asm_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/awk_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bashls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/beancount.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bicep.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bsl_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ccls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clangd.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clarity_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clojure_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cmake.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/codeqlls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/crystalline.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/csharp_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssmodules_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cucumber_language_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dartls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/denols.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dhall_lsp_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/diagnosticls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dockerls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dotls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/efm.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elixirls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elmls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ember.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/emmet_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/erlangls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/esbonio.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/eslint.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flow.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flux_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/foam_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fortls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fsautocomplete.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fstar.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gdscript.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ghcide.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/golangci_lint_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gopls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gradle_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/grammarly.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/graphql.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/groovyls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/haxe_language_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hdl_checker.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hhvm.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hie.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hoon_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/html.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/idris2_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/intelephense.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/java_language_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jdtls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jedi_language_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonnet_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/julials.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/kotlin_language_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lean3ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/leanls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lelwel_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lemminx.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ltex.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/metals.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mint.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mm0_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nickel_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nimls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamlls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamllsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ols.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/omnisharp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/opencl_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/openscad_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pasls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlnavigator.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlpls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/phpactor.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/please.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/powershell_es.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prismals.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prosemd_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/psalm.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/puppet.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/purescriptls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pylsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyre.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyright.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/quick_lint_js.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/r_language_server.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/racket_langserver.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/reason_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/remark_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rescriptls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rnix.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/robotframework_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rome.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rust_analyzer.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/salt_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/scry.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/serve_d.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sixtyfps.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/slint_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solang.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solargraph.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solc.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solidity_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sorbet.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcekit.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcery.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/spectral.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqlls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/stylelint_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sumneko_lua.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svelte.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tailwindcss.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/taplo.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/teal_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraform_lsp.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraformls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/texlab.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tflint.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/theme_check.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tsserver.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/typeprof.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vala_ls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vdmj.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/verible.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vimls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/volar.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vuels.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/yamlls.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zeta_note.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zk.lua delete mode 100644 start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zls.lua (limited to 'start/lspconfig-0.1.3/lua/lspconfig/server_configurations') diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/als.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/als.lua deleted file mode 100644 index 7d916ad..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/als.lua +++ /dev/null @@ -1,37 +0,0 @@ -local util = require 'lspconfig.util' -local bin_name = 'ada_language_server' - -if vim.fn.has 'win32' == 1 then - bin_name = 'ada_language_server.exe' -end - -return { - default_config = { - cmd = { bin_name }, - filetypes = { 'ada' }, - root_dir = util.root_pattern('Makefile', '.git', '*.gpr', '*.adc'), - }, - docs = { - description = [[ -https://github.com/AdaCore/ada_language_server - -Installation instructions can be found [here](https://github.com/AdaCore/ada_language_server#Install). - -Can be configured by passing a "settings" object to `als.setup{}`: - -```lua -require('lspconfig').als.setup{ - settings = { - ada = { - projectFile = "project.gpr"; - scenarioVariables = { ... }; - } - } -} -``` -]], - default_config = { - root_dir = [[util.root_pattern("Makefile", ".git", "*.gpr", "*.adc")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/angularls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/angularls.lua deleted file mode 100644 index 4d30de7..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/angularls.lua +++ /dev/null @@ -1,75 +0,0 @@ -local util = require 'lspconfig.util' - --- Angular requires a node_modules directory to probe for @angular/language-service and typescript --- in order to use your projects configured versions. --- This defaults to the vim cwd, but will get overwritten by the resolved root of the file. -local function get_probe_dir(root_dir) - local project_root = util.find_node_modules_ancestor(root_dir) - - return project_root and (project_root .. '/node_modules') or '' -end - -local default_probe_dir = get_probe_dir(vim.fn.getcwd()) - -local bin_name = 'ngserver' -local args = { - '--stdio', - '--tsProbeLocations', - default_probe_dir, - '--ngProbeLocations', - default_probe_dir, -} - -local cmd = { bin_name, unpack(args) } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, unpack(args) } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'typescript', 'html', 'typescriptreact', 'typescript.tsx' }, - -- Check for angular.json or .git first since that is the root of the project. - -- Don't check for tsconfig.json or package.json since there are multiple of these - -- in an angular monorepo setup. - root_dir = util.root_pattern('angular.json', '.git'), - }, - on_new_config = function(new_config, new_root_dir) - local new_probe_dir = get_probe_dir(new_root_dir) - - -- We need to check our probe directories because they may have changed. - new_config.cmd = { - 'ngserver', - '--stdio', - '--tsProbeLocations', - new_probe_dir, - '--ngProbeLocations', - new_probe_dir, - } - end, - docs = { - description = [[ -https://github.com/angular/vscode-ng-language-service - -`angular-language-server` can be installed via npm `npm install -g @angular/language-server`. - -Note, that if you override the default `cmd`, you must also update `on_new_config` to set `new_config.cmd` during startup. - -```lua -local project_library_path = "/path/to/project/lib" -local cmd = {"ngserver", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path} - -require'lspconfig'.angularls.setup{ - cmd = cmd, - on_new_config = function(new_config,new_root_dir) - new_config.cmd = cmd - end, -} -``` - ]], - default_config = { - root_dir = [[root_pattern("angular.json", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ansiblels.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ansiblels.lua deleted file mode 100644 index b4bb324..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ansiblels.lua +++ /dev/null @@ -1,47 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'ansible-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - settings = { - ansible = { - python = { - interpreterPath = 'python', - }, - ansibleLint = { - path = 'ansible-lint', - enabled = true, - }, - ansible = { - path = 'ansible', - }, - executionEnvironment = { - enabled = false, - }, - }, - }, - filetypes = { 'yaml.ansible' }, - root_dir = util.root_pattern('ansible.cfg', '.ansible-lint'), - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/ansible/ansible-language-server - -Language server for the ansible configuration management tool. - -`ansible-language-server` can be installed via `npm`: - -```sh -npm install -g @ansible/ansible-language-server -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/arduino_language_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/arduino_language_server.lua deleted file mode 100644 index 72f48a1..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/arduino_language_server.lua +++ /dev/null @@ -1,50 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'arduino-language-server' }, - filetypes = { 'arduino' }, - root_dir = util.root_pattern '*.ino', - }, - docs = { - description = [[ -https://github.com/arduino/arduino-language-server - -Language server for Arduino - -The `arduino-language-server` can be installed by running: - go get -u github.com/arduino/arduino-language-server - -The `arduino-cli` tools must also be installed. Follow these instructions for your distro: - https://arduino.github.io/arduino-cli/latest/installation/ - -After installing the `arduino-cli` tools, follow these instructions for generating -a configuration file: - https://arduino.github.io/arduino-cli/latest/getting-started/#create-a-configuration-file -and make sure you install any relevant platforms libraries: - https://arduino.github.io/arduino-cli/latest/getting-started/#install-the-core-for-your-board - -The language server also requires `clangd` be installed. It will look for `clangd` by default but -the binary path can be overridden if need be. - -After all dependencies are installed you'll need to override the lspconfig command for the -language server in your setup function with the necessary configurations: - -```lua -lspconfig.arduino_language_server.setup({ - cmd = { - -- Required - "arduino-language-server", - "-cli-config", "/path/to/arduino-cli.yaml", - -- Optional - "-cli", "/path/to/arduino-cli", - "-clangd", "/path/to/clangd" - } -}) -``` - -For further instruction about configuration options, run `arduino-language-server --help`. - -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/asm_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/asm_lsp.lua deleted file mode 100644 index 102bcba..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/asm_lsp.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'asm-lsp' }, - filetypes = { 'asm', 'vmasm' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -https://github.com/bergercookie/asm-lsp - -Language Server for GAS/GO Assembly - -`asm-lsp` can be installed via cargo: -cargo install asm-lsp -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/awk_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/awk_ls.lua deleted file mode 100644 index ff1087d..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/awk_ls.lua +++ /dev/null @@ -1,22 +0,0 @@ -if vim.version().major == 0 and vim.version().minor < 7 then - vim.notify('The AWK language server requires nvim >= 0.7', vim.log.levels.ERROR) - return -end - -return { - default_config = { - cmd = { 'awk-language-server' }, - filetypes = { 'awk' }, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/Beaglefoot/awk-language-server/ - -`awk-language-server` can be installed via `npm`: -```sh -npm install -g awk-language-server -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bashls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bashls.lua deleted file mode 100644 index 3f25c76..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bashls.lua +++ /dev/null @@ -1,39 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'bash-language-server' -local cmd = { bin_name, 'start' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, 'start' } -end - -return { - default_config = { - cmd = cmd, - cmd_env = { - -- Prevent recursive scanning which will cause issues when opening a file - -- directly in the home directory (e.g. ~/foo.sh). - -- - -- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)". - GLOB_PATTERN = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)', - }, - filetypes = { 'sh' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/mads-hartmann/bash-language-server - -`bash-language-server` can be installed via `npm`: -```sh -npm i -g bash-language-server -``` - -Language server for bash, written using tree sitter in typescript. -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/beancount.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/beancount.lua deleted file mode 100644 index 1d86d34..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/beancount.lua +++ /dev/null @@ -1,26 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'beancount-langserver', '--stdio' }, - filetypes = { 'beancount' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - init_options = { - -- this is the path to the beancout journal file - journalFile = '', - -- this is the path to the python binary with beancount installed - pythonPath = 'python3', - }, - }, - docs = { - description = [[ -https://github.com/polarmutex/beancount-language-server#installation - -See https://github.com/polarmutex/beancount-language-server#configuration for configuration options -]], - default_config = { - root_dir = [[root_pattern("elm.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bicep.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bicep.lua deleted file mode 100644 index 1ec7032..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bicep.lua +++ /dev/null @@ -1,47 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - filetypes = { 'bicep' }, - root_dir = util.find_git_ancestor, - init_options = {}, - }, - docs = { - description = [=[ -https://github.com/azure/bicep -Bicep language server - -Bicep language server can be installed by downloading and extracting a release of bicep-langserver.zip from [Bicep GitHub releases](https://github.com/Azure/bicep/releases). - -Bicep language server requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. - -Neovim does not have built-in support for the bicep filetype which is required for lspconfig to automatically launch the language server. - -Filetype detection can be added via an autocmd: -```lua -vim.cmd [[ autocmd BufNewFile,BufRead *.bicep set filetype=bicep ]] -``` - -**By default, bicep language server does not have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary. - -```lua -local bicep_lsp_bin = "/path/to/bicep-langserver/Bicep.LangServer.dll" -require'lspconfig'.bicep.setup{ - cmd = { "dotnet", bicep_lsp_bin }; - ... -} -``` - -To download the latest release and place in /usr/local/bin/bicep-langserver: -```bash -(cd $(mktemp -d) \ - && curl -fLO https://github.com/Azure/bicep/releases/latest/download/bicep-langserver.zip \ - && rm -rf /usr/local/bin/bicep-langserver \ - && unzip -d /usr/local/bin/bicep-langserver bicep-langserver.zip) -``` -]=], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bsl_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bsl_ls.lua deleted file mode 100644 index fef15f9..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/bsl_ls.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - filetypes = { 'bsl', 'os' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ - https://github.com/1c-syntax/bsl-language-server - - Language Server Protocol implementation for 1C (BSL) - 1C:Enterprise 8 and OneScript languages. - - ]], - default_config = { - root_dir = [[root_pattern(".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ccls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ccls.lua deleted file mode 100644 index dd642db..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ccls.lua +++ /dev/null @@ -1,43 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'ccls' }, - filetypes = { 'c', 'cpp', 'objc', 'objcpp' }, - root_dir = util.root_pattern('compile_commands.json', '.ccls', '.git'), - offset_encoding = 'utf-32', - -- ccls does not support sending a null root directory - single_file_support = false, - }, - docs = { - description = [[ -https://github.com/MaskRay/ccls/wiki - -ccls relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified -as compile_commands.json or, for simpler projects, a .ccls. -For details on how to automatically generate one using CMake look [here](https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html). Alternatively, you can use [Bear](https://github.com/rizsotto/Bear). - -Customization options are passed to ccls at initialization time via init_options, a list of available options can be found [here](https://github.com/MaskRay/ccls/wiki/Customization#initialization-options). For example: - -```lua -local lspconfig = require'lspconfig' -lspconfig.ccls.setup { - init_options = { - compilationDatabaseDirectory = "build"; - index = { - threads = 0; - }; - clang = { - excludeArgs = { "-frounding-math"} ; - }; - } -} - -``` - -]], - default_config = { - root_dir = [[root_pattern("compile_commands.json", ".ccls", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clangd.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clangd.lua deleted file mode 100644 index 4e0f2d7..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clangd.lua +++ /dev/null @@ -1,87 +0,0 @@ -local util = require 'lspconfig.util' - --- https://clangd.llvm.org/extensions.html#switch-between-sourceheader -local function switch_source_header(bufnr) - bufnr = util.validate_bufnr(bufnr) - local clangd_client = util.get_active_client_by_name(bufnr, 'clangd') - local params = { uri = vim.uri_from_bufnr(bufnr) } - if clangd_client then - clangd_client.request('textDocument/switchSourceHeader', params, function(err, result) - if err then - error(tostring(err)) - end - if not result then - print 'Corresponding file cannot be determined' - return - end - vim.api.nvim_command('edit ' .. vim.uri_to_fname(result)) - end, bufnr) - else - print 'method textDocument/switchSourceHeader is not supported by any servers active on the current buffer' - end -end - -local root_files = { - '.clangd', - '.clang-tidy', - '.clang-format', - 'compile_commands.json', - 'compile_flags.txt', - 'configure.ac', -- AutoTools -} - -local default_capabilities = vim.tbl_deep_extend( - 'force', - util.default_config.capabilities or vim.lsp.protocol.make_client_capabilities(), - { - textDocument = { - completion = { - editsNearCursor = true, - }, - }, - offsetEncoding = { 'utf-8', 'utf-16' }, - } -) - -return { - default_config = { - cmd = { 'clangd' }, - filetypes = { 'c', 'cpp', 'objc', 'objcpp' }, - root_dir = function(fname) - return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - capabilities = default_capabilities, - }, - commands = { - ClangdSwitchSourceHeader = { - function() - switch_source_header(0) - end, - description = 'Switch between source/header', - }, - }, - docs = { - description = [[ -https://clangd.llvm.org/installation.html - -**NOTE:** Clang >= 11 is recommended! See [this issue for more](https://github.com/neovim/nvim-lsp/issues/23). - -clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified as compile_commands.json, see https://clangd.llvm.org/installation#compile_commandsjson -]], - default_config = { - root_dir = [[ - root_pattern( - '.clangd', - '.clang-tidy', - '.clang-format', - 'compile_commands.json', - 'compile_flags.txt', - 'configure.ac', - '.git' - ) - ]], - capabilities = [[default capabilities, with offsetEncoding utf-8]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clarity_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clarity_lsp.lua deleted file mode 100644 index 72a6197..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clarity_lsp.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'clarity-lsp' }, - filetypes = { 'clar', 'clarity' }, - root_dir = util.root_pattern '.git', - }, - docs = { - description = [[ -`clarity-lsp` is a language server for the Clarity language. Clarity is a decidable smart contract language that optimizes for predictability and security. Smart contracts allow developers to encode essential business logic on a blockchain. - -To learn how to configure the clarity language server, see the [clarity-lsp documentation](https://github.com/hirosystems/clarity-lsp). -]], - default_config = { - root_dir = [[root_pattern(".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clojure_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clojure_lsp.lua deleted file mode 100644 index 5340693..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/clojure_lsp.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'clojure-lsp' }, - filetypes = { 'clojure', 'edn' }, - root_dir = util.root_pattern('project.clj', 'deps.edn', 'build.boot', 'shadow-cljs.edn', '.git'), - }, - docs = { - description = [[ -https://github.com/snoe/clojure-lsp - -Clojure Language Server -]], - default_config = { - root_dir = [[root_pattern("project.clj", "deps.edn", "build.boot", "shadow-cljs.edn", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cmake.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cmake.lua deleted file mode 100644 index d334535..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cmake.lua +++ /dev/null @@ -1,26 +0,0 @@ -local util = require 'lspconfig.util' - -local root_files = { 'CMakeLists.txt', 'cmake' } -return { - default_config = { - cmd = { 'cmake-language-server' }, - filetypes = { 'cmake' }, - root_dir = function(fname) - return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - init_options = { - buildDirectory = 'build', - }, - }, - docs = { - description = [[ -https://github.com/regen100/cmake-language-server - -CMake LSP Implementation -]], - default_config = { - root_dir = [[root_pattern(".git", "compile_commands.json", "build")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/codeqlls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/codeqlls.lua deleted file mode 100644 index 9184d2f..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/codeqlls.lua +++ /dev/null @@ -1,46 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'codeql', 'execute', 'language-server', '--check-errors', 'ON_CHANGE', '-q' }, - filetypes = { 'ql' }, - root_dir = util.root_pattern 'qlpack.yml', - log_level = vim.lsp.protocol.MessageType.Warning, - before_init = function(initialize_params) - initialize_params['workspaceFolders'] = { - { - name = 'workspace', - uri = initialize_params['rootUri'], - }, - } - end, - settings = { - search_path = vim.empty_dict(), - }, - }, - docs = { - description = [[ -Reference: -https://help.semmle.com/codeql/codeql-cli.html - -Binaries: -https://github.com/github/codeql-cli-binaries - ]], - default_config = { - settings = { - search_path = [[list containing all search paths, eg: '~/codeql-home/codeql-repo']], - }, - }, - }, - on_new_config = function(config) - if type(config.settings.search_path) == 'table' and not vim.tbl_isempty(config.settings.search_path) then - local search_path = '--search-path=' - for _, path in ipairs(config.settings.search_path) do - search_path = search_path .. vim.fn.expand(path) .. ':' - end - config.cmd = { 'codeql', 'execute', 'language-server', '--check-errors', 'ON_CHANGE', '-q', search_path } - else - config.cmd = { 'codeql', 'execute', 'language-server', '--check-errors', 'ON_CHANGE', '-q' } - end - end, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/crystalline.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/crystalline.lua deleted file mode 100644 index ef4d6bc..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/crystalline.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'crystalline' }, - filetypes = { 'crystal' }, - root_dir = util.root_pattern 'shard.yml' or util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/elbywan/crystalline - -Crystal language server. -]], - default_config = { - root_dir = [[root_pattern('shard.yml', '.git')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/csharp_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/csharp_ls.lua deleted file mode 100644 index 828cba4..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/csharp_ls.lua +++ /dev/null @@ -1,23 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'csharp-ls' }, - root_dir = util.root_pattern('*.sln', '*.csproj', '.git'), - filetypes = { 'cs' }, - init_options = { - AutomaticWorkspaceInit = true, - }, - }, - docs = { - description = [[ -https://github.com/razzmatazz/csharp-language-server - -Language Server for C#. - -csharp-ls requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. - -The preferred way to install csharp-ls is with `dotnet tool install --global csharp-ls`. - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssls.lua deleted file mode 100644 index 41c38e6..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssls.lua +++ /dev/null @@ -1,49 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'vscode-css-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'css', 'scss', 'less' }, - root_dir = util.root_pattern('package.json', '.git'), - single_file_support = true, - settings = { - css = { validate = true }, - scss = { validate = true }, - less = { validate = true }, - }, - }, - docs = { - description = [[ - -https://github.com/hrsh7th/vscode-langservers-extracted - -`css-languageserver` can be installed via `npm`: - -```sh -npm i -g vscode-langservers-extracted -``` - -Neovim does not currently include built-in snippets. `vscode-css-language-server` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. - -```lua ---Enable (broadcasting) snippet capability for completion -local capabilities = vim.lsp.protocol.make_client_capabilities() -capabilities.textDocument.completion.completionItem.snippetSupport = true - -require'lspconfig'.cssls.setup { - capabilities = capabilities, -} -``` -]], - default_config = { - root_dir = [[root_pattern("package.json", ".git") or bufdir]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssmodules_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssmodules_ls.lua deleted file mode 100644 index 3107b75..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cssmodules_ls.lua +++ /dev/null @@ -1,31 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'cssmodules-language-server' -local cmd = { bin_name } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' }, - root_dir = util.find_package_json_ancestor, - }, - docs = { - description = [[ -https://github.com/antonk52/cssmodules-language-server - -Language server for autocompletion and go-to-definition functionality for CSS modules. - -You can install cssmodules-language-server via npm: -```sh -npm install -g cssmodules-language-server -``` - ]], - default_config = { - root_dir = [[root_pattern("package.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cucumber_language_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cucumber_language_server.lua deleted file mode 100644 index 0783206..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/cucumber_language_server.lua +++ /dev/null @@ -1,33 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'cucumber-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'cucumber' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -https://cucumber.io -https://github.com/cucumber/common -https://www.npmjs.com/package/@cucumber/language-server - -Language server for Cucumber. - -`cucumber-language-server` can be installed via `npm`: -```sh -npm install -g @cucumber/language-server -``` - ]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dartls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dartls.lua deleted file mode 100644 index eecb0b7..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dartls.lua +++ /dev/null @@ -1,60 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'dart' - -local find_dart_sdk_root_path = function() - if os.getenv 'FLUTTER_SDK' then - local flutter_path = os.getenv 'FLUTTER_SDK' - return util.path.join(flutter_path, 'cache', 'dart-sdk', 'bin', 'dart') - elseif vim.fn['executable'] 'flutter' == 1 then - local flutter_path = vim.fn['resolve'](vim.fn['exepath'] 'flutter') - local flutter_bin = vim.fn['fnamemodify'](flutter_path, ':h') - return util.path.join(flutter_bin, 'cache', 'dart-sdk', 'bin', 'dart') - elseif vim.fn['executable'] 'dart' == 1 then - return vim.fn['resolve'](vim.fn['exepath'] 'dart') - else - return '' - end -end - -local analysis_server_snapshot_path = function() - local dart_sdk_root_path = vim.fn['fnamemodify'](find_dart_sdk_root_path(), ':h') - local snapshot = util.path.join(dart_sdk_root_path, 'snapshots', 'analysis_server.dart.snapshot') - - if vim.fn['has'] 'win32' == 1 or vim.fn['has'] 'win64' == 1 then - snapshot = snapshot:gsub('/', '\\') - end - - return snapshot -end - -return { - default_config = { - cmd = { bin_name, analysis_server_snapshot_path(), '--lsp' }, - filetypes = { 'dart' }, - root_dir = util.root_pattern 'pubspec.yaml', - init_options = { - onlyAnalyzeProjectsWithOpenFiles = true, - suggestFromUnimportedLibraries = true, - closingLabels = true, - outline = true, - flutterOutline = true, - }, - settings = { - dart = { - completeFunctionCalls = true, - showTodos = true, - }, - }, - }, - docs = { - description = [[ -https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server/tool/lsp_spec - -Language server for dart. -]], - default_config = { - root_dir = [[root_pattern("pubspec.yaml")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/denols.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/denols.lua deleted file mode 100644 index a7bed35..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/denols.lua +++ /dev/null @@ -1,114 +0,0 @@ -local util = require 'lspconfig.util' -local lsp = vim.lsp - -local function buf_cache(bufnr) - local params = {} - params['referrer'] = { uri = vim.uri_from_bufnr(bufnr) } - params['uris'] = {} - lsp.buf_request(bufnr, 'deno/cache', params, function(err) - if err then - error(tostring(err)) - end - end) -end - -local function virtual_text_document_handler(uri, result) - if not result then - return nil - end - - for client_id, res in pairs(result) do - local lines = vim.split(res.result, '\n') - local bufnr = vim.uri_to_bufnr(uri) - - local current_buf = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false) - if #current_buf ~= 0 then - return nil - end - - vim.api.nvim_buf_set_lines(bufnr, 0, -1, nil, lines) - vim.api.nvim_buf_set_option(bufnr, 'readonly', true) - vim.api.nvim_buf_set_option(bufnr, 'modified', false) - vim.api.nvim_buf_set_option(bufnr, 'modifiable', false) - lsp.buf_attach_client(bufnr, client_id) - end -end - -local function virtual_text_document(uri) - local params = { - textDocument = { - uri = uri, - }, - } - local result = lsp.buf_request_sync(0, 'deno/virtualTextDocument', params) - virtual_text_document_handler(uri, result) -end - -local function denols_handler(err, result, ctx) - if not result or vim.tbl_isempty(result) then - return nil - end - - for _, res in pairs(result) do - local uri = res.uri or res.targetUri - if uri:match '^deno:' then - virtual_text_document(uri) - res['uri'] = uri - res['targetUri'] = uri - end - end - - lsp.handlers[ctx.method](err, result, ctx) -end - -return { - default_config = { - cmd = { 'deno', 'lsp' }, - filetypes = { - 'javascript', - 'javascriptreact', - 'javascript.jsx', - 'typescript', - 'typescriptreact', - 'typescript.tsx', - }, - root_dir = util.root_pattern('deno.json', 'deno.jsonc', 'tsconfig.json', '.git'), - init_options = { - enable = true, - lint = false, - unstable = false, - }, - handlers = { - ['textDocument/definition'] = denols_handler, - ['textDocument/references'] = denols_handler, - }, - }, - commands = { - DenolsCache = { - function() - buf_cache(0) - end, - description = 'Cache a module and all of its dependencies.', - }, - }, - docs = { - description = [[ -https://github.com/denoland/deno - -Deno's built-in language server - -To approrpiately highlight codefences returned from denols, you will need to augment vim.g.markdown_fenced languages - in your init.lua. Example: - -```lua -vim.g.markdown_fenced_languages = { - "ts=typescript" -} -``` - -]], - default_config = { - root_dir = [[root_pattern("deno.json", "deno.jsonc", "tsconfig.json", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dhall_lsp_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dhall_lsp_server.lua deleted file mode 100644 index af910f3..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dhall_lsp_server.lua +++ /dev/null @@ -1,26 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'dhall-lsp-server' }, - filetypes = { 'dhall' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server - -language server for dhall - -`dhall-lsp-server` can be installed via cabal: -```sh -cabal install dhall-lsp-server -``` -prebuilt binaries can be found [here](https://github.com/dhall-lang/dhall-haskell/releases). -]], - default_config = { - root_dir = [[root_pattern(".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/diagnosticls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/diagnosticls.lua deleted file mode 100644 index 8f0476b..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/diagnosticls.lua +++ /dev/null @@ -1,29 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'diagnostic-languageserver' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - root_dir = util.find_git_ancestor, - single_file_support = true, - filetypes = {}, - }, - docs = { - description = [[ -https://github.com/iamcco/diagnostic-languageserver - -Diagnostic language server integrate with linters. -]], - default_config = { - filetypes = 'Empty by default, override to add filetypes', - root_dir = "Vim's starting directory", - init_options = 'Configuration from https://github.com/iamcco/diagnostic-languageserver#config--document', - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dockerls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dockerls.lua deleted file mode 100644 index 6d1cfc7..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dockerls.lua +++ /dev/null @@ -1,30 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'docker-langserver' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'dockerfile' }, - root_dir = util.root_pattern 'Dockerfile', - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/rcjsuen/dockerfile-language-server-nodejs - -`docker-langserver` can be installed via `npm`: -```sh -npm install -g dockerfile-language-server-nodejs -``` - ]], - default_config = { - root_dir = [[root_pattern("Dockerfile")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dotls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dotls.lua deleted file mode 100644 index dff14b9..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/dotls.lua +++ /dev/null @@ -1,27 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'dot-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'dot' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/nikeee/dot-language-server - -`dot-language-server` can be installed via `npm`: -```sh -npm install -g dot-language-server -``` - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/efm.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/efm.lua deleted file mode 100644 index f5f74ed..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/efm.lua +++ /dev/null @@ -1,43 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'efm-langserver' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - - docs = { - description = [[ -https://github.com/mattn/efm-langserver - -General purpose Language Server that can use specified error message format generated from specified command. - -Requires at minimum EFM version [v0.0.38](https://github.com/mattn/efm-langserver/releases/tag/v0.0.38) to support -launching the language server on single files. If on an older version of EFM, disable single file support: - -```lua -require('lspconfig')['efm'].setup{ - settings = ..., -- You must populate this according to the EFM readme - filetypes = ..., -- Populate this according to the note below - single_file_support = false, -- This is the important line for supporting older version of EFM -} -``` - -Note: In order for neovim's built-in language server client to send the appropriate `languageId` to EFM, **you must -specify `filetypes` in your call to `setup{}`**. Otherwise `lspconfig` will launch EFM on the `BufEnter` instead -of the `FileType` autocommand, and the `filetype` variable used to populate the `languageId` will not yet be set. - -```lua -require('lspconfig')['efm'].setup{ - settings = ..., -- You must populate this according to the EFM readme - filetypes = { 'python','cpp','lua' } -} -``` - -]], - default_config = { - root_dir = [[util.root_pattern(".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elixirls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elixirls.lua deleted file mode 100644 index d51aa50..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elixirls.lua +++ /dev/null @@ -1,39 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - filetypes = { 'elixir', 'eelixir' }, - root_dir = function(fname) - return util.root_pattern('mix.exs', '.git')(fname) or vim.loop.os_homedir() - end, - }, - docs = { - description = [[ -https://github.com/elixir-lsp/elixir-ls - -`elixir-ls` can be installed by following the instructions [here](https://github.com/elixir-lsp/elixir-ls#building-and-running). - -```bash -curl -fLO https://github.com/elixir-lsp/elixir-ls/releases/latest/download/elixir-ls.zip -unzip elixir-ls.zip -d /path/to/elixir-ls -# Unix -chmod +x /path/to/elixir-ls/language_server.sh -``` - -**By default, elixir-ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your unzipped elixir-ls. - -```lua -require'lspconfig'.elixirls.setup{ - -- Unix - cmd = { "/path/to/elixir-ls/language_server.sh" }; - -- Windows - cmd = { "/path/to/elixir-ls/language_server.bat" }; - ... -} -``` -]], - default_config = { - root_dir = [[root_pattern("mix.exs", ".git") or vim.loop.os_homedir()]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elmls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elmls.lua deleted file mode 100644 index 2718c88..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/elmls.lua +++ /dev/null @@ -1,44 +0,0 @@ -local util = require 'lspconfig.util' -local lsp = vim.lsp -local api = vim.api - -local bin_name = 'elm-language-server' -local cmd = { bin_name } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name } -end - -local default_capabilities = lsp.protocol.make_client_capabilities() -default_capabilities.offsetEncoding = { 'utf-8', 'utf-16' } -local elm_root_pattern = util.root_pattern 'elm.json' - -return { - default_config = { - cmd = cmd, - -- TODO(ashkan) if we comment this out, it will allow elmls to operate on elm.json. It seems like it could do that, but no other editor allows it right now. - filetypes = { 'elm' }, - root_dir = function(fname) - local filetype = api.nvim_buf_get_option(0, 'filetype') - if filetype == 'elm' or (filetype == 'json' and fname:match 'elm%.json$') then - return elm_root_pattern(fname) - end - end, - init_options = { - elmAnalyseTrigger = 'change', - }, - }, - docs = { - description = [[ -https://github.com/elm-tooling/elm-language-server#installation - -If you don't want to use Nvim to install it, then you can use: -```sh -npm install -g elm elm-test elm-format @elm-tooling/elm-language-server -``` -]], - default_config = { - root_dir = [[root_pattern("elm.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ember.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ember.lua deleted file mode 100644 index e6ce1ea..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ember.lua +++ /dev/null @@ -1,30 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'ember-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'handlebars', 'typescript', 'javascript' }, - root_dir = util.root_pattern('ember-cli-build.js', '.git'), - }, - docs = { - description = [[ -https://github.com/lifeart/ember-language-server - -`ember-language-server` can be installed via `npm`: - -```sh -npm install -g @lifeart/ember-language-server -``` -]], - default_config = { - root_dir = [[root_pattern("ember-cli-build.js", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/emmet_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/emmet_ls.lua deleted file mode 100644 index 3750ae5..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/emmet_ls.lua +++ /dev/null @@ -1,31 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'emmet-ls' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'html', 'css' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/aca/emmet-ls - -Package can be installed via `npm`: -```sh -npm install -g emmet-ls -``` -]], - default_config = { - root_dir = 'git root', - single_file_support = true, - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/erlangls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/erlangls.lua deleted file mode 100644 index cec1928..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/erlangls.lua +++ /dev/null @@ -1,34 +0,0 @@ -local util = require 'lspconfig.util' - -local cmd = { 'erlang_ls' } -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', 'erlang_ls.cmd' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'erlang' }, - root_dir = util.root_pattern('rebar.config', 'erlang.mk', '.git'), - single_file_support = true, - }, - docs = { - description = [[ -https://erlang-ls.github.io - -Language Server for Erlang. - -Clone [erlang_ls](https://github.com/erlang-ls/erlang_ls) -Compile the project with `make` and copy resulting binaries somewhere in your $PATH eg. `cp _build/*/bin/* ~/local/bin` - -Installation instruction can be found [here](https://github.com/erlang-ls/erlang_ls). - -Installation requirements: - - [Erlang OTP 21+](https://github.com/erlang/otp) - - [rebar3 3.9.1+](https://github.com/erlang/rebar3) -]], - default_config = { - root_dir = [[root_pattern('rebar.config', 'erlang.mk', '.git')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/esbonio.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/esbonio.lua deleted file mode 100644 index a97c26b..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/esbonio.lua +++ /dev/null @@ -1,55 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'python3', '-m', 'esbonio' }, - filetypes = { 'rst' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -https://github.com/swyddfa/esbonio - -Esbonio is a language server for [Sphinx](https://www.sphinx-doc.org/en/master/) documentation projects. -The language server can be installed via pip - -``` -pip install esbonio -``` - -Since Sphinx is highly extensible you will get best results if you install the language server in the same -Python environment as the one used to build your documentation. To ensure that the correct Python environment -is picked up, you can either launch `nvim` with the correct environment activated. - -``` -source env/bin/activate -nvim -``` - -Or you can modify the default `cmd` to include the full path to the Python interpreter. - -```lua -require'lspconfig'.esbonio.setup { - cmd = { '/path/to/virtualenv/bin/python', '-m', 'esbonio' } -} -``` - -Esbonio supports a number of config values passed as `init_options` on startup, for example. - -```lua -require'lspconfig'.esbonio.setup { - init_options = { - server = { - logLevel = "debug" - }, - sphinx = { - confDir = "/path/to/docs", - srcDir = "${confDir}/../docs-src" - } -} -``` - -A full list and explanation of the available options can be found [here](https://swyddfa.github.io/esbonio/docs/lsp/editors/index.html) -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/eslint.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/eslint.lua deleted file mode 100644 index 925cdfe..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/eslint.lua +++ /dev/null @@ -1,172 +0,0 @@ -local util = require 'lspconfig.util' -local lsp = vim.lsp - -local get_eslint_client = function() - local active_clients = lsp.get_active_clients() - for _, client in ipairs(active_clients) do - if client.name == 'eslint' then - return client - end - end - return nil -end - -local function fix_all(opts) - opts = opts or {} - - local eslint_lsp_client = get_eslint_client() - if eslint_lsp_client == nil then - return - end - - local request - if opts.sync then - request = function(bufnr, method, params) - eslint_lsp_client.request_sync(method, params, nil, bufnr) - end - else - request = function(bufnr, method, params) - eslint_lsp_client.request(method, params, nil, bufnr) - end - end - - local bufnr = util.validate_bufnr(opts.bufnr or 0) - request(0, 'workspace/executeCommand', { - command = 'eslint.applyAllFixes', - arguments = { - { - uri = vim.uri_from_bufnr(bufnr), - version = lsp.util.buf_versions[bufnr], - }, - }, - }) -end - -local bin_name = 'vscode-eslint-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { - 'javascript', - 'javascriptreact', - 'javascript.jsx', - 'typescript', - 'typescriptreact', - 'typescript.tsx', - 'vue', - }, - -- https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-file-formats - root_dir = util.root_pattern( - '.eslintrc.js', - '.eslintrc.cjs', - '.eslintrc.yaml', - '.eslintrc.yml', - '.eslintrc.json', - 'package.json' - ), - -- Refer to https://github.com/Microsoft/vscode-eslint#settings-options for documentation. - settings = { - validate = 'on', - packageManager = 'npm', - useESLintClass = false, - codeActionOnSave = { - enable = false, - mode = 'all', - }, - format = true, - quiet = false, - onIgnoredFiles = 'off', - rulesCustomizations = {}, - run = 'onType', - -- nodePath configures the directory in which the eslint server should start its node_modules resolution. - -- This path is relative to the workspace folder (root dir) of the server instance. - nodePath = '', - -- use the workspace folder location or the file location (if no workspace folder is open) as the working directory - workingDirectory = { mode = 'location' }, - codeAction = { - disableRuleComment = { - enable = true, - location = 'separateLine', - }, - showDocumentation = { - enable = true, - }, - }, - }, - on_new_config = function(config, new_root_dir) - -- The "workspaceFolder" is a VSCode concept. It limits how far the - -- server will traverse the file system when locating the ESLint config - -- file (e.g., .eslintrc). - config.settings.workspaceFolder = { - uri = new_root_dir, - name = vim.fn.fnamemodify(new_root_dir, ':t'), - } - end, - handlers = { - ['eslint/openDoc'] = function(_, result) - if not result then - return - end - local sysname = vim.loop.os_uname().sysname - if sysname:match 'Windows' then - os.execute(string.format('start %q', result.url)) - elseif sysname:match 'Linux' then - os.execute(string.format('xdg-open %q', result.url)) - else - os.execute(string.format('open %q', result.url)) - end - return {} - end, - ['eslint/confirmESLintExecution'] = function(_, result) - if not result then - return - end - return 4 -- approved - end, - ['eslint/probeFailed'] = function() - vim.notify('[lspconfig] ESLint probe failed.', vim.log.levels.WARN) - return {} - end, - ['eslint/noLibrary'] = function() - vim.notify('[lspconfig] Unable to find ESLint library.', vim.log.levels.WARN) - return {} - end, - }, - }, - commands = { - EslintFixAll = { - function() - fix_all { sync = true, bufnr = 0 } - end, - description = 'Fix all eslint problems for this buffer', - }, - }, - docs = { - description = [[ -https://github.com/hrsh7th/vscode-langservers-extracted - -vscode-eslint-language-server: A linting engine for JavaScript / Typescript - -`vscode-eslint-language-server` can be installed via `npm`: -```sh -npm i -g vscode-langservers-extracted -``` - -vscode-eslint-language-server provides an EslintFixAll command that can be used to format document on save -```vim -autocmd BufWritePre *.tsx,*.ts,*.jsx,*.js EslintFixAll -``` - -See [vscode-eslint](https://github.com/microsoft/vscode-eslint/blob/55871979d7af184bf09af491b6ea35ebd56822cf/server/src/eslintServer.ts#L216-L229) for configuration options. - -Additional messages you can handle: eslint/noConfig -Messages already handled in lspconfig: eslint/openDoc, eslint/confirmESLintExecution, eslint/probeFailed, eslint/noLibrary -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flow.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flow.lua deleted file mode 100644 index 3ac59aa..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flow.lua +++ /dev/null @@ -1,27 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'npx', '--no-install', 'flow', 'lsp' }, - filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx' }, - root_dir = util.root_pattern '.flowconfig', - }, - docs = { - description = [[ -https://flow.org/ -https://github.com/facebook/flow - -See below for how to setup Flow itself. -https://flow.org/en/docs/install/ - -See below for lsp command options. - -```sh -npx flow lsp --help -``` - ]], - default_config = { - root_dir = [[root_pattern(".flowconfig")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flux_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flux_lsp.lua deleted file mode 100644 index 3be9a1b..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/flux_lsp.lua +++ /dev/null @@ -1,22 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'flux-lsp' }, - filetypes = { 'flux' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/influxdata/flux-lsp -`flux-lsp` can be installed via `cargo`: -```sh -cargo install --git https://github.com/influxdata/flux-lsp -``` -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/foam_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/foam_ls.lua deleted file mode 100644 index 1f0d7fc..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/foam_ls.lua +++ /dev/null @@ -1,31 +0,0 @@ -local util = require 'lspconfig.util' -local bin_name = 'foam-ls' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'foam', 'OpenFOAM' }, - root_dir = function(fname) - return util.search_ancestors(fname, function(path) - if util.path.exists(util.path.join(path, 'system', 'controlDict')) then - return path - end - end) - end, - }, - docs = { - description = [[ -https://github.com/FoamScience/foam-language-server - -`foam-language-server` can be installed via `npm` -```sh -npm install -g foam-language-server -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fortls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fortls.lua deleted file mode 100644 index 5879139..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fortls.lua +++ /dev/null @@ -1,24 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'fortls' }, - filetypes = { 'fortran' }, - root_dir = function(fname) - return util.root_pattern '.fortls'(fname) or util.find_git_ancestor(fname) - end, - settings = { - nthreads = 1, - }, - }, - docs = { - description = [[ -https://github.com/hansec/fortran-language-server - -Fortran Language Server for the Language Server Protocol - ]], - default_config = { - root_dir = [[root_pattern(".fortls")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fsautocomplete.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fsautocomplete.lua deleted file mode 100644 index 1a1d4c5..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fsautocomplete.lua +++ /dev/null @@ -1,32 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'fsautocomplete', '--background-service-enabled' }, - root_dir = util.root_pattern('*.sln', '*.fsproj', '.git'), - filetypes = { 'fsharp' }, - init_options = { - AutomaticWorkspaceInit = true, - }, - }, - docs = { - description = [[ -https://github.com/fsharp/FsAutoComplete - -Language Server for F# provided by FsAutoComplete (FSAC). - -FsAutoComplete requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. - -The preferred way to install FsAutoComplete is with `dotnet tool install --global fsautocomplete`. - -Instructions to compile from source are found on the main [repository](https://github.com/fsharp/FsAutoComplete). - -You may also need to configure the filetype as Vim defaults to Forth for `*.fs` files: - -`autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp` - -This is automatically done by plugins such as [PhilT/vim-fsharp](https://github.com/PhilT/vim-fsharp), [fsharp/vim-fsharp](https://github.com/fsharp/vim-fsharp), and [adelarsq/neofsharp.vim](https://github.com/adelarsq/neofsharp.vim). - - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fstar.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fstar.lua deleted file mode 100644 index d866c54..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/fstar.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'fstar.exe', '--lsp' }, - filetypes = { 'fstar' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -https://github.com/FStarLang/FStar - -LSP support is included in FStar. Make sure `fstar.exe` is in your PATH. -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gdscript.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gdscript.lua deleted file mode 100644 index d6d697f..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gdscript.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'nc', 'localhost', '6008' }, - filetypes = { 'gd', 'gdscript', 'gdscript3' }, - root_dir = util.root_pattern('project.godot', '.git'), - }, - docs = { - description = [[ -https://github.com/godotengine/godot - -Language server for GDScript, used by Godot Engine. -]], - default_config = { - root_dir = [[util.root_pattern("project.godot", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ghcide.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ghcide.lua deleted file mode 100644 index 7f9307b..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ghcide.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'ghcide', '--lsp' }, - filetypes = { 'haskell', 'lhaskell' }, - root_dir = util.root_pattern('stack.yaml', 'hie-bios', 'BUILD.bazel', 'cabal.config', 'package.yaml'), - }, - - docs = { - description = [[ -https://github.com/digital-asset/ghcide - -A library for building Haskell IDE tooling. -"ghcide" isn't for end users now. Use "haskell-language-server" instead of "ghcide". -]], - default_config = { - root_dir = [[root_pattern("stack.yaml", "hie-bios", "BUILD.bazel", "cabal.config", "package.yaml")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/golangci_lint_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/golangci_lint_ls.lua deleted file mode 100644 index 8eaa015..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/golangci_lint_ls.lua +++ /dev/null @@ -1,34 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'golangci-lint-langserver' }, - filetypes = { 'go', 'gomod' }, - init_options = { - command = { 'golangci-lint', 'run', '--out-format', 'json' }, - }, - root_dir = function(fname) - return util.root_pattern 'go.work'(fname) or util.root_pattern('go.mod', '.golangci.yaml', '.git')(fname) - end, - }, - docs = { - description = [[ -Combination of both lint server and client - -https://github.com/nametake/golangci-lint-langserver -https://github.com/golangci/golangci-lint - - -Installation of binaries needed is done via - -``` -go install github.com/nametake/golangci-lint-langserver@latest -go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1 -``` - -]], - default_config = { - root_dir = [[root_pattern('go.work') or root_pattern('go.mod', '.golangci.yaml', '.git')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gopls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gopls.lua deleted file mode 100644 index f6a085d..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gopls.lua +++ /dev/null @@ -1,22 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'gopls' }, - filetypes = { 'go', 'gomod', 'gotmpl' }, - root_dir = function(fname) - return util.root_pattern 'go.work'(fname) or util.root_pattern('go.mod', '.git')(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/golang/tools/tree/master/gopls - -Google's lsp server for golang. -]], - default_config = { - root_dir = [[root_pattern("go.mod", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gradle_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gradle_ls.lua deleted file mode 100644 index b23b599..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/gradle_ls.lua +++ /dev/null @@ -1,37 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'gradle-language-server' -if vim.fn.has 'win32' == 1 then - bin_name = bin_name .. '.bat' -end - -local root_files = { - 'settings.gradle', -- Gradle (multi-project) -} - -local fallback_root_files = { - 'build.gradle', -- Gradle -} - -return { - default_config = { - filetypes = { 'groovy' }, - root_dir = function(fname) - return util.root_pattern(unpack(root_files))(fname) or util.root_pattern(unpack(fallback_root_files))(fname) - end, - cmd = { bin_name }, - }, - docs = { - description = [[ -https://github.com/microsoft/vscode-gradle - -Microsoft's lsp server for gradle files - -If you're setting this up manually, build vscode-gradle using `./gradlew installDist` and point `cmd` to the `gradle-language-server` generated in the build directory -]], - default_config = { - root_dir = [[root_pattern("settings.gradle")]], - cmd = { 'gradle-language-server' }, - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/grammarly.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/grammarly.lua deleted file mode 100644 index 675169d..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/grammarly.lua +++ /dev/null @@ -1,38 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'unofficial-grammarly-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'markdown' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - handlers = { - ['$/updateDocumentState'] = function() - return '' - end, - }, - }, - docs = { - description = [[ -https://github.com/emacs-grammarly/unofficial-grammarly-language-server - -`unofficial-grammarly-language-server` can be installed via `npm`: - -```sh -npm i -g @emacs-grammarly/unofficial-grammarly-language-server -``` - -WARNING: Since this language server uses Grammarly's API, any document you open with it running is shared with them. Please evaluate their [privacy policy](https://www.grammarly.com/privacy-policy) before using this. -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/graphql.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/graphql.lua deleted file mode 100644 index d34881c..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/graphql.lua +++ /dev/null @@ -1,33 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'graphql-lsp' -local cmd = { bin_name, 'server', '-m', 'stream' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, 'server', '-m', 'stream' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'graphql', 'typescriptreact', 'javascriptreact' }, - root_dir = util.root_pattern('.git', '.graphqlrc*', '.graphql.config.*', 'graphql.config.*'), - }, - - docs = { - description = [[ -https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli - -`graphql-lsp` can be installed via `npm`: - -```sh -npm install -g graphql-language-service-cli -``` - -Note that you must also have [the graphql package](https://github.com/graphql/graphql-js) installed and create a [GraphQL config file](https://www.graphql-config.com/docs/user/user-introduction). -]], - default_config = { - root_dir = [[root_pattern('.git', '.graphqlrc*', '.graphql.config.*')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/groovyls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/groovyls.lua deleted file mode 100644 index b4182f4..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/groovyls.lua +++ /dev/null @@ -1,36 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { - 'java', - '-jar', - 'groovy-language-server-all.jar', - }, - filetypes = { 'groovy' }, - root_dir = function(fname) - return util.root_pattern 'Jenkinsfile'(fname) or util.find_git_ancestor(fname) - end, - }, - docs = { - description = [[ -https://github.com/prominic/groovy-language-server.git - -Requirements: - - Linux/macOS (for now) - - Java 11+ - -`groovyls` can be installed by following the instructions [here](https://github.com/prominic/groovy-language-server.git#build). - -If you have installed groovy language server, you can set the `cmd` custom path as follow: - -```lua -require'lspconfig'.groovyls.setup{ - -- Unix - cmd = { "java", "-jar", "path/to/groovyls/groovy-language-server-all.jar" }, - ... -} -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/haxe_language_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/haxe_language_server.lua deleted file mode 100644 index 1589c7b..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/haxe_language_server.lua +++ /dev/null @@ -1,47 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'haxe-language-server' }, - filetypes = { 'haxe' }, - root_dir = util.root_pattern '*.hxml', - settings = { - haxe = { - executable = 'haxe', - }, - }, - init_options = { - displayArguments = { 'build.hxml' }, - }, - }, - docs = { - description = [[ -https://github.com/vshaxe/haxe-language-server - -The Haxe language server can be built by running the following commands from -the project's root directory: - - npm install - npx lix run vshaxe-build -t language-server - -This will create `bin/server.js`. Note that the server requires Haxe 3.4.0 or -higher. - -After building the language server, set the `cmd` setting in your setup -function: - -```lua -lspconfig.haxe_language_server.setup({ - cmd = {"node", "path/to/bin/server.js"}, -}) -``` - -By default, an HXML compiler arguments file named `build.hxml` is expected in -your project's root directory. If your file is named something different, -specify it using the `init_options.displayArguments` setting. -]], - default_config = { - root_dir = [[root_pattern("*.hxml")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hdl_checker.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hdl_checker.lua deleted file mode 100644 index 5cf2941..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hdl_checker.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'hdl_checker', '--lsp' }, - filetypes = { 'vhdl', 'verilog', 'systemverilog' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/suoto/hdl_checker -Language server for hdl-checker. -Install using: `pip install hdl-checker --upgrade` -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hhvm.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hhvm.lua deleted file mode 100644 index 0e8ac5c..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hhvm.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'hh_client', 'lsp' }, - filetypes = { 'php', 'hack' }, - root_dir = util.root_pattern '.hhconfig', - }, - docs = { - description = [[ -Language server for programs written in Hack -https://hhvm.com/ -https://github.com/facebook/hhvm -See below for how to setup HHVM & typechecker: -https://docs.hhvm.com/hhvm/getting-started/getting-started - ]], - default_config = { - root_dir = [[root_pattern(".hhconfig")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hie.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hie.lua deleted file mode 100644 index 96148ad..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hie.lua +++ /dev/null @@ -1,34 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'hie-wrapper', '--lsp' }, - filetypes = { 'haskell' }, - root_dir = util.root_pattern('stack.yaml', 'package.yaml', '.git'), - }, - - docs = { - description = [[ -https://github.com/haskell/haskell-ide-engine - -the following init_options are supported (see https://github.com/haskell/haskell-ide-engine#configuration): -```lua -init_options = { - languageServerHaskell = { - hlintOn = bool; - maxNumberOfProblems = number; - diagnosticsDebounceDuration = number; - liquidOn = bool (default false); - completionSnippetsOn = bool (default true); - formatOnImportOn = bool (default true); - formattingProvider = string (default "brittany", alternate "floskell"); - } -} -``` - ]], - - default_config = { - root_dir = [[root_pattern("stack.yaml", "package.yaml", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hls.lua deleted file mode 100644 index 32b3ea2..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hls.lua +++ /dev/null @@ -1,43 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'haskell-language-server-wrapper', '--lsp' }, - filetypes = { 'haskell', 'lhaskell' }, - root_dir = util.root_pattern('*.cabal', 'stack.yaml', 'cabal.project', 'package.yaml', 'hie.yaml'), - single_file_support = true, - settings = { - haskell = { - formattingProvider = 'ormolu', - }, - }, - lspinfo = function(cfg) - local extra = {} - local function on_stdout(_, data, _) - local version = data[1] - table.insert(extra, 'version: ' .. version) - end - - local opts = { - cwd = cfg.cwd, - stdout_buffered = true, - on_stdout = on_stdout, - } - local chanid = vim.fn.jobstart({ cfg.cmd[1], '--version' }, opts) - vim.fn.jobwait { chanid } - return extra - end, - }, - - docs = { - description = [[ -https://github.com/haskell/haskell-language-server - -Haskell Language Server - ]], - - default_config = { - root_dir = [[root_pattern("*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hoon_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hoon_ls.lua deleted file mode 100644 index 80092db..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/hoon_ls.lua +++ /dev/null @@ -1,29 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'hoon-language-server' -local cmd = { bin_name } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'hoon' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/urbit/hoon-language-server - -A language server for Hoon. - -The language server can be installed via `npm install -g @hoon-language-server` - -Start a fake ~zod with `urbit -F zod`. -Start the language server at the Urbit Dojo prompt with: `|start %language-server` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/html.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/html.lua deleted file mode 100644 index 2f8214f..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/html.lua +++ /dev/null @@ -1,48 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'vscode-html-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'html' }, - root_dir = util.root_pattern('package.json', '.git'), - single_file_support = true, - settings = {}, - init_options = { - provideFormatter = true, - embeddedLanguages = { css = true, javascript = true }, - configurationSection = { 'html', 'css', 'javascript' }, - }, - }, - docs = { - description = [[ -https://github.com/hrsh7th/vscode-langservers-extracted - -`vscode-html-language-server` can be installed via `npm`: -```sh -npm i -g vscode-langservers-extracted -``` - -Neovim does not currently include built-in snippets. `vscode-html-language-server` only provides completions when snippet support is enabled. -To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. - -The code-formatting feature of the lsp can be controlled with the `provideFormatter` option. - -```lua ---Enable (broadcasting) snippet capability for completion -local capabilities = vim.lsp.protocol.make_client_capabilities() -capabilities.textDocument.completion.completionItem.snippetSupport = true - -require'lspconfig'.html.setup { - capabilities = capabilities, -} -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/idris2_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/idris2_lsp.lua deleted file mode 100644 index d6efdd1..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/idris2_lsp.lua +++ /dev/null @@ -1,41 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'idris2-lsp' }, - filetypes = { 'idris2' }, - root_dir = util.root_pattern '*.ipkg', - }, - docs = { - description = [[ -https://github.com/idris-community/idris2-lsp - -The Idris 2 language server. - -Plugins for the Idris 2 filetype include -[Idris2-Vim](https://github.com/edwinb/idris2-vim) (fewer features, stable) and -[Nvim-Idris2](https://github.com/ShinKage/nvim-idris2) (cutting-edge, -experimental). - -Idris2-Lsp requires a build of Idris 2 that includes the "Idris 2 API" package. -Package managers with known support for this build include the -[AUR](https://aur.archlinux.org/packages/idris2-api-git/) and -[Homebrew](https://formulae.brew.sh/formula/idris2#default). - -If your package manager does not support the Idris 2 API, you will need to build -Idris 2 from source. Refer to the -[the Idris 2 installation instructions](https://github.com/idris-lang/Idris2/blob/main/INSTALL.md) -for details. Steps 5 and 8 are listed as "optional" in that guide, but they are -necessary in order to make the Idris 2 API available. - -You need to install a version of Idris2-Lsp that is compatible with your -version of Idris 2. There should be a branch corresponding to every released -Idris 2 version after v0.4.0. Use the latest commit on that branch. For example, -if you have Idris v0.5.1, you should use the v0.5.1 branch of Idris2-Lsp. - -If your Idris 2 version is newer than the newest Idris2-Lsp branch, use the -latest commit on the `master` branch, and set a reminder to check the Idris2-Lsp -repo for the release of a compatible versioned branch. -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/intelephense.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/intelephense.lua deleted file mode 100644 index c9e35b9..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/intelephense.lua +++ /dev/null @@ -1,50 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'intelephense' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'php' }, - root_dir = function(pattern) - local cwd = vim.loop.cwd() - local root = util.root_pattern('composer.json', '.git')(pattern) - - -- prefer cwd if root is a descendant - return util.path.is_descendant(cwd, root) and cwd or root - end, - }, - docs = { - description = [[ -https://intelephense.com/ - -`intelephense` can be installed via `npm`: -```sh -npm install -g intelephense -``` -]], - default_config = { - root_dir = [[root_pattern("composer.json", ".git")]], - init_options = [[{ - storagePath = Optional absolute path to storage dir. Defaults to os.tmpdir(). - globalStoragePath = Optional absolute path to a global storage dir. Defaults to os.homedir(). - licenceKey = Optional licence key or absolute path to a text file containing the licence key. - clearCache = Optional flag to clear server state. State can also be cleared by deleting {storagePath}/intelephense - -- See https://github.com/bmewburn/intelephense-docs/blob/master/installation.md#initialisation-options - }]], - settings = [[{ - intelephense = { - files = { - maxSize = 1000000; - }; - }; - -- See https://github.com/bmewburn/intelephense-docs - }]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/java_language_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/java_language_server.lua deleted file mode 100644 index 3ddf4b1..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/java_language_server.lua +++ /dev/null @@ -1,18 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - filetypes = { 'java' }, - root_dir = util.root_pattern('build.gradle', 'pom.xml', '.git'), - settings = {}, - }, - docs = { - description = [[ -https://github.com/georgewfraser/java-language-server - -Java language server - -Point `cmd` to `lang_server_linux.sh` or the equivalent script for macOS/Windows provided by java-language-server -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jdtls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jdtls.lua deleted file mode 100644 index d740572..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jdtls.lua +++ /dev/null @@ -1,193 +0,0 @@ -local util = require 'lspconfig.util' -local handlers = require 'vim.lsp.handlers' - -local sysname = vim.loop.os_uname().sysname -local env = { - HOME = vim.loop.os_homedir(), - JAVA_HOME = os.getenv 'JAVA_HOME', - JDTLS_HOME = os.getenv 'JDTLS_HOME', - WORKSPACE = os.getenv 'WORKSPACE', -} - -local function get_java_executable() - local executable = env.JAVA_HOME and util.path.join(env.JAVA_HOME, 'bin', 'java') or 'java' - - return sysname:match 'Windows' and executable .. '.exe' or executable -end - -local function get_workspace_dir() - return env.WORKSPACE and env.WORKSPACE or util.path.join(env.HOME, 'workspace') -end - -local function get_jdtls_jar() - return vim.fn.expand '$JDTLS_HOME/plugins/org.eclipse.equinox.launcher_*.jar' -end - -local function get_jdtls_config() - if sysname:match 'Linux' then - return util.path.join(env.JDTLS_HOME, 'config_linux') - elseif sysname:match 'Darwin' then - return util.path.join(env.JDTLS_HOME, 'config_mac') - elseif sysname:match 'Windows' then - return util.path.join(env.JDTLS_HOME, 'config_win') - else - return util.path.join(env.JDTLS_HOME, 'config_linux') - end -end - --- TextDocument version is reported as 0, override with nil so that --- the client doesn't think the document is newer and refuses to update --- See: https://github.com/eclipse/eclipse.jdt.ls/issues/1695 -local function fix_zero_version(workspace_edit) - if workspace_edit and workspace_edit.documentChanges then - for _, change in pairs(workspace_edit.documentChanges) do - local text_document = change.textDocument - if text_document and text_document.version and text_document.version == 0 then - text_document.version = nil - end - end - end - return workspace_edit -end - -local function on_textdocument_codeaction(err, actions, ctx) - for _, action in ipairs(actions) do - -- TODO: (steelsojka) Handle more than one edit? - if action.command == 'java.apply.workspaceEdit' then -- 'action' is Command in java format - action.edit = fix_zero_version(action.edit or action.arguments[1]) - elseif type(action.command) == 'table' and action.command.command == 'java.apply.workspaceEdit' then -- 'action' is CodeAction in java format - action.edit = fix_zero_version(action.edit or action.command.arguments[1]) - end - end - - handlers[ctx.method](err, actions, ctx) -end - -local function on_textdocument_rename(err, workspace_edit, ctx) - handlers[ctx.method](err, fix_zero_version(workspace_edit), ctx) -end - -local function on_workspace_applyedit(err, workspace_edit, ctx) - handlers[ctx.method](err, fix_zero_version(workspace_edit), ctx) -end - --- Non-standard notification that can be used to display progress -local function on_language_status(_, result) - local command = vim.api.nvim_command - command 'echohl ModeMsg' - command(string.format('echo "%s"', result.message)) - command 'echohl None' -end - -local root_files = { - -- Single-module projects - { - 'build.xml', -- Ant - 'pom.xml', -- Maven - 'settings.gradle', -- Gradle - 'settings.gradle.kts', -- Gradle - }, - -- Multi-module projects - { 'build.gradle', 'build.gradle.kts' }, -} - -return { - default_config = { - cmd = { - get_java_executable(), - '-Declipse.application=org.eclipse.jdt.ls.core.id1', - '-Dosgi.bundles.defaultStartLevel=4', - '-Declipse.product=org.eclipse.jdt.ls.core.product', - '-Dlog.protocol=true', - '-Dlog.level=ALL', - '-Xms1g', - '-Xmx2G', - '--add-modules=ALL-SYSTEM', - '--add-opens', - 'java.base/java.util=ALL-UNNAMED', - '--add-opens', - 'java.base/java.lang=ALL-UNNAMED', - '-jar', - get_jdtls_jar(), - '-configuration', - get_jdtls_config(), - '-data', - get_workspace_dir(), - }, - filetypes = { 'java' }, - root_dir = function(fname) - for _, patterns in ipairs(root_files) do - local root = util.root_pattern(unpack(patterns))(fname) - if root then - return root - end - end - end, - single_file_support = true, - init_options = { - workspace = get_workspace_dir(), - jvm_args = {}, - os_config = nil, - }, - handlers = { - -- Due to an invalid protocol implementation in the jdtls we have to conform these to be spec compliant. - -- https://github.com/eclipse/eclipse.jdt.ls/issues/376 - ['textDocument/codeAction'] = on_textdocument_codeaction, - ['textDocument/rename'] = on_textdocument_rename, - ['workspace/applyEdit'] = on_workspace_applyedit, - ['language/status'] = vim.schedule_wrap(on_language_status), - }, - }, - docs = { - description = [[ -https://projects.eclipse.org/projects/eclipse.jdt.ls - -Language server for Java. - -IMPORTANT: If you want all the features jdtls has to offer, [nvim-jdtls](https://github.com/mfussenegger/nvim-jdtls) -is highly recommended. If all you need is diagnostics, completion, imports, gotos and formatting and some code actions -you can keep reading here. - -For manual installation you can download precompiled binaries from the -[official downloads site](http://download.eclipse.org/jdtls/snapshots/?d) - -Due to the nature of java, settings cannot be inferred. Please set the following -environmental variables to match your installation. If you need per-project configuration -[direnv](https://github.com/direnv/direnv) is highly recommended. - -```bash -# Mandatory: -# .bashrc -export JDTLS_HOME=/path/to/jdtls_root # Directory with the plugin and configs directories - -# Optional: -export JAVA_HOME=/path/to/java_home # In case you don't have java in path or want to use a version in particular -export WORKSPACE=/path/to/workspace # Defaults to $HOME/workspace -``` -```lua - -- init.lua - require'lspconfig'.jdtls.setup{} -``` - -For automatic installation you can use the following unofficial installers/launchers under your own risk: - - [jdtls-launcher](https://github.com/eruizc-dev/jdtls-launcher) (Includes lombok support by default) - ```lua - -- init.lua - require'lspconfig'.jdtls.setup{ cmd = { 'jdtls' } } - ``` - ]], - default_config = { - root_dir = [[{ - -- Single-module projects - { - 'build.xml', -- Ant - 'pom.xml', -- Maven - 'settings.gradle', -- Gradle - 'settings.gradle.kts', -- Gradle - }, - -- Multi-module projects - { 'build.gradle', 'build.gradle.kts' }, - } or vim.fn.getcwd()]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jedi_language_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jedi_language_server.lua deleted file mode 100644 index 30cf8f5..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jedi_language_server.lua +++ /dev/null @@ -1,28 +0,0 @@ -local util = require 'lspconfig.util' - -local root_files = { - 'pyproject.toml', - 'setup.py', - 'setup.cfg', - 'requirements.txt', - 'Pipfile', -} - -return { - default_config = { - cmd = { 'jedi-language-server' }, - filetypes = { 'python' }, - root_dir = util.root_pattern(unpack(root_files)), - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/pappasam/jedi-language-server - -`jedi-language-server`, a language server for Python, built on top of jedi - ]], - default_config = { - root_dir = "vim's starting directory", - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonls.lua deleted file mode 100644 index a62a715..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonls.lua +++ /dev/null @@ -1,48 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'vscode-json-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'json', 'jsonc' }, - init_options = { - provideFormatter = true, - }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - -- this language server config is in VSCode built-in package.json - description = [[ -https://github.com/hrsh7th/vscode-langservers-extracted - -vscode-json-language-server, a language server for JSON and JSON schema - -`vscode-json-language-server` can be installed via `npm`: -```sh -npm i -g vscode-langservers-extracted -``` - -Neovim does not currently include built-in snippets. `vscode-json-language-server` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. - -```lua ---Enable (broadcasting) snippet capability for completion -local capabilities = vim.lsp.protocol.make_client_capabilities() -capabilities.textDocument.completion.completionItem.snippetSupport = true - -require'lspconfig'.jsonls.setup { - capabilities = capabilities, -} -``` -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonnet_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonnet_ls.lua deleted file mode 100644 index 3493e7e..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/jsonnet_ls.lua +++ /dev/null @@ -1,40 +0,0 @@ -local util = require 'lspconfig.util' - --- common jsonnet library paths -local function jsonnet_path(root_dir) - local paths = { - util.path.join(root_dir, 'lib'), - util.path.join(root_dir, 'vendor'), - } - return table.concat(paths, ':') -end - -return { - default_config = { - cmd = { 'jsonnet-language-server' }, - filetypes = { 'jsonnet', 'libsonnet' }, - root_dir = function(fname) - return util.root_pattern 'jsonnetfile.json'(fname) or util.find_git_ancestor(fname) - end, - on_new_config = function(new_config, root_dir) - new_config.cmd_env = { - JSONNET_PATH = jsonnet_path(root_dir), - } - end, - }, - docs = { - description = [[ -https://github.com/grafana/jsonnet-language-server - -A Language Server Protocol (LSP) server for Jsonnet. - -The language server can be installed with `go`: -```sh -go install github.com/grafana/jsonnet-language-server@latest -``` -]], - default_config = { - root_dir = [[root_pattern("jsonnetfile.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/julials.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/julials.lua deleted file mode 100644 index 44360c7..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/julials.lua +++ /dev/null @@ -1,75 +0,0 @@ -local util = require 'lspconfig.util' - -local cmd = { - 'julia', - '--startup-file=no', - '--history-file=no', - '-e', - [[ - # Load LanguageServer.jl: attempt to load from ~/.julia/environments/nvim-lspconfig - # with the regular load path as a fallback - ls_install_path = joinpath( - get(DEPOT_PATH, 1, joinpath(homedir(), ".julia")), - "environments", "nvim-lspconfig" - ) - pushfirst!(LOAD_PATH, ls_install_path) - using LanguageServer - popfirst!(LOAD_PATH) - depot_path = get(ENV, "JULIA_DEPOT_PATH", "") - project_path = let - dirname(something( - ## 1. Finds an explicitly set project (JULIA_PROJECT) - Base.load_path_expand(( - p = get(ENV, "JULIA_PROJECT", nothing); - p === nothing ? nothing : isempty(p) ? nothing : p - )), - ## 2. Look for a Project.toml file in the current working directory, - ## or parent directories, with $HOME as an upper boundary - Base.current_project(), - ## 3. First entry in the load path - get(Base.load_path(), 1, nothing), - ## 4. Fallback to default global environment, - ## this is more or less unreachable - Base.load_path_expand("@v#.#"), - )) - end - @info "Running language server" VERSION pwd() project_path depot_path - server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path) - server.runlinter = true - run(server) - ]], -} - -return { - default_config = { - cmd = cmd, - filetypes = { 'julia' }, - root_dir = function(fname) - return util.root_pattern 'Project.toml'(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/julia-vscode/julia-vscode - -LanguageServer.jl can be installed with `julia` and `Pkg`: -```sh -julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.add("LanguageServer")' -``` -where `~/.julia/environments/nvim-lspconfig` is the location where -the default configuration expects LanguageServer.jl to be installed. - -To update an existing install, use the following command: -```sh -julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.update()' -``` - -Note: In order to have LanguageServer.jl pick up installed packages or dependencies in a -Julia project, you must make sure that the project is instantiated: -```sh -julia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()' -``` - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/kotlin_language_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/kotlin_language_server.lua deleted file mode 100644 index a955fe6..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/kotlin_language_server.lua +++ /dev/null @@ -1,71 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'kotlin-language-server' -if vim.fn.has 'win32' == 1 then - bin_name = bin_name .. '.bat' -end - ---- The presence of one of these files indicates a project root directory --- --- These are configuration files for the various build systems supported by --- Kotlin. I am not sure whether the language server supports Ant projects, --- but I'm keeping it here as well since Ant does support Kotlin. -local root_files = { - 'settings.gradle', -- Gradle (multi-project) - 'settings.gradle.kts', -- Gradle (multi-project) - 'build.xml', -- Ant - 'pom.xml', -- Maven -} - -local fallback_root_files = { - 'build.gradle', -- Gradle - 'build.gradle.kts', -- Gradle -} - -return { - default_config = { - filetypes = { 'kotlin' }, - root_dir = function(fname) - return util.root_pattern(unpack(root_files))(fname) or util.root_pattern(unpack(fallback_root_files))(fname) - end, - cmd = { bin_name }, - }, - docs = { - description = [[ - A kotlin language server which was developed for internal usage and - released afterwards. Maintaining is not done by the original author, - but by fwcd. - - It is built via gradle and developed on github. - Source and additional description: - https://github.com/fwcd/kotlin-language-server - - This server requires vim to be aware of the kotlin-filetype. - You could refer for this capability to: - https://github.com/udalov/kotlin-vim (recommended) - Note that there is no LICENSE specified yet. - ]], - default_config = { - root_dir = [[root_pattern("settings.gradle")]], - cmd = { 'kotlin-language-server' }, - capabilities = [[ - smart code completion, - diagnostics, - hover, - document symbols, - definition lookup, - method signature help, - dependency resolution, - additional plugins from: https://github.com/fwcd - - Snipped of License (refer to source for full License): - - The MIT License (MIT) - - Copyright (c) 2016 George Fraser - Copyright (c) 2018 fwcd - - ]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lean3ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lean3ls.lua deleted file mode 100644 index b35a693..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lean3ls.lua +++ /dev/null @@ -1,54 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'lean-language-server' -local args = { '--stdio', '--', '-M', '4096', '-T', '100000' } -local cmd = { bin_name, unpack(args) } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, unpack(args) } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'lean3' }, - offset_encoding = 'utf-32', - root_dir = function(fname) - fname = util.path.sanitize(fname) - -- check if inside elan stdlib - local stdlib_dir - do - local _, endpos = fname:find '/lean/library' - if endpos then - stdlib_dir = fname:sub(1, endpos) - end - end - - return util.root_pattern 'leanpkg.toml'(fname) - or util.root_pattern 'leanpkg.path'(fname) - or stdlib_dir - or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/leanprover/lean-client-js/tree/master/lean-language-server - -Lean installation instructions can be found -[here](https://leanprover-community.github.io/get_started.html#regular-install). - -Once Lean is installed, you can install the Lean 3 language server by running -```sh -npm install -g lean-language-server -``` - -Note: that if you're using [lean.nvim](https://github.com/Julian/lean.nvim), -that plugin fully handles the setup of the Lean language server, -and you shouldn't set up `lean3ls` both with it and `lspconfig`. - ]], - default_config = { - root_dir = [[root_pattern("leanpkg.toml") or root_pattern(".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/leanls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/leanls.lua deleted file mode 100644 index 208598a..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/leanls.lua +++ /dev/null @@ -1,77 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'lake', 'serve', '--' }, - filetypes = { 'lean' }, - root_dir = function(fname) - -- check if inside elan stdlib - fname = util.path.sanitize(fname) - local stdlib_dir - do - local _, endpos = fname:find '/src/lean' - if endpos then - stdlib_dir = fname:sub(1, endpos) - end - end - if not stdlib_dir then - local _, endpos = fname:find '/lib/lean' - if endpos then - stdlib_dir = fname:sub(1, endpos) - end - end - - return util.root_pattern('lakefile.lean', 'lean-toolchain', 'leanpkg.toml')(fname) - or stdlib_dir - or util.find_git_ancestor(fname) - end, - options = { - -- Only Lake 3.0+ supports lake serve, so for old enough Lean 4, - -- or core Lean itself, this command (typically using the in-built - -- Lean 4 language server) will be used instead. - no_lake_lsp_cmd = { 'lean', '--server' }, - }, - on_new_config = function(config, root_dir) - local use_lake_serve = false - if util.path.exists(util.path.join(root_dir, 'lakefile.lean')) then - local lake_version = '' - local lake_job = vim.fn.jobstart({ 'lake', '--version' }, { - on_stdout = function(_, d, _) - lake_version = table.concat(d, '\n') - end, - stdout_buffered = true, - }) - if lake_job > 0 and vim.fn.jobwait({ lake_job })[1] == 0 then - local major = lake_version:match 'Lake version (%d).' - if major and tonumber(major) >= 3 then - use_lake_serve = true - end - end - end - if not use_lake_serve then - config.cmd = config.options.no_lake_lsp_cmd - end - -- add root dir as command-line argument for `ps aux` - table.insert(config.cmd, root_dir) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/leanprover/lean4 - -Lean installation instructions can be found -[here](https://leanprover-community.github.io/get_started.html#regular-install). - -The Lean 4 language server is built-in with a Lean 4 install -(and can be manually run with, e.g., `lean --server`). - -Note: that if you're using [lean.nvim](https://github.com/Julian/lean.nvim), -that plugin fully handles the setup of the Lean language server, -and you shouldn't set up `leanls` both with it and `lspconfig`. - ]], - default_config = { - root_dir = [[root_pattern("lakefile.lean", "lean-toolchain", "leanpkg.toml", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lelwel_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lelwel_ls.lua deleted file mode 100644 index ac8c456..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lelwel_ls.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'lelwel-ls' }, - filetypes = { 'llw' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -https://github.com/0x2a-42/lelwel - -Language server for lelwel grammars. - -You can install `lelwel-ls` via cargo: -```sh -cargo install --features="lsp" lelwel -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lemminx.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lemminx.lua deleted file mode 100644 index 5bcf1cf..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/lemminx.lua +++ /dev/null @@ -1,23 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'lemminx' }, - filetypes = { 'xml', 'xsd', 'xsl', 'xslt', 'svg' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/eclipse/lemminx - -The easiest way to install the server is to get a binary at https://download.jboss.org/jbosstools/vscode/stable/lemminx-binary/ and place it in your PATH. - -NOTE to macOS users: Binaries from unidentified developers are blocked by default. If you trust the downloaded binary from jboss.org, run it once, cancel the prompt, then remove the binary from Gatekeeper quarantine with `xattr -d com.apple.quarantine lemminx`. It should now run without being blocked. - -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ltex.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ltex.lua deleted file mode 100644 index 0aeb387..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ltex.lua +++ /dev/null @@ -1,47 +0,0 @@ -local util = require 'lspconfig.util' - -local language_id_mapping = { - bib = 'bibtex', - plaintex = 'tex', - rnoweb = 'sweave', - rst = 'restructuredtext', - tex = 'latex', - xhtml = 'xhtml', -} - -local bin_name = 'ltex-ls' -if vim.fn.has 'win32' == 1 then - bin_name = bin_name .. '.bat' -end - -return { - default_config = { - cmd = { bin_name }, - filetypes = { 'bib', 'gitcommit', 'markdown', 'org', 'plaintex', 'rst', 'rnoweb', 'tex' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - get_language_id = function(_, filetype) - local language_id = language_id_mapping[filetype] - if language_id then - return language_id - else - return filetype - end - end, - }, - docs = { - description = [=[ -https://github.com/valentjn/ltex-ls - -LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with support for LaTeX 🎓, Markdown 📝, and others - -To install, download the latest [release](https://github.com/valentjn/ltex-ls/releases) and ensure `ltex-ls` is on your path. - -To support org files or R sweave, users can define a custom filetype autocommand (or use a plugin which defines these filetypes): - -```lua -vim.cmd [[ autocmd BufRead,BufNewFile *.org set filetype=org ]] -``` -]=], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/metals.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/metals.lua deleted file mode 100644 index b05db5c..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/metals.lua +++ /dev/null @@ -1,45 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'metals' }, - filetypes = { 'scala' }, - root_dir = util.root_pattern('build.sbt', 'build.sc', 'build.gradle', 'pom.xml'), - message_level = vim.lsp.protocol.MessageType.Log, - init_options = { - statusBarProvider = 'show-message', - isHttpEnabled = true, - compilerOptions = { - snippetAutoIndent = false, - }, - }, - }, - docs = { - description = [[ -https://scalameta.org/metals/ - -Scala language server with rich IDE features. - -See full instructions in the Metals documentation: - -https://scalameta.org/metals/docs/editors/vim.html#using-an-alternative-lsp-client - -Note: that if you're using [nvim-metals](https://github.com/scalameta/nvim-metals), that plugin fully handles the setup and installation of Metals, and you shouldn't set up Metals both with it and `lspconfig`. - -To install Metals, make sure to have [coursier](https://get-coursier.io/docs/cli-installation) installed, and once you do you can install the latest Metals with `cs install metals`. You can also manually bootstrap Metals with the following command. - -```bash -cs bootstrap \ - --java-opt -Xss4m \ - --java-opt -Xms100m \ - org.scalameta:metals_2.12: \ - -r bintray:scalacenter/releases \ - -r sonatype:snapshots \ - -o /usr/local/bin/metals -f -``` -]], - default_config = { - root_dir = [[util.root_pattern("build.sbt", "build.sc", "build.gradle", "pom.xml")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mint.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mint.lua deleted file mode 100644 index 7fde1c4..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mint.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'mint', 'ls' }, - filetypes = { 'mint' }, - root_dir = function(fname) - return util.root_pattern 'mint.json'(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://www.mint-lang.com - -Install Mint using the [instructions](https://www.mint-lang.com/install). -The language server is included since version 0.12.0. -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mm0_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mm0_ls.lua deleted file mode 100644 index 513bbeb..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/mm0_ls.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'mm0-rs', 'server' }, - root_dir = util.find_git_ancestor, - filetypes = { 'metamath-zero' }, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/digama0/mm0 - -Language Server for the metamath-zero theorem prover. - -Requires [mm0-rs](https://github.com/digama0/mm0/tree/master/mm0-rs) to be installed -and available on the `PATH`. - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nickel_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nickel_ls.lua deleted file mode 100644 index 3a9387e..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nickel_ls.lua +++ /dev/null @@ -1,37 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'nls' }, - filetypes = { 'ncl', 'nickel' }, - root_dir = util.find_git_ancestor, - }, - - docs = { - description = [[ -Nickel Language Server - -https://github.com/tweag/nickel - -`nls` can be installed with nix, or cargo, from the Nickel repository. -```sh -git clone https://github.com/tweag/nickel.git -``` - -Nix: -```sh -cd nickel -nix-env -f . -i -``` - -cargo: -```sh -cd nickel/lsp/nls -cargo install --path . -``` - -In order to have lspconfig detect Nickel filetypes (a prequisite for autostarting a server), -install the [Nickel vim plugin](https://github.com/nickel-lang/vim-nickel). - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nimls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nimls.lua deleted file mode 100644 index f10b002..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/nimls.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'nimlsp' }, - filetypes = { 'nim' }, - root_dir = function(fname) - return util.root_pattern '*.nimble'(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/PMunch/nimlsp -`nimlsp` can be installed via the `nimble` package manager: -```sh -nimble install nimlsp -``` - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamlls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamlls.lua deleted file mode 100644 index fcc25db..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamlls.lua +++ /dev/null @@ -1,28 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'ocaml-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end -return { - default_config = { - cmd = cmd, - filetypes = { 'ocaml', 'reason' }, - root_dir = util.root_pattern('*.opam', 'esy.json', 'package.json'), - }, - docs = { - description = [[ -https://github.com/ocaml-lsp/ocaml-language-server - -`ocaml-language-server` can be installed via `npm` -```sh -npm install -g ocaml-language-server -``` - ]], - default_config = { - root_dir = [[root_pattern("*.opam", "esy.json", "package.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamllsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamllsp.lua deleted file mode 100644 index 1528471..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ocamllsp.lua +++ /dev/null @@ -1,38 +0,0 @@ -local util = require 'lspconfig.util' - -local language_id_of = { - menhir = 'ocaml.menhir', - ocaml = 'ocaml', - ocamlinterface = 'ocaml.interface', - ocamllex = 'ocaml.ocamllex', - reason = 'reason', -} - -local get_language_id = function(_, ftype) - return language_id_of[ftype] -end - -return { - default_config = { - cmd = { 'ocamllsp' }, - filetypes = { 'ocaml', 'ocaml.menhir', 'ocaml.interface', 'ocaml.ocamllex', 'reason' }, - root_dir = util.root_pattern('*.opam', 'esy.json', 'package.json', '.git'), - get_language_id = get_language_id, - }, - docs = { - description = [[ -https://github.com/ocaml/ocaml-lsp - -`ocaml-lsp` can be installed as described in [installation guide](https://github.com/ocaml/ocaml-lsp#installation). - -To install the lsp server in a particular opam switch: -```sh -opam pin add ocaml-lsp-server https://github.com/ocaml/ocaml-lsp.git -opam install ocaml-lsp-server -``` - ]], - default_config = { - root_dir = [[root_pattern("*.opam", "esy.json", "package.json", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ols.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ols.lua deleted file mode 100644 index 65dd085..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/ols.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'ols' }, - filetypes = { 'odin' }, - root_dir = util.root_pattern('ols.json', '.git'), - single_file_support = true, - }, - docs = { - description = [[ - https://github.com/DanielGavin/ols - - `Odin Language Server`. - ]], - default_config = { - root_dir = [[util.root_pattern("ols.json", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/omnisharp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/omnisharp.lua deleted file mode 100644 index b51d898..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/omnisharp.lua +++ /dev/null @@ -1,52 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - filetypes = { 'cs', 'vb' }, - root_dir = function(fname) - return util.root_pattern '*.sln'(fname) or util.root_pattern '*.csproj'(fname) - end, - on_new_config = function(new_config, new_root_dir) - if new_root_dir then - table.insert(new_config.cmd, '-s') - table.insert(new_config.cmd, new_root_dir) - end - end, - init_options = {}, - }, - -- on_new_config = function(new_config) end; - -- on_attach = function(client, bufnr) end; - docs = { - description = [[ -https://github.com/omnisharp/omnisharp-roslyn -OmniSharp server based on Roslyn workspaces - -`omnisharp-roslyn` can be installed by downloading and extracting a release from [here](https://github.com/OmniSharp/omnisharp-roslyn/releases). -Omnisharp can also be built from source by following the instructions [here](https://github.com/omnisharp/omnisharp-roslyn#downloading-omnisharp). - -Omnisharp requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. - -**By default, omnisharp-roslyn doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary. - -```lua -local pid = vim.fn.getpid() --- On linux/darwin if using a release build, otherwise under scripts/OmniSharp(.Core)(.cmd) -local omnisharp_bin = "/path/to/omnisharp-repo/run" --- on Windows --- local omnisharp_bin = "/path/to/omnisharp/OmniSharp.exe" -require'lspconfig'.omnisharp.setup{ - cmd = { omnisharp_bin, "--languageserver" , "--hostPID", tostring(pid) }; - ... -} -``` - -Note, if you download the executable for darwin you will need to strip the quarantine label to run: -```bash -find /path/to/omnisharp-osx | xargs xattr -r -d com.apple.quarantine -``` -]], - default_config = { - root_dir = [[root_pattern(".sln") or root_pattern(".csproj")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/opencl_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/opencl_ls.lua deleted file mode 100644 index dc88d24..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/opencl_ls.lua +++ /dev/null @@ -1,21 +0,0 @@ -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")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/openscad_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/openscad_ls.lua deleted file mode 100644 index e5ca9ca..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/openscad_ls.lua +++ /dev/null @@ -1,32 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'openscad-language-server' }, - filetypes = { 'openscad' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [=[ -https://github.com/dzhu/openscad-language-server - -A Language Server Protocol server for OpenSCAD - -You can build and install `openscad-language-server` binary with `cargo`: -```sh -cargo install openscad-language-server -``` - -Vim does not have built-in syntax for the `openscad` filetype currently. - -This can be added via an autocmd: - -```lua -vim.cmd [[ autocmd BufRead,BufNewFile *.scad set filetype=openscad ]] -``` - -or by installing a filetype plugin such as https://github.com/sirtaj/vim-openscad -]=], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pasls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pasls.lua deleted file mode 100644 index 5758c82..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pasls.lua +++ /dev/null @@ -1,28 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'pasls' }, - filetypes = { 'pascal' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/genericptr/pascal-language-server - -An LSP server implementation for Pascal variants that are supported by Free Pascal, including Object Pascal. It uses CodeTools from Lazarus as backend. - -First set `cmd` to the Pascal lsp binary. - -Customization options are passed to pasls as environment variables for example in your `.bashrc`: -```bash -export FPCDIR='/usr/lib/fpc/src' # FPC source directory (This is the only required option for the server to work). -export PP='/usr/lib/fpc/3.2.2/ppcx64' # Path to the Free Pascal compiler executable. -export LAZARUSDIR='/usr/lib/lazarus' # Path to the Lazarus sources. -export FPCTARGET='' # Target operating system for cross compiling. -export FPCTARGETCPU='x86_64' # Target CPU for cross compiling. -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlls.lua deleted file mode 100644 index 5d241a5..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlls.lua +++ /dev/null @@ -1,39 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { - 'perl', - '-MPerl::LanguageServer', - '-e', - 'Perl::LanguageServer::run', - '--', - '--port 13603', - '--nostdio 0', - '--version 2.1.0', - }, - settings = { - perl = { - perlCmd = 'perl', - perlInc = ' ', - fileFilter = { '.pm', '.pl' }, - ignoreDirs = '.git', - }, - }, - filetypes = { 'perl' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/richterger/Perl-LanguageServer/tree/master/clients/vscode/perl - -`Perl-LanguageServer`, a language server for Perl. - -To use the language server, ensure that you have Perl::LanguageServer installed and perl command is on your path. -]], - default_config = { - root_dir = "vim's starting directory", - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlnavigator.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlnavigator.lua deleted file mode 100644 index 7ba3895..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlnavigator.lua +++ /dev/null @@ -1,39 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = {}, - filetypes = { 'perl' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/bscan/PerlNavigator - -A Perl language server - -**By default, perlnavigator doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. -You have to install the language server manually. - -Clone the PerlNavigator repo, install based on the [instructions](https://github.com/bscan/PerlNavigator#installation-for-other-editors), -and point `cmd` to `server.js` inside the `server/out` directory: - -```lua -cmd = {'node', '/server/out/server.js', '--stdio'} -``` - -At minimum, you will need `perl` in your path. If you want to use a non-standard `perl` you will need to set your configuration like so: -```lua -settings = { - perlnavigator = { - perlPath = '/some/odd/location/my-perl' - } -} -``` - -The `contributes.configuration.properties` section of `perlnavigator`'s `package.json` has all available configuration settings. All -settings have a reasonable default, but, at minimum, you may want to point `perlnavigator` at your `perltidy` and `perlcritic` configurations. -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlpls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlpls.lua deleted file mode 100644 index 3326028..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/perlpls.lua +++ /dev/null @@ -1,29 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'pls' }, - settings = { - perl = { - perlcritic = { enabled = false }, - syntax = { enabled = true }, - }, - }, - filetypes = { 'perl' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/FractalBoy/perl-language-server -https://metacpan.org/pod/PLS - -`PLS`, another language server for Perl. - -To use the language server, ensure that you have PLS installed and that it is in your path -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/phpactor.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/phpactor.lua deleted file mode 100644 index 5a1f0d1..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/phpactor.lua +++ /dev/null @@ -1,26 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'phpactor', 'language-server' }, - filetypes = { 'php' }, - root_dir = function(pattern) - local cwd = vim.loop.cwd() - local root = util.root_pattern('composer.json', '.git')(pattern) - - -- prefer cwd if root is a descendant - return util.path.is_descendant(cwd, root) and cwd or root - end, - }, - docs = { - description = [[ -https://github.com/phpactor/phpactor - -Installation: https://phpactor.readthedocs.io/en/master/usage/standalone.html#global-installation -]], - default_config = { - cmd = { 'phpactor', 'language-server' }, - root_dir = [[root_pattern("composer.json", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/please.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/please.lua deleted file mode 100644 index 085d1e7..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/please.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'plz', 'tool', 'lps' }, - filetypes = { 'bzl' }, - root_dir = util.root_pattern '.plzconfig', - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/thought-machine/please - -High-performance extensible build system for reproducible multi-language builds. - -The `plz` binary will automatically install the LSP for you on first run -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/powershell_es.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/powershell_es.lua deleted file mode 100644 index ac723f4..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/powershell_es.lua +++ /dev/null @@ -1,72 +0,0 @@ -local util = require 'lspconfig.util' - -local temp_path = vim.fn.stdpath 'cache' - -local function make_cmd(new_config) - if new_config.bundle_path ~= nil then - local command_fmt = - [[%s/PowerShellEditorServices/Start-EditorServices.ps1 -BundledModulesPath %s -LogPath %s/powershell_es.log -SessionDetailsPath %s/powershell_es.session.json -FeatureFlags @() -AdditionalModules @() -HostName nvim -HostProfileId 0 -HostVersion 1.0.0 -Stdio -LogLevel Normal]] - local command = command_fmt:format(new_config.bundle_path, new_config.bundle_path, temp_path, temp_path) - return { new_config.shell, '-NoLogo', '-NoProfile', '-Command', command } - end -end - -return { - default_config = { - shell = 'pwsh', - on_new_config = function(new_config, _) - -- Don't overwrite cmd if already set - if not new_config.cmd then - new_config.cmd = make_cmd(new_config) - end - end, - - filetypes = { 'ps1' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/PowerShell/PowerShellEditorServices - -Language server for PowerShell. - -To install, download and extract PowerShellEditorServices.zip -from the [releases](https://github.com/PowerShell/PowerShellEditorServices/releases). -To configure the language server, set the property `bundle_path` to the root -of the extracted PowerShellEditorServices.zip. - -The default configuration doesn't set `cmd` unless `bundle_path` is specified. - -```lua -require'lspconfig'.powershell_es.setup{ - bundle_path = 'c:/w/PowerShellEditorServices', -} -``` - -By default the languageserver is started in `pwsh` (PowerShell Core). This can be changed by specifying `shell`. - -```lua -require'lspconfig'.powershell_es.setup{ - bundle_path = 'c:/w/PowerShellEditorServices', - shell = 'powershell.exe', -} -``` - -Note that the execution policy needs to be set to `Unrestricted` for the languageserver run under PowerShell - -If necessary, specific `cmd` can be defined instead of `bundle_path`. -See [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices#stdio) -to learn more. - -```lua -require'lspconfig'.powershell_es.setup{ - cmd = {'pwsh', '-NoLogo', '-NoProfile', '-Command', "c:/PSES/Start-EditorServices.ps1 ..."} -} -``` -]], - default_config = { - root_dir = 'git root or current directory', - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prismals.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prismals.lua deleted file mode 100644 index f330e25..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prismals.lua +++ /dev/null @@ -1,34 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'prisma-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'prisma' }, - settings = { - prisma = { - prismaFmtBinPath = '', - }, - }, - root_dir = util.root_pattern('.git', 'package.json'), - }, - docs = { - description = [[ -Language Server for the Prisma JavaScript and TypeScript ORM - -`@prisma/language-server` can be installed via npm -```sh -npm install -g @prisma/language-server -``` -]], - default_config = { - root_dir = [[root_pattern(".git", "package.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prosemd_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prosemd_lsp.lua deleted file mode 100644 index 048e4b4..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/prosemd_lsp.lua +++ /dev/null @@ -1,22 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'prosemd-lsp', '--stdio' }, - filetypes = { 'markdown' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/kitten/prosemd-lsp - -An experimental LSP for Markdown. - -Please see the manual installation instructions: https://github.com/kitten/prosemd-lsp#manual-installation -]], - default_config = { - root_dir = util.find_git_ancestor, - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/psalm.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/psalm.lua deleted file mode 100644 index 01f7581..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/psalm.lua +++ /dev/null @@ -1,29 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'psalm-language-server' - -if vim.fn.has 'win32' == 1 then - bin_name = bin_name .. '.bat' -end - -return { - default_config = { - cmd = { bin_name }, - filetypes = { 'php' }, - root_dir = util.root_pattern('psalm.xml', 'psalm.xml.dist'), - }, - docs = { - description = [[ -https://github.com/vimeo/psalm - -Can be installed with composer. -```sh -composer global require vimeo/psalm -``` -]], - default_config = { - cmd = { 'psalm-language-server' }, - root_dir = [[root_pattern("psalm.xml", "psalm.xml.dist")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/puppet.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/puppet.lua deleted file mode 100644 index 18a1532..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/puppet.lua +++ /dev/null @@ -1,38 +0,0 @@ -local util = require 'lspconfig.util' - -local root_files = { - 'manifests', - '.puppet-lint.rc', - 'hiera.yaml', - '.git', -} - -return { - default_config = { - cmd = { 'puppet-languageserver', '--stdio' }, - filetypes = { 'puppet' }, - root_dir = util.root_pattern(unpack(root_files)), - single_file_support = true, - }, - docs = { - description = [[ -LSP server for Puppet. - -Installation: - -- Clone the editor-services repository: - https://github.com/puppetlabs/puppet-editor-services - -- Navigate into that directory and run: `bundle install` - -- Install the 'puppet-lint' gem: `gem install puppet-lint` - -- Add that repository to $PATH. - -- Ensure you can run `puppet-languageserver` from outside the editor-services directory. -]], - default_config = { - root_dir = [[root_pattern("manifests", ".puppet-lint.rc", "hiera.yaml", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/purescriptls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/purescriptls.lua deleted file mode 100644 index 495133d..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/purescriptls.lua +++ /dev/null @@ -1,28 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'purescript-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'purescript' }, - root_dir = util.root_pattern('bower.json', 'psc-package.json', 'spago.dhall'), - }, - docs = { - description = [[ -https://github.com/nwolverson/purescript-language-server -`purescript-language-server` can be installed via `npm` -```sh -npm install -g purescript-language-server -``` -]], - default_config = { - root_dir = [[root_pattern("spago.dhall, 'psc-package.json', bower.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pylsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pylsp.lua deleted file mode 100644 index 7284fac..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pylsp.lua +++ /dev/null @@ -1,31 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'pylsp' }, - filetypes = { 'python' }, - root_dir = function(fname) - local root_files = { - 'pyproject.toml', - 'setup.py', - 'setup.cfg', - 'requirements.txt', - 'Pipfile', - } - return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/python-lsp/python-lsp-server - -A Python 3.6+ implementation of the Language Server Protocol. - -The language server can be installed via `pipx install 'python-lsp-server[all]'`. -Further instructions can be found in the [project's README](https://github.com/python-lsp/python-lsp-server). - -Note: This is a community fork of `pyls`. - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyre.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyre.lua deleted file mode 100644 index 5c2f8fb..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyre.lua +++ /dev/null @@ -1,22 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'pyre', 'persistent' }, - filetypes = { 'python' }, - root_dir = util.root_pattern '.pyre_configuration', - }, - docs = { - description = [[ -https://pyre-check.org/ - -`pyre` a static type checker for Python 3. - -`pyre` offers an extremely limited featureset. It currently only supports diagnostics, -which are triggered on save. - -Do not report issues for missing features in `pyre` to `lspconfig`. - -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyright.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyright.lua deleted file mode 100644 index a198477..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/pyright.lua +++ /dev/null @@ -1,56 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'pyright-langserver' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -local root_files = { - 'pyproject.toml', - 'setup.py', - 'setup.cfg', - 'requirements.txt', - 'Pipfile', - 'pyrightconfig.json', -} - -local function organize_imports() - local params = { - command = 'pyright.organizeimports', - arguments = { vim.uri_from_bufnr(0) }, - } - vim.lsp.buf.execute_command(params) -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'python' }, - root_dir = util.root_pattern(unpack(root_files)), - single_file_support = true, - settings = { - python = { - analysis = { - autoSearchPaths = true, - useLibraryCodeForTypes = true, - diagnosticMode = 'workspace', - }, - }, - }, - }, - commands = { - PyrightOrganizeImports = { - organize_imports, - description = 'Organize Imports', - }, - }, - docs = { - description = [[ -https://github.com/microsoft/pyright - -`pyright`, a static type checker and language server for python -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/quick_lint_js.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/quick_lint_js.lua deleted file mode 100644 index 29daa96..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/quick_lint_js.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'quick-lint-js', '--lsp-server' }, - filetypes = { 'javascript' }, - root_dir = util.root_pattern('package.json', 'jsconfig.json', '.git'), - single_file_support = true, - }, - docs = { - description = [[ -https://quick-lint-js.com/ - -quick-lint-js finds bugs in JavaScript programs. - -See installation [instructions](https://quick-lint-js.com/install/) -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/r_language_server.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/r_language_server.lua deleted file mode 100644 index 7e1e3f3..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/r_language_server.lua +++ /dev/null @@ -1,28 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'R', '--slave', '-e', 'languageserver::run()' }, - filetypes = { 'r', 'rmd' }, - root_dir = function(fname) - return util.find_git_ancestor(fname) or vim.loop.os_homedir() - end, - log_level = vim.lsp.protocol.MessageType.Warning, - }, - docs = { - description = [[ -[languageserver](https://github.com/REditorSupport/languageserver) is an -implementation of the Microsoft's Language Server Protocol for the R -language. - -It is released on CRAN and can be easily installed by - -```R -install.packages("languageserver") -``` -]], - default_config = { - root_dir = [[root_pattern(".git") or os_homedir]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/racket_langserver.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/racket_langserver.lua deleted file mode 100644 index 25bd0ab..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/racket_langserver.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'racket', '--lib', 'racket-langserver' }, - filetypes = { 'racket', 'scheme' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -[https://github.com/jeapostrophe/racket-langserver](https://github.com/jeapostrophe/racket-langserver) - -The Racket language server. This project seeks to use -[DrRacket](https://github.com/racket/drracket)'s public API to provide -functionality that mimics DrRacket's code tools as closely as possible. - -Install via `raco`: `raco pkg install racket-langserver` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/reason_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/reason_ls.lua deleted file mode 100644 index 45e7d0b..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/reason_ls.lua +++ /dev/null @@ -1,23 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'reason-language-server' }, - filetypes = { 'reason' }, - root_dir = util.root_pattern('bsconfig.json', '.git'), - }, - docs = { - description = [[ -Reason language server - -**By default, reason_ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. -You have to install the language server manually. - -You can install reason language server from [reason-language-server](https://github.com/jaredly/reason-language-server) repository. - -```lua -cmd = {''} -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/remark_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/remark_ls.lua deleted file mode 100644 index 4ef3717..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/remark_ls.lua +++ /dev/null @@ -1,50 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'remark-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'markdown' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/remarkjs/remark-language-server - -`remark-language-server` can be installed via `npm`: -```sh -npm install -g remark-language-server -``` - -`remark-language-server` uses the same -[configuration files](https://github.com/remarkjs/remark/tree/main/packages/remark-cli#example-config-files-json-yaml-js) -as `remark-cli`. - -This uses a plugin based system. Each plugin needs to be installed locally using `npm` or `yarn`. - -For example, given the following `.remarkrc.json`: - -```json -{ - "presets": [ - "remark-preset-lint-recommended" - ] -} -``` - -`remark-preset-lint-recommended` needs to be installed in the local project: - -```sh -npm install remark-preset-lint-recommended -``` - -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rescriptls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rescriptls.lua deleted file mode 100644 index 1c80ada..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rescriptls.lua +++ /dev/null @@ -1,42 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = {}, - filetypes = { 'rescript' }, - root_dir = util.root_pattern('bsconfig.json', '.git'), - settings = {}, - }, - docs = { - description = [[ -https://github.com/rescript-lang/rescript-vscode - -ReScript language server - -**By default, rescriptls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. -You have to install the language server manually. - -You can use the bundled language server inside the [vim-rescript](https://github.com/rescript-lang/vim-rescript) repo. - -Clone the vim-rescript repo and point `cmd` to `server.js` inside `server/out` directory: - -```lua -cmd = {'node', '/server/out/server.js', '--stdio'} - -``` - -If you have vim-rescript installed you can also use that installation. for example if you're using packer.nvim you can set cmd to something like this: - -```lua -cmd = { - 'node', - '/home/username/.local/share/nvim/site/pack/packer/start/vim-rescript/server/out/server.js', - '--stdio' -} -``` - -Another option is to use vscode extension [release](https://github.com/rescript-lang/rescript-vscode/releases). -Take a look at [here](https://github.com/rescript-lang/rescript-vscode#use-with-other-editors) for instructions. -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rls.lua deleted file mode 100644 index 363b81d..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rls.lua +++ /dev/null @@ -1,42 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'rls' }, - filetypes = { 'rust' }, - root_dir = util.root_pattern 'Cargo.toml', - }, - docs = { - description = [[ -https://github.com/rust-lang/rls - -rls, a language server for Rust - -See https://github.com/rust-lang/rls#setup to setup rls itself. -See https://github.com/rust-lang/rls#configuration for rls-specific settings. -All settings listed on the rls configuration section of the readme -must be set under settings.rust as follows: - -```lua -nvim_lsp.rls.setup { - settings = { - rust = { - unstable_features = true, - build_on_save = false, - all_features = true, - }, - }, -} -``` - -If you want to use rls for a particular build, eg nightly, set cmd as follows: - -```lua -cmd = {"rustup", "run", "nightly", "rls"} -``` - ]], - default_config = { - root_dir = [[root_pattern("Cargo.toml")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rnix.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rnix.lua deleted file mode 100644 index aa7f00e..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rnix.lua +++ /dev/null @@ -1,28 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'rnix-lsp' }, - filetypes = { 'nix' }, - root_dir = function(fname) - return util.find_git_ancestor(fname) or vim.loop.os_homedir() - end, - settings = {}, - init_options = {}, - }, - docs = { - description = [[ -https://github.com/nix-community/rnix-lsp - -A language server for Nix providing basic completion and formatting via nixpkgs-fmt. - -To install manually, run `cargo install rnix-lsp`. If you are using nix, rnix-lsp is in nixpkgs. - -This server accepts configuration via the `settings` key. - - ]], - default_config = { - root_dir = "vim's starting directory", - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/robotframework_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/robotframework_ls.lua deleted file mode 100644 index 7cb772b..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/robotframework_ls.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'robotframework_ls' }, - filetypes = { 'robot' }, - root_dir = function(fname) - return util.root_pattern('robotidy.toml', 'pyproject.toml')(fname) or util.find_git_ancestor(fname) - end, - }, - docs = { - description = [[ -https://github.com/robocorp/robotframework-lsp - -Language Server Protocol implementation for Robot Framework. -]], - default_config = { - root_dir = "util.root_pattern('robotidy.toml', 'pyproject.toml')(fname) or util.find_git_ancestor(fname)", - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rome.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rome.lua deleted file mode 100644 index 075d31a..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rome.lua +++ /dev/null @@ -1,42 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'rome' -local cmd = { bin_name, 'lsp' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, 'lsp' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { - 'javascript', - 'javascriptreact', - 'json', - 'typescript', - 'typescript.tsx', - 'typescriptreact', - }, - root_dir = function(fname) - return util.find_package_json_ancestor(fname) - or util.find_node_modules_ancestor(fname) - or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://rome.tools - -Language server for the Rome Frontend Toolchain. - -```sh -npm install [-g] rome -``` -]], - default_config = { - root_dir = [[root_pattern('package.json', 'node_modules', '.git')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rust_analyzer.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rust_analyzer.lua deleted file mode 100644 index 6331cf5..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/rust_analyzer.lua +++ /dev/null @@ -1,79 +0,0 @@ -local util = require 'lspconfig.util' - -local function reload_workspace(bufnr) - bufnr = util.validate_bufnr(bufnr) - vim.lsp.buf_request(bufnr, 'rust-analyzer/reloadWorkspace', nil, function(err) - if err then - error(tostring(err)) - end - vim.notify 'Cargo workspace reloaded' - end) -end - -return { - default_config = { - cmd = { 'rust-analyzer' }, - filetypes = { 'rust' }, - root_dir = function(fname) - local cargo_crate_dir = util.root_pattern 'Cargo.toml'(fname) - local cmd = { 'cargo', 'metadata', '--no-deps', '--format-version', '1' } - if cargo_crate_dir ~= nil then - cmd[#cmd + 1] = '--manifest-path' - cmd[#cmd + 1] = util.path.join(cargo_crate_dir, 'Cargo.toml') - end - local cargo_metadata = '' - local cargo_metadata_err = '' - local cm = vim.fn.jobstart(cmd, { - on_stdout = function(_, d, _) - cargo_metadata = table.concat(d, '\n') - end, - on_stderr = function(_, d, _) - cargo_metadata_err = table.concat(d, '\n') - end, - stdout_buffered = true, - stderr_buffered = true, - }) - if cm > 0 then - cm = vim.fn.jobwait({ cm })[1] - else - cm = -1 - end - local cargo_workspace_dir = nil - if cm == 0 then - cargo_workspace_dir = vim.fn.json_decode(cargo_metadata)['workspace_root'] - else - vim.notify( - string.format('[lspconfig] cmd (%q) failed:\n%s', table.concat(cmd, ' '), cargo_metadata_err), - vim.log.levels.WARN - ) - end - return cargo_workspace_dir - or cargo_crate_dir - or util.root_pattern 'rust-project.json'(fname) - or util.find_git_ancestor(fname) - end, - settings = { - ['rust-analyzer'] = {}, - }, - }, - commands = { - CargoReload = { - function() - reload_workspace(0) - end, - description = 'Reload current cargo workspace', - }, - }, - docs = { - description = [[ -https://github.com/rust-analyzer/rust-analyzer - -rust-analyzer (aka rls 2.0), a language server for Rust - -See [docs](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#settings) for extra settings. - ]], - default_config = { - root_dir = [[root_pattern("Cargo.toml", "rust-project.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/salt_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/salt_ls.lua deleted file mode 100644 index 65d1d32..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/salt_ls.lua +++ /dev/null @@ -1,24 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'salt_lsp_server' }, - filetypes = { 'sls' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - }, - docs = { - description = [[ -Language server for Salt configuration files. -https://github.com/dcermak/salt-lsp - -The language server can be installed with `pip`: -```sh -pip install salt-lsp -``` - ]], - default_config = { - root_dir = [[root_pattern('.git')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/scry.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/scry.lua deleted file mode 100644 index 8350a43..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/scry.lua +++ /dev/null @@ -1,22 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'scry' }, - filetypes = { 'crystal' }, - root_dir = function(fname) - return util.root_pattern 'shard.yml'(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/crystal-lang-tools/scry - -Crystal language server. -]], - default_config = { - root_dir = [[root_pattern('shard.yml', '.git')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/serve_d.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/serve_d.lua deleted file mode 100644 index 09d1b10..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/serve_d.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'serve-d' }, - filetypes = { 'd' }, - root_dir = util.root_pattern('dub.json', 'dub.sdl', '.git'), - }, - docs = { - description = [[ - https://github.com/Pure-D/serve-d - - `Microsoft language server protocol implementation for D using workspace-d.` - Download a binary from https://github.com/Pure-D/serve-d/releases and put it in your $PATH. - ]], - default_config = { - root_dir = [[util.root_pattern("dub.json", "dub.sdl", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sixtyfps.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sixtyfps.lua deleted file mode 100644 index da90fe3..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sixtyfps.lua +++ /dev/null @@ -1,28 +0,0 @@ -return { - default_config = { - cmd = { 'sixtyfps-lsp' }, - filetypes = { 'sixtyfps' }, - single_file_support = true, - }, - docs = { - description = [=[ -https://github.com/sixtyfpsui/sixtyfps -`SixtyFPS`'s language server - -You can build and install `sixtyfps-lsp` binary with `cargo`: -```sh -cargo install sixtyfps-lsp -``` - -Vim does not have built-in syntax for the `sixtyfps` filetype currently. - -This can be added via an autocmd: - -```lua -vim.cmd [[ autocmd BufRead,BufNewFile *.60 set filetype=sixtyfps ]] -``` - -or by installing a filetype plugin such as https://github.com/RustemB/sixtyfps-vim -]=], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/slint_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/slint_lsp.lua deleted file mode 100644 index e921cb6..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/slint_lsp.lua +++ /dev/null @@ -1,26 +0,0 @@ -return { - default_config = { - cmd = { 'slint-lsp' }, - filetypes = { 'slint' }, - single_file_support = true, - }, - docs = { - description = [=[ -https://github.com/slint-ui/slint -`Slint`'s language server - -You can build and install `slint-lsp` binary with `cargo`: -```sh -cargo install slint-lsp -``` - -Vim does not have built-in syntax for the `slint` filetype at this time. - -This can be added via an autocmd: - -```lua -vim.cmd [[ autocmd BufRead,BufNewFile *.slint set filetype=slint ]] -``` -]=], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solang.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solang.lua deleted file mode 100644 index be1d1ec..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solang.lua +++ /dev/null @@ -1,27 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'solang', '--language-server', '--target', 'ewasm' }, - filetypes = { 'solidity' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -A language server for Solidity - -See the [documentation](https://solang.readthedocs.io/en/latest/installing.html) for installation instructions. - -The language server only provides the following capabilities: -* Syntax highlighting -* Diagnostics -* Hover - -There is currently no support for completion, goto definition, references, or other functionality. - -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solargraph.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solargraph.lua deleted file mode 100644 index 4fba400..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solargraph.lua +++ /dev/null @@ -1,38 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'solargraph' -local cmd = { bin_name, 'stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, 'stdio' } -end - -return { - default_config = { - cmd = cmd, - settings = { - solargraph = { - diagnostics = true, - }, - }, - init_options = { formatting = true }, - filetypes = { 'ruby' }, - root_dir = util.root_pattern('Gemfile', '.git'), - }, - docs = { - description = [[ -https://solargraph.org/ - -solargraph, a language server for Ruby - -You can install solargraph via gem install. - -```sh -gem install --user-install solargraph -``` - ]], - default_config = { - root_dir = [[root_pattern("Gemfile", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solc.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solc.lua deleted file mode 100644 index 42e44fe..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solc.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'solc', '--lsp' }, - filetypes = { 'solidity' }, - root_dir = util.root_pattern '.git', - }, - docs = { - description = [[ -https://docs.soliditylang.org/en/latest/installing-solidity.html - -solc is the native language server for the Solidity language. -]], - default_config = { - root_dir = [[root_pattern(".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solidity_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solidity_ls.lua deleted file mode 100644 index 4d4c490..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solidity_ls.lua +++ /dev/null @@ -1,24 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'solidity-language-server' -if vim.fn.has 'win32' == 1 then - bin_name = bin_name .. '.cmd' -end - -return { - default_config = { - cmd = { bin_name, '--stdio' }, - filetypes = { 'solidity' }, - root_dir = util.root_pattern('.git', 'package.json'), - }, - docs = { - description = [[ -npm install -g solidity-language-server - -solidity-language-server is a language server for the solidity language ported from the vscode solidity extension -]], - default_config = { - root_dir = [[root_pattern(".git", "package.json")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sorbet.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sorbet.lua deleted file mode 100644 index 86d3443..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sorbet.lua +++ /dev/null @@ -1,26 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'srb', 'tc', '--lsp' }, - filetypes = { 'ruby' }, - root_dir = util.root_pattern('Gemfile', '.git'), - }, - docs = { - description = [[ -https://sorbet.org - -Sorbet is a fast, powerful type checker designed for Ruby. - -You can install Sorbet via gem install. You might also be interested in how to set -Sorbet up for new projects: https://sorbet.org/docs/adopting. - -```sh -gem install sorbet -``` - ]], - default_config = { - root_dir = [[root_pattern("Gemfile", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcekit.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcekit.lua deleted file mode 100644 index d90b30a..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcekit.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'sourcekit-lsp' }, - filetypes = { 'swift', 'c', 'cpp', 'objective-c', 'objective-cpp' }, - root_dir = util.root_pattern('Package.swift', '.git'), - }, - docs = { - description = [[ -https://github.com/apple/sourcekit-lsp - -Language server for Swift and C/C++/Objective-C. - ]], - default_config = { - root_dir = [[root_pattern("Package.swift", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcery.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcery.lua deleted file mode 100644 index 9100c5a..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sourcery.lua +++ /dev/null @@ -1,55 +0,0 @@ -local util = require 'lspconfig/util' - -local root_files = { - 'pyproject.toml', - 'setup.py', - 'setup.cfg', - 'requirements.txt', - 'Pipfile', - 'pyrightconfig.json', -} - -return { - default_config = { - cmd = { 'sourcery', 'lsp' }, - filetypes = { 'python' }, - init_options = { - editor_version = 'vim', - extension_version = 'vim.lsp', - token = nil, - }, - root_dir = function(fname) - return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - on_new_config = function(new_config, _) - if not new_config.init_options.token then - local notify = vim.notify_once or vim.notify - notify('[lspconfig] The authentication token must be provided in config.init_options', vim.log.levels.ERROR) - end - end, - docs = { - description = [[ -https://github.com/sourcery-ai/sourcery - -Refactor Python instantly using the power of AI. - -It requires the initializationOptions param to be populated as shown below and will respond with the list of ServerCapabilities that it supports. - -init_options = { - --- The Sourcery token for authenticating the user. - --- This is retrieved from the Sourcery website and must be - --- provided by each user. The extension must provide a - --- configuration option for the user to provide this value. - token = - - --- The extension's name and version as defined by the extension. - extension_version = 'vim.lsp' - - --- The editor's name and version as defined by the editor. - editor_version = 'vim' -} -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/spectral.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/spectral.lua deleted file mode 100644 index e21b6cb..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/spectral.lua +++ /dev/null @@ -1,29 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'spectral-language-server' - -return { - default_config = { - cmd = { bin_name, '--stdio' }, - filetypes = { 'yaml', 'json', 'yml' }, - root_dir = util.root_pattern('.spectral.yaml', '.spectral.yml', '.spectral.json', '.spectral.js'), - single_file_support = true, - settings = { - enable = true, - run = 'onType', - validateLanguages = { 'yaml', 'json', 'yml' }, - }, - }, - docs = { - description = [[ -https://github.com/luizcorreia/spectral-language-server - `A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3.` - -`spectral-language-server` can be installed via `npm`: -```sh -npm i -g spectral-language-server -``` -See [vscode-spectral](https://github.com/stoplightio/vscode-spectral#extension-settings) for configuration options. -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqlls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqlls.lua deleted file mode 100644 index 434a7ce..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqlls.lua +++ /dev/null @@ -1,18 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'sql-language-server', 'up', '--method', 'stdio' }, - filetypes = { 'sql', 'mysql' }, - root_dir = util.root_pattern '.sqllsrc.json', - settings = {}, - }, - docs = { - description = [[ -https://github.com/joe-re/sql-language-server - -This LSP can be installed via `npm`. Find further instructions on manual installation of the sql-language-server at [joe-re/sql-language-server](https://github.com/joe-re/sql-language-server). -
- ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqls.lua deleted file mode 100644 index 2680253..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sqls.lua +++ /dev/null @@ -1,25 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'sqls' }, - filetypes = { 'sql', 'mysql' }, - root_dir = util.root_pattern 'config.yml', - single_file_support = true, - settings = {}, - }, - docs = { - description = [[ -https://github.com/lighttiger2505/sqls - -```lua -require'lspconfig'.sqls.setup{ - cmd = {"path/to/command", "-config", "path/to/config.yml"}; - ... -} -``` -Sqls can be installed via `go get github.com/lighttiger2505/sqls`. Instructions for compiling Sqls from the source can be found at [lighttiger2505/sqls](https://github.com/lighttiger2505/sqls). - - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/stylelint_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/stylelint_lsp.lua deleted file mode 100644 index d471d26..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/stylelint_lsp.lua +++ /dev/null @@ -1,54 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'stylelint-lsp' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { - 'css', - 'less', - 'scss', - 'sugarss', - 'vue', - 'wxss', - 'javascript', - 'javascriptreact', - 'typescript', - 'typescriptreact', - }, - root_dir = util.root_pattern('.stylelintrc', 'package.json'), - settings = {}, - }, - docs = { - description = [[ -https://github.com/bmatcuk/stylelint-lsp - -`stylelint-lsp` can be installed via `npm`: - -```sh -npm i -g stylelint-lsp -``` - -Can be configured by passing a `settings.stylelintplus` object to `stylelint_lsp.setup`: - -```lua -require'lspconfig'.stylelint_lsp.setup{ - settings = { - stylelintplus = { - -- see available options in stylelint-lsp documentation - } - } -} -``` -]], - default_config = { - root_dir = [[ root_pattern('.stylelintrc', 'package.json') ]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sumneko_lua.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sumneko_lua.lua deleted file mode 100644 index 6338095..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/sumneko_lua.lua +++ /dev/null @@ -1,63 +0,0 @@ -local util = require 'lspconfig.util' - -local root_files = { - '.luarc.json', - '.luacheckrc', - '.stylua.toml', - 'selene.toml', -} -return { - default_config = { - cmd = { 'lua-language-server' }, - filetypes = { 'lua' }, - root_dir = function(fname) - return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - log_level = vim.lsp.protocol.MessageType.Warning, - settings = { Lua = { telemetry = { enable = false } } }, - }, - docs = { - description = [[ -https://github.com/sumneko/lua-language-server - -Lua language server. - -`lua-language-server` can be installed by following the instructions [here](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run). The default `cmd` assumes that the `lua-language-server` binary can be found in `$PATH`. - -```lua -local runtime_path = vim.split(package.path, ';') -table.insert(runtime_path, "lua/?.lua") -table.insert(runtime_path, "lua/?/init.lua") - -require'lspconfig'.sumneko_lua.setup { - settings = { - Lua = { - runtime = { - -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim) - version = 'LuaJIT', - -- Setup your lua path - path = runtime_path, - }, - diagnostics = { - -- Get the language server to recognize the `vim` global - globals = {'vim'}, - }, - workspace = { - -- Make the server aware of Neovim runtime files - library = vim.api.nvim_get_runtime_file("", true), - }, - -- Do not send telemetry data containing a randomized but unique identifier - telemetry = { - enable = false, - }, - }, - }, -} -``` -]], - default_config = { - root_dir = [[root_pattern(".luarc.json", ".luacheckrc", ".stylua.toml", "selene.toml", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svelte.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svelte.lua deleted file mode 100644 index 14db192..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svelte.lua +++ /dev/null @@ -1,29 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'svelteserver' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'svelte' }, - root_dir = util.root_pattern('package.json', '.git'), - }, - docs = { - description = [[ -https://github.com/sveltejs/language-tools/tree/master/packages/language-server - -`svelte-language-server` can be installed via `npm`: -```sh -npm install -g svelte-language-server -``` -]], - default_config = { - root_dir = [[root_pattern("package.json", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svls.lua deleted file mode 100644 index ff4d810..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/svls.lua +++ /dev/null @@ -1,24 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'svls' }, - filetypes = { 'verilog', 'systemverilog' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -https://github.com/dalance/svls - -Language server for verilog and SystemVerilog - -`svls` can be installed via `cargo`: - ```sh - cargo install svls - ``` - ]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tailwindcss.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tailwindcss.lua deleted file mode 100644 index 5a5abc0..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tailwindcss.lua +++ /dev/null @@ -1,126 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'tailwindcss-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - -- filetypes copied and adjusted from tailwindcss-intellisense - filetypes = { - -- html - 'aspnetcorerazor', - 'astro', - 'astro-markdown', - 'blade', - 'django-html', - 'htmldjango', - 'edge', - 'eelixir', -- vim ft - 'ejs', - 'erb', - 'eruby', -- vim ft - 'gohtml', - 'haml', - 'handlebars', - 'hbs', - 'html', - -- 'HTML (Eex)', - -- 'HTML (EEx)', - 'html-eex', - 'heex', - 'jade', - 'leaf', - 'liquid', - 'markdown', - 'mdx', - 'mustache', - 'njk', - 'nunjucks', - 'php', - 'razor', - 'slim', - 'twig', - -- css - 'css', - 'less', - 'postcss', - 'sass', - 'scss', - 'stylus', - 'sugarss', - -- js - 'javascript', - 'javascriptreact', - 'reason', - 'rescript', - 'typescript', - 'typescriptreact', - -- mixed - 'vue', - 'svelte', - }, - init_options = { - userLanguages = { - eelixir = 'html-eex', - eruby = 'erb', - }, - }, - settings = { - tailwindCSS = { - validate = true, - lint = { - cssConflict = 'warning', - invalidApply = 'error', - invalidScreen = 'error', - invalidVariant = 'error', - invalidConfigPath = 'error', - invalidTailwindDirective = 'error', - recommendedVariantOrder = 'warning', - }, - classAttributes = { - 'class', - 'className', - 'classList', - 'ngClass', - }, - }, - }, - on_new_config = function(new_config) - if not new_config.settings then - new_config.settings = {} - end - if not new_config.settings.editor then - new_config.settings.editor = {} - end - if not new_config.settings.editor.tabSize then - -- set tab size for hover - new_config.settings.editor.tabSize = vim.lsp.util.get_effective_tabstop() - end - end, - root_dir = function(fname) - return util.root_pattern('tailwind.config.js', 'tailwind.config.ts')(fname) - or util.root_pattern('postcss.config.js', 'postcss.config.ts')(fname) - or util.find_package_json_ancestor(fname) - or util.find_node_modules_ancestor(fname) - or util.find_git_ancestor(fname) - end, - }, - docs = { - description = [[ -https://github.com/tailwindlabs/tailwindcss-intellisense - -Tailwind CSS Language Server can be installed via npm: -```sh -npm install -g @tailwindcss/language-server -``` -]], - default_config = { - root_dir = [[root_pattern('tailwind.config.js', 'tailwind.config.ts', 'postcss.config.js', 'postcss.config.ts', 'package.json', 'node_modules', '.git')]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/taplo.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/taplo.lua deleted file mode 100644 index 320ced9..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/taplo.lua +++ /dev/null @@ -1,27 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'taplo', 'lsp', 'stdio' }, - filetypes = { 'toml' }, - root_dir = function(fname) - return util.root_pattern '*.toml'(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = [[ -https://taplo.tamasfe.dev/lsp/ - -Language server for Taplo, a TOML toolkit. - -`taplo-cli` can be installed via `cargo`: -```sh -cargo install --locked taplo-cli -``` - ]], - default_config = { - root_dir = [[root_pattern("*.toml", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/teal_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/teal_ls.lua deleted file mode 100644 index b554add..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/teal_ls.lua +++ /dev/null @@ -1,29 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { - 'teal-language-server', - -- use this to enable logging in /tmp/teal-language-server.log - -- "logging=on", - }, - filetypes = { - 'teal', - -- "lua", -- Also works for lua, but you may get type errors that cannot be resolved within lua itself - }, - root_dir = util.root_pattern('tlconfig.lua', '.git'), - }, - docs = { - description = [[ -https://github.com/teal-language/teal-language-server - -Install with: -``` -luarocks install --dev teal-language-server -``` -]], - default_config = { - root_dir = [[root_pattern("tlconfig.lua", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraform_lsp.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraform_lsp.lua deleted file mode 100644 index 48a6fc5..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraform_lsp.lua +++ /dev/null @@ -1,43 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'terraform-lsp' }, - filetypes = { 'terraform', 'hcl' }, - root_dir = util.root_pattern('.terraform', '.git'), - }, - docs = { - description = [[ -https://github.com/juliosueiras/terraform-lsp - -Terraform language server -Download a released binary from -https://github.com/juliosueiras/terraform-lsp/releases. - -From https://github.com/hashicorp/terraform-ls#terraform-ls-vs-terraform-lsp: - -Both HashiCorp and the maintainer of terraform-lsp expressed interest in -collaborating on a language server and are working towards a _long-term_ -goal of a single stable and feature-complete implementation. - -For the time being both projects continue to exist, giving users the -choice: - -- `terraform-ls` providing - - overall stability (by relying only on public APIs) - - compatibility with any provider and any Terraform >=0.12.0 currently - less features - - due to project being younger and relying on public APIs which may - not offer the same functionality yet - -- `terraform-lsp` providing - - currently more features - - compatibility with a single particular Terraform (0.12.20 at time of writing) - - configs designed for other 0.12 versions may work, but interpretation may be inaccurate - - less stability (due to reliance on Terraform's own internal packages) -]], - default_config = { - root_dir = [[root_pattern(".terraform", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraformls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraformls.lua deleted file mode 100644 index 3eb4a1c..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/terraformls.lua +++ /dev/null @@ -1,42 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'terraform-ls', 'serve' }, - filetypes = { 'terraform' }, - root_dir = util.root_pattern('.terraform', '.git'), - }, - docs = { - description = [[ -https://github.com/hashicorp/terraform-ls - -Terraform language server -Download a released binary from https://github.com/hashicorp/terraform-ls/releases. - -From https://github.com/hashicorp/terraform-ls#terraform-ls-vs-terraform-lsp: - -Both HashiCorp and the maintainer of terraform-lsp expressed interest in -collaborating on a language server and are working towards a _long-term_ -goal of a single stable and feature-complete implementation. - -For the time being both projects continue to exist, giving users the -choice: - -- `terraform-ls` providing - - overall stability (by relying only on public APIs) - - compatibility with any provider and any Terraform >=0.12.0 currently - less features - - due to project being younger and relying on public APIs which may - not offer the same functionality yet - -- `terraform-lsp` providing - - currently more features - - compatibility with a single particular Terraform (0.12.20 at time of writing) - - configs designed for other 0.12 versions may work, but interpretation may be inaccurate - - less stability (due to reliance on Terraform's own internal packages) -]], - default_config = { - root_dir = [[root_pattern(".terraform", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/texlab.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/texlab.lua deleted file mode 100644 index 88bfa20..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/texlab.lua +++ /dev/null @@ -1,126 +0,0 @@ -local util = require 'lspconfig.util' - -local texlab_build_status = vim.tbl_add_reverse_lookup { - Success = 0, - Error = 1, - Failure = 2, - Cancelled = 3, -} - -local texlab_forward_status = vim.tbl_add_reverse_lookup { - Success = 0, - Error = 1, - Failure = 2, - Unconfigured = 3, -} - -local function buf_build(bufnr) - bufnr = util.validate_bufnr(bufnr) - local texlab_client = util.get_active_client_by_name(bufnr, 'texlab') - local params = { - textDocument = { uri = vim.uri_from_bufnr(bufnr) }, - } - if texlab_client then - texlab_client.request('textDocument/build', params, function(err, result) - if err then - error(tostring(err)) - end - print('Build ' .. texlab_build_status[result.status]) - end, bufnr) - else - print 'method textDocument/build is not supported by any servers active on the current buffer' - end -end - -local function buf_search(bufnr) - bufnr = util.validate_bufnr(bufnr) - local texlab_client = util.get_active_client_by_name(bufnr, 'texlab') - local params = { - textDocument = { uri = vim.uri_from_bufnr(bufnr) }, - position = { line = vim.fn.line '.' - 1, character = vim.fn.col '.' }, - } - if texlab_client then - texlab_client.request('textDocument/forwardSearch', params, function(err, result) - if err then - error(tostring(err)) - end - print('Search ' .. texlab_forward_status[result.status]) - end, bufnr) - else - print 'method textDocument/forwardSearch is not supported by any servers active on the current buffer' - end -end - --- bufnr isn't actually required here, but we need a valid buffer in order to --- be able to find the client for buf_request. --- TODO find a client by looking through buffers for a valid client? --- local function build_cancel_all(bufnr) --- bufnr = util.validate_bufnr(bufnr) --- local params = { token = "texlab-build-*" } --- lsp.buf_request(bufnr, 'window/progress/cancel', params, function(err, method, result, client_id) --- if err then error(tostring(err)) end --- print("Cancel result", vim.inspect(result)) --- end) --- end - -return { - default_config = { - cmd = { 'texlab' }, - filetypes = { 'tex', 'bib' }, - root_dir = function(fname) - return util.root_pattern '.latexmkrc'(fname) or util.find_git_ancestor(fname) - end, - single_file_support = true, - settings = { - texlab = { - rootDirectory = nil, - build = { - executable = 'latexmk', - args = { '-pdf', '-interaction=nonstopmode', '-synctex=1', '%f' }, - onSave = false, - forwardSearchAfter = false, - }, - auxDirectory = '.', - forwardSearch = { - executable = nil, - args = {}, - }, - chktex = { - onOpenAndSave = false, - onEdit = false, - }, - diagnosticsDelay = 300, - latexFormatter = 'latexindent', - latexindent = { - ['local'] = nil, -- local is a reserved keyword - modifyLineBreaks = false, - }, - bibtexFormatter = 'texlab', - formatterLineLength = 80, - }, - }, - }, - commands = { - TexlabBuild = { - function() - buf_build(0) - end, - description = 'Build the current buffer', - }, - TexlabForward = { - function() - buf_search(0) - end, - description = 'Forward search from current position', - }, - }, - docs = { - description = [[ -https://github.com/latex-lsp/texlab - -A completion engine built from scratch for (La)TeX. - -See https://github.com/latex-lsp/texlab/blob/master/docs/options.md for configuration options. -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tflint.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tflint.lua deleted file mode 100644 index de2a1d8..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tflint.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'tflint', '--langserver' }, - filetypes = { 'terraform' }, - root_dir = util.root_pattern('.terraform', '.git', '.tflint.hcl'), - }, - docs = { - description = [[ -https://github.com/terraform-linters/tflint - -A pluggable Terraform linter that can act as lsp server. -Installation instructions can be found in https://github.com/terraform-linters/tflint#installation. -]], - default_config = { - root_dir = [[root_pattern(".terraform", ".git", ".tflint.hcl")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/theme_check.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/theme_check.lua deleted file mode 100644 index 94d6774..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/theme_check.lua +++ /dev/null @@ -1,31 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'theme-check-language-server' - -return { - default_config = { - cmd = { bin_name, '--stdio' }, - filetypes = { 'liquid' }, - root_dir = util.root_pattern '.theme-check.yml', - settings = {}, - }, - docs = { - description = [[ -https://github.com/Shopify/shopify-cli - -`theme-check-language-server` is bundled with `shopify-cli` or it can also be installed via - -https://github.com/Shopify/theme-check#installation - -**NOTE:** -If installed via Homebrew, `cmd` must be set to 'theme-check-liquid-server' - -```lua -require lspconfig.theme_check.setup { - cmd = { 'theme-check-liquid-server' } -} -``` - -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tsserver.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tsserver.lua deleted file mode 100644 index 0f916fe..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/tsserver.lua +++ /dev/null @@ -1,60 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'typescript-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - init_options = { hostInfo = 'neovim' }, - cmd = cmd, - filetypes = { - 'javascript', - 'javascriptreact', - 'javascript.jsx', - 'typescript', - 'typescriptreact', - 'typescript.tsx', - }, - root_dir = function(fname) - return util.root_pattern 'tsconfig.json'(fname) - or util.root_pattern('package.json', 'jsconfig.json', '.git')(fname) - end, - }, - docs = { - description = [[ -https://github.com/theia-ide/typescript-language-server - -`typescript-language-server` depends on `typescript`. Both packages can be installed via `npm`: -```sh -npm install -g typescript typescript-language-server -``` - -To configure type language server, add a -[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or -[`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to the root of your -project. - -Here's an example that disables type checking in JavaScript files. - -```json -{ - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "checkJs": false - }, - "exclude": [ - "node_modules" - ] -} -``` -]], - default_config = { - root_dir = [[root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/typeprof.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/typeprof.lua deleted file mode 100644 index ab9dc8e..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/typeprof.lua +++ /dev/null @@ -1,19 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'typeprof', '--lsp', '--stdio' }, - filetypes = { 'ruby', 'eruby' }, - root_dir = util.root_pattern('Gemfile', '.git'), - }, - docs = { - description = [[ -https://github.com/ruby/typeprof - -`typeprof` is the built-in analysis and LSP tool for Ruby 3.1+. - ]], - default_config = { - root_dir = [[root_pattern("Gemfile", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vala_ls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vala_ls.lua deleted file mode 100644 index 842c561..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vala_ls.lua +++ /dev/null @@ -1,40 +0,0 @@ -local util = require 'lspconfig.util' - -local meson_matcher = function(path) - local pattern = 'meson.build' - local f = vim.fn.glob(util.path.join(path, pattern)) - if f == '' then - return nil - end - for line in io.lines(f) do - -- skip meson comments - if not line:match '^%s*#.*' then - local str = line:gsub('%s+', '') - if str ~= '' then - if str:match '^project%(' then - return path - else - break - end - end - end - end -end - -return { - default_config = { - cmd = { 'vala-language-server' }, - filetypes = { 'vala', 'genie' }, - root_dir = function(fname) - local root = util.search_ancestors(fname, meson_matcher) - return root or util.find_git_ancestor(fname) - end, - single_file_support = true, - }, - docs = { - description = 'https://github.com/Prince781/vala-language-server', - default_config = { - root_dir = [[root_pattern("meson.build", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vdmj.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vdmj.lua deleted file mode 100644 index 9699b93..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vdmj.lua +++ /dev/null @@ -1,128 +0,0 @@ -local util = require 'lspconfig.util' - -local mavenrepo = util.path.join(vim.env.HOME, '.m2', 'repository', 'com', 'fujitsu') - -local function get_jar_path(config, package, version) - return util.path.join(config.options.mavenrepo, package, version, package .. '-' .. version .. '.jar') -end - -local function with_precision(version, is_high_precision) - return is_high_precision and version:gsub('([%d.]+)', '%1-P') or version -end - -local function get_latest_installed_version(repo) - local path = util.path.join(repo, 'lsp') - local sort = vim.fn.sort - - local subdirs = function(file) - local stat = vim.loop.fs_stat(util.path.join(path, file)) - return stat.type == 'directory' and 1 or 0 - end - - local candidates = vim.fn.readdir(path, subdirs) - local sorted = sort(sort(candidates, 'l'), 'N') - return sorted[#sorted] -end - --- Special case, as vdmj store particular settings under root_dir/.vscode -local function find_vscode_ancestor(startpath) - return util.search_ancestors(startpath, function(path) - if util.path.is_dir(util.path.join(path, '.vscode')) then - return path - end - end) -end - -return { - default_config = { - cmd = { 'java' }, - filetypes = { 'vdmsl', 'vdmpp', 'vdmrt' }, - root_dir = function(fname) - return util.find_git_ancestor(fname) or find_vscode_ancestor(fname) - end, - options = { - java = vim.env.JAVA_HOME and util.path.join(vim.env.JAVA_HOME, 'bin', 'java') or 'java', - java_opts = { '-Xmx3000m', '-Xss1m' }, - annotation_paths = {}, - mavenrepo = mavenrepo, - version = get_latest_installed_version(mavenrepo), - logfile = util.path.join(vim.fn.stdpath 'cache', 'vdm-lsp.log'), - debugger_port = -1, - high_precision = false, - }, - }, - docs = { - description = [[ -https://github.com/nickbattle/vdmj - -The VDMJ language server can be installed by cloning the VDMJ repository and -running `mvn clean install`. - -Various options are provided to configure the language server (see below). In -particular: -- `annotation_paths` is a list of folders and/or jar file paths for annotations -that should be used with the language server; -- any value of `debugger_port` less than zero will disable the debugger; note -that if a non-zero value is used, only one instance of the server can be active -at a time. - -More settings for VDMJ can be changed in a file called `vdmj.properties` under -`root_dir/.vscode`. For a description of the available settings, see -[Section 7 of the VDMJ User Guide](https://raw.githubusercontent.com/nickbattle/vdmj/master/vdmj/documentation/UserGuide.pdf). - -Note: proof obligations and combinatorial testing are not currently supported -by neovim. -]], - default_config = { - cmd = 'Generated from the options given', - root_dir = 'util.find_git_ancestor(fname) or find_vscode_ancestor(fname)', - options = { - java = '$JAVA_HOME/bin/java', - java_opts = { '-Xmx3000m', '-Xss1m' }, - annotation_paths = {}, - mavenrepo = '$HOME/.m2/repository/com/fujitsu', - version = 'The latest version installed in `mavenrepo`', - logfile = "path.join(vim.fn.stdpath 'cache', 'vdm-lsp.log')", - debugger_port = -1, - high_precision = false, - }, - }, - }, - on_new_config = function(config, root_dir) - local version = with_precision( - config.options.version or get_latest_installed_version(config.options.mavenrepo), - config.options.high_precision - ) - - local classpath = table.concat({ - get_jar_path(config, 'vdmj', version), - get_jar_path(config, 'annotations', version), - get_jar_path(config, 'lsp', version), - util.path.join(root_dir, '.vscode'), - unpack(config.options.annotation_paths), - }, ':') - - local java_cmd = { - config.options.java, - config.options.java_opts, - '-Dlsp.log.filename=' .. config.options.logfile, - '-cp', - classpath, - } - - local dap = {} - - if config.options.debugger_port >= 0 then - -- TODO: LS will fail to start if port is already in use - dap = { '-dap', tostring(config.options.debugger_port) } - end - - local vdmj_cmd = { - 'lsp.LSPServerStdio', - '-' .. vim.bo.filetype, - dap, - } - - config.cmd = vim.tbl_flatten { java_cmd, vdmj_cmd } - end, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/verible.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/verible.lua deleted file mode 100644 index 3c4823a..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/verible.lua +++ /dev/null @@ -1,21 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'verible-verilog-ls' }, - filetypes = { 'systemverilog', 'verilog' }, - root_dir = util.find_git_ancestor, - }, - docs = { - description = [[ -https://github.com/chipsalliance/verible - -A linter and formatter for verilog and SystemVerilog files. - -Release binaries can be downloaded from [here](https://github.com/chipsalliance/verible/releases) -and placed in a directory on PATH. - -See https://github.com/chipsalliance/verible/tree/master/verilog/tools/ls/README.md for options. - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vimls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vimls.lua deleted file mode 100644 index 4f0d1d9..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vimls.lua +++ /dev/null @@ -1,41 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'vim-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'vim' }, - root_dir = function(fname) - return util.find_git_ancestor(fname) or vim.fn.getcwd() - end, - init_options = { - iskeyword = '@,48-57,_,192-255,-#', - vimruntime = '', - runtimepath = '', - diagnostic = { enable = true }, - indexes = { - runtimepath = true, - gap = 100, - count = 3, - projectRootPatterns = { 'runtime', 'nvim', '.git', 'autoload', 'plugin' }, - }, - suggest = { fromVimruntime = true, fromRuntimepath = true }, - }, - }, - docs = { - description = [[ -https://github.com/iamcco/vim-language-server - -You can install vim-language-server via npm: -```sh -npm install -g vim-language-server -``` -]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vls.lua deleted file mode 100644 index 36255c0..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vls.lua +++ /dev/null @@ -1,32 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - filetypes = { 'vlang' }, - root_dir = util.root_pattern('v.mod', '.git'), - }, - docs = { - description = [[ -https://github.com/vlang/vls - -V language server. - -`v-language-server` can be installed by following the instructions [here](https://github.com/vlang/vls#installation). - -**By default, v-language-server doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your unzipped and compiled v-language-server. - -```lua --- set the path to the vls installation; -local vls_root_path = vim.fn.stdpath('cache')..'/lspconfig/vls' -local vls_binary = vls_root_path.."/cmd/vls/vls" - -require'lspconfig'.vls.setup { - cmd = {vls_binary}, -} -``` -]], - default_config = { - root_dir = [[root_pattern("v.mod", ".git")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/volar.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/volar.lua deleted file mode 100644 index 7742757..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/volar.lua +++ /dev/null @@ -1,138 +0,0 @@ -local util = require 'lspconfig.util' - -local function get_typescript_server_path(root_dir) - local project_root = util.find_node_modules_ancestor(root_dir) - return project_root and (util.path.join(project_root, 'node_modules', 'typescript', 'lib', 'tsserverlibrary.js')) - or '' -end - --- https://github.com/johnsoncodehk/volar/blob/master/packages/shared/src/types.ts -local volar_init_options = { - typescript = { - serverPath = '', - }, - languageFeatures = { - implementation = true, - -- not supported - https://github.com/neovim/neovim/pull/14122 - semanticTokens = false, - references = true, - definition = true, - typeDefinition = true, - callHierarchy = true, - hover = true, - rename = true, - renameFileRefactoring = true, - signatureHelp = true, - codeAction = true, - completion = { - defaultTagNameCase = 'both', - defaultAttrNameCase = 'kebabCase', - }, - schemaRequestService = true, - documentHighlight = true, - documentLink = true, - codeLens = true, - diagnostics = true, - }, - documentFeatures = { - -- not supported - https://github.com/neovim/neovim/pull/13654 - documentColor = false, - selectionRange = true, - foldingRange = true, - linkedEditingRange = true, - documentSymbol = true, - documentFormatting = { - defaultPrintWidth = 100, - }, - }, -} - -local bin_name = 'vue-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end -return { - default_config = { - cmd = cmd, - filetypes = { 'vue' }, - root_dir = util.root_pattern 'package.json', - init_options = volar_init_options, - on_new_config = function(new_config, new_root_dir) - if - new_config.init_options - and new_config.init_options.typescript - and new_config.init_options.typescript.serverPath == '' - then - new_config.init_options.typescript.serverPath = get_typescript_server_path(new_root_dir) - end - end, - }, - docs = { - description = [[ -https://github.com/johnsoncodehk/volar/tree/master/packages/vue-language-server - -Volar language server for Vue - -Volar can be installed via npm: - -```sh -npm install -g @volar/vue-language-server -``` - -Volar by default supports Vue 3 projects. Vue 2 projects need [additional configuration](https://github.com/johnsoncodehk/volar/blob/master/extensions/vscode-vue-language-features/README.md?plain=1#L28-L63). - -**Take Over Mode** -Volar can serve as a language server for both Vue and TypeScript via [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471). - -To enable Take Over Mode, override the default filetypes in `setup{}` as follows: - -```lua -require'lspconfig'.volar.setup{ - filetypes = {'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json'} -} -``` - -**Overriding the default TypeScript Server used by Volar** -The default config looks for TS in the local node_modules. The alternatives are: - -- use a global TypeScript Server installation - -```lua -require'lspconfig'.volar.setup{ - init_options = { - typescript = { - serverPath = '/path/to/.npm/lib/node_modules/typescript/lib/tsserverlib.js' - } - } -} -``` - -- use a global TypeScript Server installation if a local server is not found - -```lua -local util = require 'lspconfig.util' - -local function get_typescript_server_path(root_dir) - local project_root = util.find_node_modules_ancestor(root_dir) - - local local_tsserverlib = project_root ~= nil and util.path.join(project_root, 'node_modules', 'typescript', 'lib', 'tsserverlibrary.js') - local global_tsserverlib = '/home/[yourusernamehere]/.npm/lib/node_modules/typescript/lib/tsserverlibrary.js' - - if local_tsserverlib and util.path.exists(local_tsserverlib) then - return local_tsserverlib - else - return global_tsserverlib - end -end - -require'lspconfig'.volar.setup{ - on_new_config = function(new_config, new_root_dir) - new_config.init_options.typescript.serverPath = get_typescript_server_path(new_root_dir) - end, -} -``` - ]], - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vuels.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vuels.lua deleted file mode 100644 index d3d2d92..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/vuels.lua +++ /dev/null @@ -1,68 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'vls' -local cmd = { bin_name } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'vue' }, - root_dir = util.root_pattern('package.json', 'vue.config.js'), - init_options = { - config = { - vetur = { - useWorkspaceDependencies = false, - validation = { - template = true, - style = true, - script = true, - }, - completion = { - autoImport = false, - useScaffoldSnippets = false, - tagCasing = 'kebab', - }, - format = { - defaultFormatter = { - js = 'none', - ts = 'none', - }, - defaultFormatterOptions = {}, - scriptInitialIndent = false, - styleInitialIndent = false, - }, - }, - css = {}, - html = { - suggest = {}, - }, - javascript = { - format = {}, - }, - typescript = { - format = {}, - }, - emmet = {}, - stylusSupremacy = {}, - }, - }, - }, - docs = { - description = [[ -https://github.com/vuejs/vetur/tree/master/server - -Vue language server(vls) -`vue-language-server` can be installed via `npm`: -```sh -npm install -g vls -``` -]], - default_config = { - root_dir = [[root_pattern("package.json", "vue.config.js")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/yamlls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/yamlls.lua deleted file mode 100644 index 52d8e6f..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/yamlls.lua +++ /dev/null @@ -1,87 +0,0 @@ -local util = require 'lspconfig.util' - -local bin_name = 'yaml-language-server' -local cmd = { bin_name, '--stdio' } - -if vim.fn.has 'win32' == 1 then - cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } -end - -return { - default_config = { - cmd = cmd, - filetypes = { 'yaml', 'yaml.docker-compose' }, - root_dir = util.find_git_ancestor, - single_file_support = true, - settings = { - -- https://github.com/redhat-developer/vscode-redhat-telemetry#how-to-disable-telemetry-reporting - redhat = { telemetry = { enabled = false } }, - }, - }, - docs = { - description = [[ -https://github.com/redhat-developer/yaml-language-server - -`yaml-language-server` can be installed via `yarn`: -```sh -yarn global add yaml-language-server -``` - -To use a schema for validation, there are two options: - -1. Add a modeline to the file. A modeline is a comment of the form: - -``` -# yaml-language-server: $schema= -``` - -where the relative filepath is the path relative to the open yaml file, and the absolute filepath -is the filepath relative to the filesystem root ('/' on unix systems) - -2. Associated a schema url, relative , or absolute (to root of project, not to filesystem root) path to -the a glob pattern relative to the detected project root. Check `:LspInfo` to determine the resolved project -root. - -```lua -require('lspconfig').yamlls.setup { - ... -- other configuration for setup {} - settings = { - yaml = { - ... -- other settings. note this overrides the lspconfig defaults. - schemas = { - ["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*" - ["../path/relative/to/file.yml"] = "/.github/workflows/*" - ["/path/from/root/of/project"] = "/.github/workflows/*" - }, - }, - } -} -``` - -Currently, kubernetes is special-cased in yammls, see the following upstream issues: -* [#211](https://github.com/redhat-developer/yaml-language-server/issues/211). -* [#307](https://github.com/redhat-developer/yaml-language-server/issues/307). - -To override a schema to use a specific k8s schema version (for example, to use 1.18): - -```lua -require('lspconfig').yamlls.setup { - ... -- other configuration for setup {} - settings = { - yaml = { - ... -- other settings. note this overrides the lspconfig defaults. - schemas = { - ["https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.18.0-standalone-strict/all.json"] = "/*.k8s.yaml", - ... -- other schemas - }, - }, - } -} -``` - -]], - default_config = { - root_dir = [[util.find_git_ancestor]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zeta_note.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zeta_note.lua deleted file mode 100644 index 9798af9..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zeta_note.lua +++ /dev/null @@ -1,28 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - filetypes = { 'markdown' }, - root_dir = util.root_pattern '.zeta.toml', - }, - docs = { - description = [[ -https://github.com/artempyanykh/zeta-note - -Markdown LSP server for easy note-taking with cross-references and diagnostics. - -Binaries can be downloaded from https://github.com/artempyanykh/zeta-note/releases - -**By default, zeta-note doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your zeta-note binary. - -```lua -require'lspconfig'.zeta_note.setup{ - cmd = {'path/to/zeta-note'} -} -``` -]], - default_config = { - root_dir = [[root_pattern(".zeta.toml")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zk.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zk.lua deleted file mode 100644 index c289045..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zk.lua +++ /dev/null @@ -1,48 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'zk', 'lsp' }, - filetypes = { 'markdown' }, - root_dir = util.root_pattern '.zk', - }, - commands = { - ZkIndex = { - function() - vim.lsp.buf.execute_command { - command = 'zk.index', - arguments = { vim.api.nvim_buf_get_name(0) }, - } - end, - description = 'Index', - }, - ZkNew = { - function(...) - vim.lsp.buf_request(0, 'workspace/executeCommand', { - command = 'zk.new', - arguments = { - vim.api.nvim_buf_get_name(0), - ..., - }, - }, function(_, result, _, _) - if not (result and result.path) then - return - end - vim.cmd('edit ' .. result.path) - end) - end, - - description = 'ZkNew', - }, - }, - docs = { - description = [[ -github.com/mickael-menu/zk - -A plain text note-taking assistant -]], - default_config = { - root_dir = [[root_pattern(".zk")]], - }, - }, -} diff --git a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zls.lua b/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zls.lua deleted file mode 100644 index d890fb6..0000000 --- a/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/zls.lua +++ /dev/null @@ -1,20 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { 'zls' }, - filetypes = { 'zig', 'zir' }, - root_dir = util.root_pattern('zls.json', '.git'), - single_file_support = true, - }, - docs = { - description = [[ -https://github.com/zigtools/zls - -Zig LSP implementation + Zig Language Server - ]], - default_config = { - root_dir = [[util.root_pattern("zls.json", ".git")]], - }, - }, -} -- cgit v1.2.3