aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-01 05:39:12 -0700
committerGitHub <noreply@github.com>2024-10-01 05:39:12 -0700
commitbedb2a0df105f68a624a49b867f269b6d55a2c89 (patch)
tree877aa3ef8277575a7ffea1ff8f280eeb69b47489 /lua/lspconfig/server_configurations
parentdocs: CONTRIBUTING.md cleanup (diff)
downloadnvim-lspconfig-bedb2a0df105f68a624a49b867f269b6d55a2c89.tar
nvim-lspconfig-bedb2a0df105f68a624a49b867f269b6d55a2c89.tar.gz
nvim-lspconfig-bedb2a0df105f68a624a49b867f269b6d55a2c89.tar.bz2
nvim-lspconfig-bedb2a0df105f68a624a49b867f269b6d55a2c89.tar.lz
nvim-lspconfig-bedb2a0df105f68a624a49b867f269b6d55a2c89.tar.xz
nvim-lspconfig-bedb2a0df105f68a624a49b867f269b6d55a2c89.tar.zst
nvim-lspconfig-bedb2a0df105f68a624a49b867f269b6d55a2c89.zip
refactor: rename "server_configurations" => "configs" #3330
Problem: The name `server_configurations` is extremely verbose and irritatingly formal and dogmatic. This overlong name is a constant nuisance when reading, writing, and coding. It's also not even correct: these configurations are just as much "client" configurations as they are "server" configurations. Solution: - Rename to a shorter name. - Leave placeholder files for any old URLs that link to the old location.
Diffstat (limited to 'lua/lspconfig/server_configurations')
-rw-r--r--lua/lspconfig/server_configurations/agda_ls.lua17
-rw-r--r--lua/lspconfig/server_configurations/aiken.lua25
-rw-r--r--lua/lspconfig/server_configurations/anakin_language_server.lua78
-rw-r--r--lua/lspconfig/server_configurations/angularls.lua67
-rw-r--r--lua/lspconfig/server_configurations/ansiblels.lua43
-rw-r--r--lua/lspconfig/server_configurations/antlersls.lua19
-rw-r--r--lua/lspconfig/server_configurations/apex_ls.lua46
-rw-r--r--lua/lspconfig/server_configurations/arduino_language_server.lua90
-rw-r--r--lua/lspconfig/server_configurations/asm_lsp.lua19
-rw-r--r--lua/lspconfig/server_configurations/ast_grep.lua37
-rw-r--r--lua/lspconfig/server_configurations/astro.lua35
-rw-r--r--lua/lspconfig/server_configurations/autotools_ls.lua29
-rw-r--r--lua/lspconfig/server_configurations/awk_ls.lua22
-rw-r--r--lua/lspconfig/server_configurations/azure_pipelines_ls.lua44
-rw-r--r--lua/lspconfig/server_configurations/bacon_ls.lua39
-rw-r--r--lua/lspconfig/server_configurations/ballerina.lua17
-rw-r--r--lua/lspconfig/server_configurations/basedpyright.lua80
-rw-r--r--lua/lspconfig/server_configurations/bashls.lua37
-rw-r--r--lua/lspconfig/server_configurations/bazelrc_lsp.lua26
-rw-r--r--lua/lspconfig/server_configurations/beancount.lua21
-rw-r--r--lua/lspconfig/server_configurations/bicep.lua47
-rw-r--r--lua/lspconfig/server_configurations/biome.lua36
-rw-r--r--lua/lspconfig/server_configurations/bitbake_language_server.lua14
-rw-r--r--lua/lspconfig/server_configurations/bitbake_ls.lua27
-rw-r--r--lua/lspconfig/server_configurations/blueprint_ls.lua30
-rw-r--r--lua/lspconfig/server_configurations/bqnlsp.lua45
-rw-r--r--lua/lspconfig/server_configurations/bright_script.lua23
-rw-r--r--lua/lspconfig/server_configurations/bsl_ls.lua19
-rw-r--r--lua/lspconfig/server_configurations/buck2.lua27
-rw-r--r--lua/lspconfig/server_configurations/buddy_ls.lua18
-rw-r--r--lua/lspconfig/server_configurations/bufls.lua26
-rw-r--r--lua/lspconfig/server_configurations/bzl.lua22
-rw-r--r--lua/lspconfig/server_configurations/c3_lsp.lua18
-rw-r--r--lua/lspconfig/server_configurations/cadence.lua32
-rw-r--r--lua/lspconfig/server_configurations/cairo_ls.lua27
-rw-r--r--lua/lspconfig/server_configurations/ccls.lua50
-rw-r--r--lua/lspconfig/server_configurations/cds_lsp.lua33
-rw-r--r--lua/lspconfig/server_configurations/circom-lsp.lua17
-rw-r--r--lua/lspconfig/server_configurations/clangd.lua119
-rw-r--r--lua/lspconfig/server_configurations/clarity_lsp.lua19
-rw-r--r--lua/lspconfig/server_configurations/clojure_lsp.lua19
-rw-r--r--lua/lspconfig/server_configurations/cmake.lua26
-rw-r--r--lua/lspconfig/server_configurations/cobol_ls.lua17
-rw-r--r--lua/lspconfig/server_configurations/codeqlls.lua48
-rw-r--r--lua/lspconfig/server_configurations/coffeesense.lua21
-rw-r--r--lua/lspconfig/server_configurations/contextive.lua21
-rw-r--r--lua/lspconfig/server_configurations/coq_lsp.lua17
-rw-r--r--lua/lspconfig/server_configurations/crystalline.lua20
-rw-r--r--lua/lspconfig/server_configurations/csharp_ls.lua25
-rw-r--r--lua/lspconfig/server_configurations/css_variables.lua65
-rw-r--r--lua/lspconfig/server_configurations/cssls.lua43
-rw-r--r--lua/lspconfig/server_configurations/cssmodules_ls.lua24
-rw-r--r--lua/lspconfig/server_configurations/cucumber_language_server.lua26
-rw-r--r--lua/lspconfig/server_configurations/custom_elements_ls.lua39
-rw-r--r--lua/lspconfig/server_configurations/cypher_ls.lua23
-rw-r--r--lua/lspconfig/server_configurations/daedalus_ls.lua28
-rw-r--r--lua/lspconfig/server_configurations/dafny.lua22
-rw-r--r--lua/lspconfig/server_configurations/dagger.lua22
-rw-r--r--lua/lspconfig/server_configurations/dartls.lua32
-rw-r--r--lua/lspconfig/server_configurations/dcmls.lua19
-rw-r--r--lua/lspconfig/server_configurations/debputy.lua16
-rw-r--r--lua/lspconfig/server_configurations/delphi_ls.lua49
-rw-r--r--lua/lspconfig/server_configurations/denols.lua127
-rw-r--r--lua/lspconfig/server_configurations/dhall_lsp_server.lua26
-rw-r--r--lua/lspconfig/server_configurations/diagnosticls.lua22
-rw-r--r--lua/lspconfig/server_configurations/digestif.lua21
-rw-r--r--lua/lspconfig/server_configurations/djlsp.lua17
-rw-r--r--lua/lspconfig/server_configurations/docker_compose_language_service.lua27
-rw-r--r--lua/lspconfig/server_configurations/dockerls.lua38
-rw-r--r--lua/lspconfig/server_configurations/dolmenls.lua20
-rw-r--r--lua/lspconfig/server_configurations/dotls.lua20
-rw-r--r--lua/lspconfig/server_configurations/dprint.lua33
-rw-r--r--lua/lspconfig/server_configurations/drools_lsp.lua81
-rw-r--r--lua/lspconfig/server_configurations/ds_pinyin_lsp.lua80
-rw-r--r--lua/lspconfig/server_configurations/earthlyls.lua16
-rw-r--r--lua/lspconfig/server_configurations/ecsact.lua21
-rw-r--r--lua/lspconfig/server_configurations/efm.lua43
-rw-r--r--lua/lspconfig/server_configurations/elixirls.lua44
-rw-r--r--lua/lspconfig/server_configurations/elmls.lua40
-rw-r--r--lua/lspconfig/server_configurations/elp.lua21
-rw-r--r--lua/lspconfig/server_configurations/ember.lua23
-rw-r--r--lua/lspconfig/server_configurations/emmet_language_server.lua36
-rw-r--r--lua/lspconfig/server_configurations/emmet_ls.lua39
-rw-r--r--lua/lspconfig/server_configurations/erg_language_server.lua27
-rw-r--r--lua/lspconfig/server_configurations/erlangls.lua29
-rw-r--r--lua/lspconfig/server_configurations/esbonio.lua55
-rw-r--r--lua/lspconfig/server_configurations/eslint.lua202
-rw-r--r--lua/lspconfig/server_configurations/facility_language_server.lua17
-rw-r--r--lua/lspconfig/server_configurations/fennel_language_server.lua18
-rw-r--r--lua/lspconfig/server_configurations/fennel_ls.lua22
-rw-r--r--lua/lspconfig/server_configurations/fish_lsp.lua26
-rw-r--r--lua/lspconfig/server_configurations/flow.lua27
-rw-r--r--lua/lspconfig/server_configurations/flux_lsp.lua22
-rw-r--r--lua/lspconfig/server_configurations/foam_ls.lua25
-rw-r--r--lua/lspconfig/server_configurations/fortls.lua36
-rw-r--r--lua/lspconfig/server_configurations/fsautocomplete.lua53
-rw-r--r--lua/lspconfig/server_configurations/fsharp_language_server.lua29
-rw-r--r--lua/lspconfig/server_configurations/fstar.lua19
-rw-r--r--lua/lspconfig/server_configurations/futhark_lsp.lua22
-rw-r--r--lua/lspconfig/server_configurations/gdscript.lua26
-rw-r--r--lua/lspconfig/server_configurations/gdshader_lsp.lua16
-rw-r--r--lua/lspconfig/server_configurations/ghcide.lua21
-rw-r--r--lua/lspconfig/server_configurations/ghdl_ls.lua22
-rw-r--r--lua/lspconfig/server_configurations/ginko_ls.lua21
-rw-r--r--lua/lspconfig/server_configurations/gitlab_ci_ls.lua33
-rw-r--r--lua/lspconfig/server_configurations/glasgow.lua38
-rw-r--r--lua/lspconfig/server_configurations/gleam.lua25
-rw-r--r--lua/lspconfig/server_configurations/glint.lua59
-rw-r--r--lua/lspconfig/server_configurations/glsl_analyzer.lua18
-rw-r--r--lua/lspconfig/server_configurations/glslls.lua28
-rw-r--r--lua/lspconfig/server_configurations/golangci_lint_ls.lua42
-rw-r--r--lua/lspconfig/server_configurations/gopls.lua39
-rw-r--r--lua/lspconfig/server_configurations/gradle_ls.lua43
-rw-r--r--lua/lspconfig/server_configurations/grammarly.lua34
-rw-r--r--lua/lspconfig/server_configurations/graphql.lua26
-rw-r--r--lua/lspconfig/server_configurations/groovyls.lua36
-rw-r--r--lua/lspconfig/server_configurations/guile_ls.lua30
-rw-r--r--lua/lspconfig/server_configurations/harper_ls.lua51
-rw-r--r--lua/lspconfig/server_configurations/haxe_language_server.lua74
-rw-r--r--lua/lspconfig/server_configurations/hdl_checker.lua20
-rw-r--r--lua/lspconfig/server_configurations/helm_ls.lua36
-rw-r--r--lua/lspconfig/server_configurations/hhvm.lua21
-rw-r--r--lua/lspconfig/server_configurations/hie.lua34
-rw-r--r--lua/lspconfig/server_configurations/hlasm.lua20
-rw-r--r--lua/lspconfig/server_configurations/hls.lua52
-rw-r--r--lua/lspconfig/server_configurations/hoon_ls.lua22
-rw-r--r--lua/lspconfig/server_configurations/html.lua41
-rw-r--r--lua/lspconfig/server_configurations/htmx.lua71
-rw-r--r--lua/lspconfig/server_configurations/hydra_lsp.lua20
-rw-r--r--lua/lspconfig/server_configurations/hyprls.lua24
-rw-r--r--lua/lspconfig/server_configurations/idris2_lsp.lua41
-rw-r--r--lua/lspconfig/server_configurations/intelephense.lua43
-rw-r--r--lua/lspconfig/server_configurations/janet_lsp.lua21
-rw-r--r--lua/lspconfig/server_configurations/java_language_server.lua18
-rw-r--r--lua/lspconfig/server_configurations/jdtls.lua173
-rw-r--r--lua/lspconfig/server_configurations/jedi_language_server.lua29
-rw-r--r--lua/lspconfig/server_configurations/jinja_lsp.lua28
-rw-r--r--lua/lspconfig/server_configurations/jqls.lua30
-rw-r--r--lua/lspconfig/server_configurations/jsonls.lua41
-rw-r--r--lua/lspconfig/server_configurations/jsonnet_ls.lua44
-rw-r--r--lua/lspconfig/server_configurations/julials.lua139
-rw-r--r--lua/lspconfig/server_configurations/kcl.lua20
-rw-r--r--lua/lspconfig/server_configurations/koka.lua21
-rw-r--r--lua/lspconfig/server_configurations/kotlin_language_server.lua57
-rw-r--r--lua/lspconfig/server_configurations/lean3ls.lua46
-rw-r--r--lua/lspconfig/server_configurations/leanls.lua52
-rw-r--r--lua/lspconfig/server_configurations/lelwel_ls.lua21
-rw-r--r--lua/lspconfig/server_configurations/lemminx.lua23
-rw-r--r--lua/lspconfig/server_configurations/lexical.lua23
-rw-r--r--lua/lspconfig/server_configurations/ltex.lua90
-rw-r--r--lua/lspconfig/server_configurations/lua_ls.lua90
-rw-r--r--lua/lspconfig/server_configurations/luau_lsp.lua28
-rw-r--r--lua/lspconfig/server_configurations/lwc_ls.lua37
-rw-r--r--lua/lspconfig/server_configurations/m68k.lua29
-rw-r--r--lua/lspconfig/server_configurations/markdown_oxide.lua42
-rw-r--r--lua/lspconfig/server_configurations/marksman.lua30
-rw-r--r--lua/lspconfig/server_configurations/matlab_ls.lua25
-rw-r--r--lua/lspconfig/server_configurations/mdx_analyzer.lua32
-rw-r--r--lua/lspconfig/server_configurations/mesonlsp.lua19
-rw-r--r--lua/lspconfig/server_configurations/metals.lua40
-rw-r--r--lua/lspconfig/server_configurations/millet.lua24
-rw-r--r--lua/lspconfig/server_configurations/mint.lua20
-rw-r--r--lua/lspconfig/server_configurations/mlir_lsp_server.lua19
-rw-r--r--lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua20
-rw-r--r--lua/lspconfig/server_configurations/mm0_ls.lua20
-rw-r--r--lua/lspconfig/server_configurations/mojo.lua22
-rw-r--r--lua/lspconfig/server_configurations/motoko_lsp.lua23
-rw-r--r--lua/lspconfig/server_configurations/move_analyzer.lua31
-rw-r--r--lua/lspconfig/server_configurations/msbuild_project_tools_server.lua30
-rw-r--r--lua/lspconfig/server_configurations/mutt_ls.lua25
-rw-r--r--lua/lspconfig/server_configurations/nelua_lsp.lua36
-rw-r--r--lua/lspconfig/server_configurations/neocmake.lua35
-rw-r--r--lua/lspconfig/server_configurations/nextls.lua18
-rw-r--r--lua/lspconfig/server_configurations/nginx_language_server.lua23
-rw-r--r--lua/lspconfig/server_configurations/nickel_ls.lua37
-rw-r--r--lua/lspconfig/server_configurations/nil_ls.lua25
-rw-r--r--lua/lspconfig/server_configurations/nim_langserver.lua23
-rw-r--r--lua/lspconfig/server_configurations/nimls.lua23
-rw-r--r--lua/lspconfig/server_configurations/nixd.lua25
-rw-r--r--lua/lspconfig/server_configurations/nomad_lsp.lua36
-rw-r--r--lua/lspconfig/server_configurations/ntt.lua28
-rw-r--r--lua/lspconfig/server_configurations/nushell.lua20
-rw-r--r--lua/lspconfig/server_configurations/nxls.lua24
-rw-r--r--lua/lspconfig/server_configurations/ocamlls.lua22
-rw-r--r--lua/lspconfig/server_configurations/ocamllsp.lua38
-rw-r--r--lua/lspconfig/server_configurations/ols.lua19
-rw-r--r--lua/lspconfig/server_configurations/omnisharp.lua144
-rw-r--r--lua/lspconfig/server_configurations/opencl_ls.lua21
-rw-r--r--lua/lspconfig/server_configurations/openedge_ls.lua55
-rw-r--r--lua/lspconfig/server_configurations/openscad_ls.lua32
-rw-r--r--lua/lspconfig/server_configurations/openscad_lsp.lua22
-rw-r--r--lua/lspconfig/server_configurations/pact_ls.lua17
-rw-r--r--lua/lspconfig/server_configurations/pasls.lua28
-rw-r--r--lua/lspconfig/server_configurations/pbls.lua26
-rw-r--r--lua/lspconfig/server_configurations/perlls.lua38
-rw-r--r--lua/lspconfig/server_configurations/perlnavigator.lua33
-rw-r--r--lua/lspconfig/server_configurations/perlpls.lua29
-rw-r--r--lua/lspconfig/server_configurations/pest_ls.lua17
-rw-r--r--lua/lspconfig/server_configurations/phan.lua40
-rw-r--r--lua/lspconfig/server_configurations/phpactor.lua26
-rw-r--r--lua/lspconfig/server_configurations/pico8_ls.lua17
-rw-r--r--lua/lspconfig/server_configurations/pkgbuild_language_server.lua19
-rw-r--r--lua/lspconfig/server_configurations/please.lua19
-rw-r--r--lua/lspconfig/server_configurations/postgres_lsp.lua20
-rw-r--r--lua/lspconfig/server_configurations/powershell_es.lua72
-rw-r--r--lua/lspconfig/server_configurations/prismals.lua27
-rw-r--r--lua/lspconfig/server_configurations/prolog_ls.lua27
-rw-r--r--lua/lspconfig/server_configurations/prosemd_lsp.lua22
-rw-r--r--lua/lspconfig/server_configurations/protols.lua22
-rw-r--r--lua/lspconfig/server_configurations/psalm.lua23
-rw-r--r--lua/lspconfig/server_configurations/pug.lua18
-rw-r--r--lua/lspconfig/server_configurations/puppet.lua38
-rw-r--r--lua/lspconfig/server_configurations/purescriptls.lua29
-rw-r--r--lua/lspconfig/server_configurations/pylsp.lua48
-rw-r--r--lua/lspconfig/server_configurations/pylyzer.lua34
-rw-r--r--lua/lspconfig/server_configurations/pyre.lua22
-rw-r--r--lua/lspconfig/server_configurations/pyright.lua80
-rw-r--r--lua/lspconfig/server_configurations/qml_lsp.lua16
-rw-r--r--lua/lspconfig/server_configurations/qmlls.lua19
-rw-r--r--lua/lspconfig/server_configurations/quick_lint_js.lua19
-rw-r--r--lua/lspconfig/server_configurations/r_language_server.lua28
-rw-r--r--lua/lspconfig/server_configurations/racket_langserver.lua21
-rw-r--r--lua/lspconfig/server_configurations/raku_navigator.lua33
-rw-r--r--lua/lspconfig/server_configurations/reason_ls.lua16
-rw-r--r--lua/lspconfig/server_configurations/regal.lua28
-rw-r--r--lua/lspconfig/server_configurations/regols.lua28
-rw-r--r--lua/lspconfig/server_configurations/relay_lsp.lua110
-rw-r--r--lua/lspconfig/server_configurations/remark_ls.lua52
-rw-r--r--lua/lspconfig/server_configurations/rescriptls.lua52
-rw-r--r--lua/lspconfig/server_configurations/rls.lua42
-rw-r--r--lua/lspconfig/server_configurations/rnix.lua28
-rw-r--r--lua/lspconfig/server_configurations/robotframework_ls.lua23
-rw-r--r--lua/lspconfig/server_configurations/roc_ls.lua21
-rw-r--r--lua/lspconfig/server_configurations/rome.lua37
-rw-r--r--lua/lspconfig/server_configurations/rubocop.lua17
-rw-r--r--lua/lspconfig/server_configurations/ruby_lsp.lua33
-rw-r--r--lua/lspconfig/server_configurations/ruff.lua48
-rw-r--r--lua/lspconfig/server_configurations/ruff_lsp.lua42
-rw-r--r--lua/lspconfig/server_configurations/rune_languageserver.lua21
-rw-r--r--lua/lspconfig/server_configurations/rust_analyzer.lua122
-rw-r--r--lua/lspconfig/server_configurations/salt_ls.lua24
-rw-r--r--lua/lspconfig/server_configurations/scheme_langserver.lua22
-rw-r--r--lua/lspconfig/server_configurations/scry.lua22
-rw-r--r--lua/lspconfig/server_configurations/serve_d.lua20
-rw-r--r--lua/lspconfig/server_configurations/shopify_theme_ls.lua32
-rw-r--r--lua/lspconfig/server_configurations/sixtyfps.lua28
-rw-r--r--lua/lspconfig/server_configurations/slangd.lua44
-rw-r--r--lua/lspconfig/server_configurations/slint_lsp.lua29
-rw-r--r--lua/lspconfig/server_configurations/smarty_ls.lua39
-rw-r--r--lua/lspconfig/server_configurations/smithy_ls.lua30
-rw-r--r--lua/lspconfig/server_configurations/snakeskin_ls.lua19
-rw-r--r--lua/lspconfig/server_configurations/snyk_ls.lua37
-rw-r--r--lua/lspconfig/server_configurations/solang.lua27
-rw-r--r--lua/lspconfig/server_configurations/solargraph.lua31
-rw-r--r--lua/lspconfig/server_configurations/solc.lua19
-rw-r--r--lua/lspconfig/server_configurations/solidity.lua49
-rw-r--r--lua/lspconfig/server_configurations/solidity_ls.lua36
-rw-r--r--lua/lspconfig/server_configurations/solidity_ls_nomicfoundation.lua36
-rw-r--r--lua/lspconfig/server_configurations/somesass_ls.lua40
-rw-r--r--lua/lspconfig/server_configurations/sorbet.lua26
-rw-r--r--lua/lspconfig/server_configurations/sourcekit.lua29
-rw-r--r--lua/lspconfig/server_configurations/sourcery.lua83
-rw-r--r--lua/lspconfig/server_configurations/spectral.lua29
-rw-r--r--lua/lspconfig/server_configurations/spyglassmc_language_server.lua29
-rw-r--r--lua/lspconfig/server_configurations/sqlls.lua18
-rw-r--r--lua/lspconfig/server_configurations/sqls.lua25
-rw-r--r--lua/lspconfig/server_configurations/standardrb.lua19
-rw-r--r--lua/lspconfig/server_configurations/starlark_rust.lua20
-rw-r--r--lua/lspconfig/server_configurations/starpls.lua16
-rw-r--r--lua/lspconfig/server_configurations/statix.lua20
-rw-r--r--lua/lspconfig/server_configurations/steep.lua21
-rw-r--r--lua/lspconfig/server_configurations/stimulus_ls.lua26
-rw-r--r--lua/lspconfig/server_configurations/stylelint_lsp.lua53
-rw-r--r--lua/lspconfig/server_configurations/superhtml.lua32
-rw-r--r--lua/lspconfig/server_configurations/svelte.lua24
-rw-r--r--lua/lspconfig/server_configurations/svlangserver.lua58
-rw-r--r--lua/lspconfig/server_configurations/svls.lua24
-rw-r--r--lua/lspconfig/server_configurations/swift_mesonls.lua19
-rw-r--r--lua/lspconfig/server_configurations/syntax_tree.lua28
-rw-r--r--lua/lspconfig/server_configurations/tabby_ml.lua23
-rw-r--r--lua/lspconfig/server_configurations/tailwindcss.lua130
-rw-r--r--lua/lspconfig/server_configurations/taplo.lua25
-rw-r--r--lua/lspconfig/server_configurations/tblgen_lsp_server.lua20
-rw-r--r--lua/lspconfig/server_configurations/teal_ls.lua31
-rw-r--r--lua/lspconfig/server_configurations/templ.lua21
-rw-r--r--lua/lspconfig/server_configurations/terraform_lsp.lua43
-rw-r--r--lua/lspconfig/server_configurations/terraformls.lua47
-rw-r--r--lua/lspconfig/server_configurations/texlab.lua249
-rw-r--r--lua/lspconfig/server_configurations/textlsp.lua50
-rw-r--r--lua/lspconfig/server_configurations/tflint.lua20
-rw-r--r--lua/lspconfig/server_configurations/theme_check.lua31
-rw-r--r--lua/lspconfig/server_configurations/thriftls.lua20
-rw-r--r--lua/lspconfig/server_configurations/tilt_ls.lua26
-rw-r--r--lua/lspconfig/server_configurations/tinymist.lua16
-rw-r--r--lua/lspconfig/server_configurations/ts_ls.lua90
-rw-r--r--lua/lspconfig/server_configurations/tsp_server.lua24
-rw-r--r--lua/lspconfig/server_configurations/ttags.lua17
-rw-r--r--lua/lspconfig/server_configurations/turtle_ls.lua45
-rw-r--r--lua/lspconfig/server_configurations/tvm_ffi_navigator.lua19
-rw-r--r--lua/lspconfig/server_configurations/twiggy_language_server.lua23
-rw-r--r--lua/lspconfig/server_configurations/typeprof.lua19
-rw-r--r--lua/lspconfig/server_configurations/typos_lsp.lua20
-rw-r--r--lua/lspconfig/server_configurations/typst_lsp.lua19
-rw-r--r--lua/lspconfig/server_configurations/uiua.lua31
-rw-r--r--lua/lspconfig/server_configurations/unison.lua17
-rw-r--r--lua/lspconfig/server_configurations/unocss.lua31
-rw-r--r--lua/lspconfig/server_configurations/uvls.lua29
-rw-r--r--lua/lspconfig/server_configurations/v_analyzer.lua21
-rw-r--r--lua/lspconfig/server_configurations/vacuum.lua28
-rw-r--r--lua/lspconfig/server_configurations/vala_ls.lua40
-rw-r--r--lua/lspconfig/server_configurations/vale_ls.lua17
-rw-r--r--lua/lspconfig/server_configurations/vdmj.lua134
-rw-r--r--lua/lspconfig/server_configurations/verible.lua21
-rw-r--r--lua/lspconfig/server_configurations/veridian.lua23
-rw-r--r--lua/lspconfig/server_configurations/veryl_ls.lua24
-rw-r--r--lua/lspconfig/server_configurations/vhdl_ls.lua45
-rw-r--r--lua/lspconfig/server_configurations/vimls.lua34
-rw-r--r--lua/lspconfig/server_configurations/visualforce_ls.lua38
-rw-r--r--lua/lspconfig/server_configurations/vls.lua21
-rw-r--r--lua/lspconfig/server_configurations/volar.lua113
-rw-r--r--lua/lspconfig/server_configurations/vtsls.lua35
-rw-r--r--lua/lspconfig/server_configurations/vuels.lua61
-rw-r--r--lua/lspconfig/server_configurations/wgsl_analyzer.lua23
-rw-r--r--lua/lspconfig/server_configurations/yamlls.lua80
-rw-r--r--lua/lspconfig/server_configurations/yang_lsp.lua19
-rw-r--r--lua/lspconfig/server_configurations/yls.lua21
-rw-r--r--lua/lspconfig/server_configurations/ziggy.lua21
-rw-r--r--lua/lspconfig/server_configurations/ziggy_schema.lua21
-rw-r--r--lua/lspconfig/server_configurations/zk.lua79
-rw-r--r--lua/lspconfig/server_configurations/zls.lua20
330 files changed, 0 insertions, 11706 deletions
diff --git a/lua/lspconfig/server_configurations/agda_ls.lua b/lua/lspconfig/server_configurations/agda_ls.lua
deleted file mode 100644
index 07d6e93f..00000000
--- a/lua/lspconfig/server_configurations/agda_ls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'als' },
- filetypes = { 'agda' },
- root_dir = util.root_pattern('.git', '*.agda-lib'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/agda/agda-language-server
-
-Language Server for Agda.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/aiken.lua b/lua/lspconfig/server_configurations/aiken.lua
deleted file mode 100644
index 8025fe1e..00000000
--- a/lua/lspconfig/server_configurations/aiken.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'aiken', 'lsp' },
- filetypes = { 'aiken' },
- root_dir = function(fname)
- return util.root_pattern('aiken.toml', '.git')(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/aiken-lang/aiken
-
-A language server for Aiken Programming Language.
-[Installation](https://aiken-lang.org/installation-instructions)
-
-It can be i
-]],
- default_config = {
- cmd = { 'aiken', 'lsp' },
- root_dir = [[root_pattern("aiken.toml", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/anakin_language_server.lua b/lua/lspconfig/server_configurations/anakin_language_server.lua
deleted file mode 100644
index f0c281cc..00000000
--- a/lua/lspconfig/server_configurations/anakin_language_server.lua
+++ /dev/null
@@ -1,78 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'anakinls' },
- 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,
- settings = {
- anakinls = {
- pyflakes_errors = {
- -- Full list: https://github.com/PyCQA/pyflakes/blob/master/pyflakes/messages.py
-
- 'ImportStarNotPermitted',
-
- 'UndefinedExport',
- 'UndefinedLocal',
- 'UndefinedName',
-
- 'DuplicateArgument',
- 'MultiValueRepeatedKeyLiteral',
- 'MultiValueRepeatedKeyVariable',
-
- 'FutureFeatureNotDefined',
- 'LateFutureImport',
-
- 'ReturnOutsideFunction',
- 'YieldOutsideFunction',
- 'ContinueOutsideLoop',
- 'BreakOutsideLoop',
-
- 'TwoStarredExpressions',
- 'TooManyExpressionsInStarredAssignment',
-
- 'ForwardAnnotationSyntaxError',
- 'RaiseNotImplemented',
-
- 'StringDotFormatExtraPositionalArguments',
- 'StringDotFormatExtraNamedArguments',
- 'StringDotFormatMissingArgument',
- 'StringDotFormatMixingAutomatic',
- 'StringDotFormatInvalidFormat',
-
- 'PercentFormatInvalidFormat',
- 'PercentFormatMixedPositionalAndNamed',
- 'PercentFormatUnsupportedFormat',
- 'PercentFormatPositionalCountMismatch',
- 'PercentFormatExtraNamedArguments',
- 'PercentFormatMissingArgument',
- 'PercentFormatExpectedMapping',
- 'PercentFormatExpectedSequence',
- 'PercentFormatStarRequiresSequence',
- },
- },
- },
- },
- docs = {
- description = [[
-https://pypi.org/project/anakin-language-server/
-
-`anakin-language-server` is yet another Jedi Python language server.
-
-Available options:
-
-* Initialization: https://github.com/muffinmad/anakin-language-server#initialization-option
-* Configuration: https://github.com/muffinmad/anakin-language-server#configuration-options
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/angularls.lua b/lua/lspconfig/server_configurations/angularls.lua
deleted file mode 100644
index 45daf290..00000000
--- a/lua/lspconfig/server_configurations/angularls.lua
+++ /dev/null
@@ -1,67 +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())
-
-return {
- default_config = {
- cmd = {
- 'ngserver',
- '--stdio',
- '--tsProbeLocations',
- default_probe_dir,
- '--ngProbeLocations',
- default_probe_dir,
- },
- filetypes = { 'typescript', 'html', 'typescriptreact', 'typescript.tsx', 'htmlangular' },
- -- Check for angular.json 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',
- },
- 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")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ansiblels.lua b/lua/lspconfig/server_configurations/ansiblels.lua
deleted file mode 100644
index acf78f2a..00000000
--- a/lua/lspconfig/server_configurations/ansiblels.lua
+++ /dev/null
@@ -1,43 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ansible-language-server', '--stdio' },
- settings = {
- ansible = {
- python = {
- interpreterPath = 'python',
- },
- ansible = {
- path = 'ansible',
- },
- executionEnvironment = {
- enabled = false,
- },
- validation = {
- enabled = true,
- lint = {
- enabled = true,
- path = 'ansible-lint',
- },
- },
- },
- },
- filetypes = { 'yaml.ansible' },
- root_dir = util.root_pattern('ansible.cfg', '.ansible-lint'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/ansible/vscode-ansible
-
-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/lua/lspconfig/server_configurations/antlersls.lua b/lua/lspconfig/server_configurations/antlersls.lua
deleted file mode 100644
index ea4cf87e..00000000
--- a/lua/lspconfig/server_configurations/antlersls.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'antlersls', '--stdio' },
- filetypes = { 'html', 'antlers' },
- root_dir = util.root_pattern 'composer.json',
- },
- docs = {
- description = [[
-https://www.npmjs.com/package/antlers-language-server
-
-`antlersls` can be installed via `npm`:
-```sh
-npm install -g antlers-language-server
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/apex_ls.lua b/lua/lspconfig/server_configurations/apex_ls.lua
deleted file mode 100644
index baea475f..00000000
--- a/lua/lspconfig/server_configurations/apex_ls.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- filetypes = { 'apexcode' },
- root_dir = util.root_pattern 'sfdx-project.json',
- on_new_config = function(config)
- if not config.cmd and config.apex_jar_path then
- config.cmd = {
- vim.env.JAVA_HOME and util.path.join(vim.env.JAVA_HOME, 'bin', 'java') or 'java',
- '-cp',
- config.apex_jar_path,
- '-Ddebug.internal.errors=true',
- '-Ddebug.semantic.errors=' .. tostring(config.apex_enable_semantic_errors or false),
- '-Ddebug.completion.statistics=' .. tostring(config.apex_enable_completion_statistics or false),
- '-Dlwc.typegeneration.disabled=true',
- }
- if config.apex_jvm_max_heap then
- table.insert(config.cmd, '-Xmx' .. config.apex_jvm_max_heap)
- end
- table.insert(config.cmd, 'apex.jorje.lsp.ApexLanguageServerLauncher')
- end
- end,
- },
- docs = {
- description = [[
-https://github.com/forcedotcom/salesforcedx-vscode
-
-Language server for Apex.
-
-For manual installation, download the JAR file from the [VSCode
-extension](https://github.com/forcedotcom/salesforcedx-vscode/tree/develop/packages/salesforcedx-vscode-apex).
-
-```lua
-require'lspconfig'.apex_ls.setup {
- apex_jar_path = '/path/to/apex-jorje-lsp.jar',
- apex_enable_semantic_errors = false, -- Whether to allow Apex Language Server to surface semantic errors
- apex_enable_completion_statistics = false, -- Whether to allow Apex Language Server to collect telemetry on code completion usage
-}
-```
-]],
- default_config = {
- root_dir = [[root_pattern('sfdx-project.json')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/arduino_language_server.lua b/lua/lspconfig/server_configurations/arduino_language_server.lua
deleted file mode 100644
index c3ddc518..00000000
--- a/lua/lspconfig/server_configurations/arduino_language_server.lua
+++ /dev/null
@@ -1,90 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- filetypes = { 'arduino' },
- root_dir = util.root_pattern '*.ino',
- cmd = {
- 'arduino-language-server',
- },
- capabilities = {
- textDocument = {
- semanticTokens = vim.NIL,
- },
- workspace = {
- semanticTokens = vim.NIL,
- },
- },
- },
- docs = {
- description = [[
-https://github.com/arduino/arduino-language-server
-
-Language server for Arduino
-
-The `arduino-language-server` can be installed by running:
-
-```
-go install github.com/arduino/arduino-language-server@latest
-```
-
-The `arduino-cli` tool must also be installed. Follow [these
-installation instructions](https://arduino.github.io/arduino-cli/latest/installation/) for
-your platform.
-
-After installing `arduino-cli`, follow [these
-instructions](https://arduino.github.io/arduino-cli/latest/getting-started/#create-a-configuration-file)
-for generating a configuration file if you haven't done so already, 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` to be installed. Follow [these
-installation instructions](https://clangd.llvm.org/installation) for your
-platform.
-
-If you don't have a sketch yet create one.
-
-```sh
-$ arduino-cli sketch new test
-$ cd test
-```
-
-You will need a `sketch.yaml` file in order for the language server to understand your project. It will also save you passing options to `arduino-cli` each time you compile or upload a file. You can generate the file by using the following commands.
-
-
-First gather some information about your board. Make sure your board is connected and run the following:
-
-```sh
-$ arduino-cli board list
-Port Protocol Type Board Name FQBN Core
-/dev/ttyACM0 serial Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr
-```
-
-Then generate the file:
-
-```sh
-arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino
-```
-
-The resulting file should look like this:
-
-```yaml
-default_fqbn: arduino:avr:uno
-default_port: /dev/ttyACM0
-```
-
-Your folder structure should look like this:
-
-```
-.
-├── test.ino
-└── sketch.yaml
-```
-
-For further instructions about configuration options, run `arduino-language-server --help`.
-
-Note that an upstream bug makes keywords in some cases become undefined by the language server.
-Ref: https://github.com/arduino/arduino-ide/issues/159
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/asm_lsp.lua b/lua/lspconfig/server_configurations/asm_lsp.lua
deleted file mode 100644
index 102bcbab..00000000
--- a/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/lua/lspconfig/server_configurations/ast_grep.lua b/lua/lspconfig/server_configurations/ast_grep.lua
deleted file mode 100644
index 35b01897..00000000
--- a/lua/lspconfig/server_configurations/ast_grep.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ast-grep', 'lsp' },
- filetypes = { -- https://ast-grep.github.io/reference/languages.html
- 'c',
- 'cpp',
- 'rust',
- 'go',
- 'java',
- 'python',
- 'javascript',
- 'typescript',
- 'html',
- 'css',
- 'kotlin',
- 'dart',
- 'lua',
- },
- root_dir = util.root_pattern('sgconfig.yaml', 'sgconfig.yml'),
- },
- docs = {
- description = [[
-https://ast-grep.github.io/
-
-ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
-ast-grep LSP only works in projects that have `sgconfig.y[a]ml` in their root directories.
-```sh
-npm install [-g] @ast-grep/cli
-```
-]],
- default_config = {
- root_dir = [[root_pattern('sgconfig.yaml', 'sgconfig.yml')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/astro.lua b/lua/lspconfig/server_configurations/astro.lua
deleted file mode 100644
index c28dcb6e..00000000
--- a/lua/lspconfig/server_configurations/astro.lua
+++ /dev/null
@@ -1,35 +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')) or ''
-end
-
-return {
- default_config = {
- cmd = { 'astro-ls', '--stdio' },
- filetypes = { 'astro' },
- root_dir = util.root_pattern('package.json', 'tsconfig.json', 'jsconfig.json', '.git'),
- init_options = {
- typescript = {},
- },
- on_new_config = function(new_config, new_root_dir)
- if vim.tbl_get(new_config.init_options, 'typescript') and not new_config.init_options.typescript.tsdk then
- new_config.init_options.typescript.tsdk = get_typescript_server_path(new_root_dir)
- end
- end,
- },
- docs = {
- description = [[
-https://github.com/withastro/language-tools/tree/main/packages/language-server
-
-`astro-ls` can be installed via `npm`:
-```sh
-npm install -g @astrojs/language-server
-```
-]],
- default_config = {
- root_dir = [[root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/autotools_ls.lua b/lua/lspconfig/server_configurations/autotools_ls.lua
deleted file mode 100644
index f5bc2f72..00000000
--- a/lua/lspconfig/server_configurations/autotools_ls.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = { 'configure.ac', 'Makefile', 'Makefile.am', '*.mk' }
-
-return {
- default_config = {
- cmd = { 'autotools-language-server' },
- filetypes = { 'config', 'automake', 'make' },
- root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/Freed-Wu/autotools-language-server
-
-`autotools-language-server` can be installed via `pip`:
-```sh
-pip install autotools-language-server
-```
-
-Language server for autoconf, automake and make using tree sitter in python.
-]],
- default_config = {
- root_dir = { 'configure.ac', 'Makefile', 'Makefile.am', '*.mk' },
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/awk_ls.lua b/lua/lspconfig/server_configurations/awk_ls.lua
deleted file mode 100644
index ff1087dc..00000000
--- a/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/lua/lspconfig/server_configurations/azure_pipelines_ls.lua b/lua/lspconfig/server_configurations/azure_pipelines_ls.lua
deleted file mode 100644
index 3e2fe940..00000000
--- a/lua/lspconfig/server_configurations/azure_pipelines_ls.lua
+++ /dev/null
@@ -1,44 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'azure-pipelines-language-server', '--stdio' },
- filetypes = { 'yaml' },
- root_dir = util.root_pattern 'azure-pipelines.yml',
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/microsoft/azure-pipelines-language-server
-
-An Azure Pipelines language server
-
-`azure-pipelines-ls` can be installed via `npm`:
-
-```sh
-npm install -g azure-pipelines-language-server
-```
-
-By default `azure-pipelines-ls` will only work in files named `azure-pipelines.yml`, this can be changed by providing additional settings like so:
-```lua
-require("lspconfig").azure_pipelines_ls.setup {
- ... -- other configuration for setup {}
- settings = {
- yaml = {
- schemas = {
- ["https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json"] = {
- "/azure-pipeline*.y*l",
- "/*.azure*",
- "Azure-Pipelines/**/*.y*l",
- "Pipelines/*.y*l",
- },
- },
- },
- },
-}
-```
-The Azure Pipelines LSP is a fork of `yaml-language-server` and as such the same settings can be passed to it as `yaml-language-server`.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/bacon_ls.lua b/lua/lspconfig/server_configurations/bacon_ls.lua
deleted file mode 100644
index 8acf12fa..00000000
--- a/lua/lspconfig/server_configurations/bacon_ls.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'bacon-ls' },
- filetypes = { 'rust' },
- root_dir = util.root_pattern('.bacon-locations', 'Cargo.toml'),
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/crisidev/bacon-ls
-
-A Language Server Protocol wrapper for [bacon](https://dystroy.org/bacon/).
-It offers textDocument/diagnostic and workspace/diagnostic capabilities for Rust
-workspaces using the Bacon export locations file.
-
-It requires `bacon` and `bacon-ls` to be installed on the system using
-[mason.nvim](https://github.com/williamboman/mason.nvim) or manually:util
-
-```sh
-$ cargo install --locked bacon bacon-ls
-```
-
-Settings can be changed using the `settings` dictionary:util
-
-```lua
-settings = {
- -- Bacon export filename, default .bacon-locations
- locationsFile = ".bacon-locations",
- -- Maximum time in seconds the LSP server waits for Bacon to update the
- -- export file before loading the new diagnostics
- waitTimeSeconds = 10
-}
-```
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ballerina.lua b/lua/lspconfig/server_configurations/ballerina.lua
deleted file mode 100644
index fb6ec88e..00000000
--- a/lua/lspconfig/server_configurations/ballerina.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'bal', 'start-language-server' },
- filetypes = { 'ballerina' },
- root_dir = util.root_pattern 'Ballerina.toml',
- },
- docs = {
- description = [[
-Ballerina language server
-
-The Ballerina language's CLI tool comes with its own language server implementation.
-The `bal` command line tool must be installed and available in your system's PATH.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/basedpyright.lua b/lua/lspconfig/server_configurations/basedpyright.lua
deleted file mode 100644
index fa45d14d..00000000
--- a/lua/lspconfig/server_configurations/basedpyright.lua
+++ /dev/null
@@ -1,80 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'pyproject.toml',
- 'setup.py',
- 'setup.cfg',
- 'requirements.txt',
- 'Pipfile',
- 'pyrightconfig.json',
- '.git',
-}
-
-local function organize_imports()
- local params = {
- command = 'basedpyright.organizeimports',
- arguments = { vim.uri_from_bufnr(0) },
- }
-
- local clients = util.get_lsp_clients {
- bufnr = vim.api.nvim_get_current_buf(),
- name = 'basedpyright',
- }
- for _, client in ipairs(clients) do
- client.request('workspace/executeCommand', params, nil, 0)
- end
-end
-
-local function set_python_path(path)
- local clients = util.get_lsp_clients {
- bufnr = vim.api.nvim_get_current_buf(),
- name = 'basedpyright',
- }
- for _, client in ipairs(clients) do
- if client.settings then
- client.settings.python = vim.tbl_deep_extend('force', client.settings.python or {}, { pythonPath = path })
- else
- client.config.settings = vim.tbl_deep_extend('force', client.config.settings, { python = { pythonPath = path } })
- end
- client.notify('workspace/didChangeConfiguration', { settings = nil })
- end
-end
-
-return {
- default_config = {
- cmd = { 'basedpyright-langserver', '--stdio' },
- filetypes = { 'python' },
- root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(fname)
- end,
- single_file_support = true,
- settings = {
- basedpyright = {
- analysis = {
- autoSearchPaths = true,
- useLibraryCodeForTypes = true,
- diagnosticMode = 'openFilesOnly',
- },
- },
- },
- },
- commands = {
- PyrightOrganizeImports = {
- organize_imports,
- description = 'Organize Imports',
- },
- PyrightSetPythonPath = {
- set_python_path,
- description = 'Reconfigure basedpyright with the provided python path',
- nargs = 1,
- complete = 'file',
- },
- },
- docs = {
- description = [[
-https://detachhead.github.io/basedpyright
-
-`basedpyright`, a static type checker and language server for python
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/bashls.lua b/lua/lspconfig/server_configurations/bashls.lua
deleted file mode 100644
index 953da749..00000000
--- a/lua/lspconfig/server_configurations/bashls.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'bash-language-server', 'start' },
- settings = {
- bashIde = {
- -- Glob pattern for finding and parsing shell script files in the workspace.
- -- Used by the background analysis features across files.
-
- -- 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)".
- globPattern = 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/bash-lsp/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/lua/lspconfig/server_configurations/bazelrc_lsp.lua b/lua/lspconfig/server_configurations/bazelrc_lsp.lua
deleted file mode 100644
index d89462a2..00000000
--- a/lua/lspconfig/server_configurations/bazelrc_lsp.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig/util'
-
-return {
- default_config = {
- cmd = { 'bazelrc-lsp' },
- filetypes = { 'bazelrc' },
- root_dir = util.root_pattern('WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel'),
- },
- docs = {
- description = [[
-https://github.com/salesforce-misc/bazelrc-lsp
-
-`bazelrc-lsp` is a LSP for `.bazelrc` configuration files.
-
-The `.bazelrc` file type is not detected automatically, you can register it manually (see below) or override the filetypes:
-
-```lua
-vim.filetype.add {
- pattern = {
- ['.*.bazelrc'] = 'bazelrc',
- },
-}
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/beancount.lua b/lua/lspconfig/server_configurations/beancount.lua
deleted file mode 100644
index c1f34653..00000000
--- a/lua/lspconfig/server_configurations/beancount.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'beancount-language-server', '--stdio' },
- filetypes = { 'beancount', 'bean' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- init_options = {},
- },
- 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(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/bicep.lua b/lua/lspconfig/server_configurations/bicep.lua
deleted file mode 100644
index 1ec70323..00000000
--- a/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/lua/lspconfig/server_configurations/biome.lua b/lua/lspconfig/server_configurations/biome.lua
deleted file mode 100644
index 8cb47f9b..00000000
--- a/lua/lspconfig/server_configurations/biome.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'biome', 'lsp-proxy' },
- filetypes = {
- 'javascript',
- 'javascriptreact',
- 'json',
- 'jsonc',
- 'typescript',
- 'typescript.tsx',
- 'typescriptreact',
- 'astro',
- 'svelte',
- 'vue',
- 'css',
- },
- root_dir = util.root_pattern('biome.json', 'biome.jsonc'),
- single_file_support = false,
- },
- docs = {
- description = [[
-https://biomejs.dev
-
-Toolchain of the web. [Successor of Rome](https://biomejs.dev/blog/annoucing-biome).
-
-```sh
-npm install [-g] @biomejs/biome
-```
-]],
- default_config = {
- root_dir = [[root_pattern('biome.json', 'biome.jsonc')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/bitbake_language_server.lua b/lua/lspconfig/server_configurations/bitbake_language_server.lua
deleted file mode 100644
index 726fa85d..00000000
--- a/lua/lspconfig/server_configurations/bitbake_language_server.lua
+++ /dev/null
@@ -1,14 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'bitbake-language-server' },
- filetypes = { 'bitbake' },
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-🛠️ bitbake language server
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/bitbake_ls.lua b/lua/lspconfig/server_configurations/bitbake_ls.lua
deleted file mode 100644
index b540360c..00000000
--- a/lua/lspconfig/server_configurations/bitbake_ls.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'language-server-bitbake', '--stdio' },
- filetypes = { 'bitbake' },
- root_dir = util.find_git_ancestor,
- single_file_support = false,
- },
- docs = {
- description = [[
-https://github.com/yoctoproject/vscode-bitbake/tree/staging/server
-https://www.npmjs.com/package/language-server-bitbake
-
-Official Bitbake Language Server for the Yocto Project.
-
-Can be installed from npm or github.
-
-```
-npm install -g language-server-bitbake
-```
- ]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/blueprint_ls.lua b/lua/lspconfig/server_configurations/blueprint_ls.lua
deleted file mode 100644
index 6e9e6452..00000000
--- a/lua/lspconfig/server_configurations/blueprint_ls.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'blueprint-compiler', 'lsp' },
- 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 '*@(.blp)',
- },
- filetypes = { 'blueprint' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://gitlab.gnome.org/jwestman/blueprint-compiler
-
-`blueprint-compiler` can be installed via your system package manager.
-
-Language server for the blueprint markup language, written in python and part
-of the blueprint-compiler.
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/bqnlsp.lua b/lua/lspconfig/server_configurations/bqnlsp.lua
deleted file mode 100644
index 5d18e996..00000000
--- a/lua/lspconfig/server_configurations/bqnlsp.lua
+++ /dev/null
@@ -1,45 +0,0 @@
-local util = require 'lspconfig.util'
-
--- set os dependent library path
-local function library_path(path, cmd_env)
- path = path or '/usr/local/lib'
- cmd_env = cmd_env or {}
- if vim.fn.has 'macunix' and not cmd_env.DYLD_LIBRARY_PATH then
- cmd_env.DYLD_LIBRARY_PATH = path
- elseif vim.fn.has 'linux' and not cmd_env.LD_LIBRARY_PATH then
- cmd_env.LD_LIBRARY_PATH = path
- end
- return cmd_env
-end
-
-return {
- default_config = {
- cmd = { 'bqnlsp' },
- filetypes = { 'bqn' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- libcbqnPath = nil,
- on_new_config = function(new_config, _)
- if new_config.libcbqnPath then
- new_config.cmd_env = library_path(new_config.libcbqnPath, new_config.cmd_env)
- end
- end,
- },
- docs = {
- description = [[
-https://git.sr.ht/~detegr/bqnlsp
-
-
-`bqnlsp`, a language server for BQN.
-
-The binary depends on the shared library of [CBQN](https://github.com/dzaima/CBQN) `libcbqn.so`.
-If CBQN is installed system-wide (using `sudo make install` in its source directory) and `bqnlsp` errors that it can't find the shared library, update the linker cache by executing `sudo ldconfig`.
-If CBQN has been installed in a non-standard directory or can't be installed globally pass `libcbqnPath = '/path/to/CBQN'` to the setup function.
-This will set the environment variables `LD_LIBRARY_PATH` (Linux) or `DYLD_LIBRARY_PATH` (macOS) to the provided path.
-
- ]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/bright_script.lua b/lua/lspconfig/server_configurations/bright_script.lua
deleted file mode 100644
index 6d4ba823..00000000
--- a/lua/lspconfig/server_configurations/bright_script.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig/util'
-
-return {
- default_config = {
- cmd = { 'bsc', '--lsp', '--stdio' },
- filetypes = { 'brs' },
- single_file_support = true,
- root_dir = util.root_pattern('makefile', 'Makefile', '.git'),
- },
- docs = {
- description = [[
-https://github.com/RokuCommunity/brighterscript
-
-`brightscript` can be installed via `npm`:
-```sh
-npm install -g brighterscript
-```
-]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/bsl_ls.lua b/lua/lspconfig/server_configurations/bsl_ls.lua
deleted file mode 100644
index fef15f92..00000000
--- a/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/lua/lspconfig/server_configurations/buck2.lua b/lua/lspconfig/server_configurations/buck2.lua
deleted file mode 100644
index 134a5627..00000000
--- a/lua/lspconfig/server_configurations/buck2.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'buck2', 'lsp' },
- filetypes = { 'bzl' },
- root_dir = function(fname)
- return util.root_pattern '.buckconfig'(fname)
- end,
- },
- docs = {
- description = [=[
-https://github.com/facebook/buck2
-
-Build system, successor to Buck
-
-To better detect Buck2 project files, the following can be added:
-
-```
-vim.cmd [[ autocmd BufRead,BufNewFile *.bxl,BUCK,TARGETS set filetype=bzl ]]
-```
-]=],
- default_config = {
- root_dir = [[root_pattern(".buckconfig")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/buddy_ls.lua b/lua/lspconfig/server_configurations/buddy_ls.lua
deleted file mode 100644
index 7343dd32..00000000
--- a/lua/lspconfig/server_configurations/buddy_ls.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'buddy-lsp-server' },
- filetypes = { 'mlir' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/buddy-compiler/buddy-mlir#buddy-lsp-server
-The Language Server for the buddy-mlir, a drop-in replacement for mlir-lsp-server,
-supporting new dialects defined in buddy-mlir.
-`buddy-lsp-server` can be installed at the buddy-mlir repository (buddy-compiler/buddy-mlir)
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/bufls.lua b/lua/lspconfig/server_configurations/bufls.lua
deleted file mode 100644
index ba12ddb6..00000000
--- a/lua/lspconfig/server_configurations/bufls.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'bufls', 'serve' },
- filetypes = { 'proto' },
- root_dir = function(fname)
- return util.root_pattern('buf.work.yaml', '.git')(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/bufbuild/buf-language-server
-
-`buf-language-server` can be installed via `go install`:
-```sh
-go install github.com/bufbuild/buf-language-server/cmd/bufls@latest
-```
-
-bufls is a Protobuf language server compatible with Buf modules and workspaces
-]],
- default_config = {
- root_dir = [[root_pattern("buf.work.yaml", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/bzl.lua b/lua/lspconfig/server_configurations/bzl.lua
deleted file mode 100644
index a2200f6d..00000000
--- a/lua/lspconfig/server_configurations/bzl.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'bzl', 'lsp', 'serve' },
- filetypes = { 'bzl' },
- -- https://docs.bazel.build/versions/5.4.1/build-ref.html#workspace
- root_dir = util.root_pattern('WORKSPACE', 'WORKSPACE.bazel'),
- },
- docs = {
- description = [[
-https://bzl.io/
-
-https://docs.stack.build/docs/cli/installation
-
-https://docs.stack.build/docs/vscode/starlark-language-server
-]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/c3_lsp.lua b/lua/lspconfig/server_configurations/c3_lsp.lua
deleted file mode 100644
index ca4ec49c..00000000
--- a/lua/lspconfig/server_configurations/c3_lsp.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'c3lsp' },
- root_dir = function(fname)
- return util.root_pattern { 'project.json', 'manifest.json', '.git' }(fname)
- end,
- filetypes = { 'c3', 'c3i' },
- },
- docs = {
- description = [[
-https://github.com/pherrymason/c3-lsp
-
-Language Server for c3.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/cadence.lua b/lua/lspconfig/server_configurations/cadence.lua
deleted file mode 100644
index 640fe5aa..00000000
--- a/lua/lspconfig/server_configurations/cadence.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'flow', 'cadence', 'language-server' },
- filetypes = { 'cdc' },
- init_options = {
- numberOfAccounts = '1',
- },
- root_dir = function(fname, _)
- return util.root_pattern 'flow.json'(fname) or vim.env.HOME
- end,
- on_new_config = function(new_config, new_root_dir)
- new_config.init_options.configPath = util.path.join(new_root_dir, 'flow.json')
- end,
- },
- docs = {
- description = [[
-[Cadence Language Server](https://github.com/onflow/cadence-tools/tree/master/languageserver)
-using the [flow-cli](https://developers.flow.com/tools/flow-cli).
-
-The `flow` command from flow-cli must be available. For install instructions see
-[the docs](https://developers.flow.com/tools/flow-cli/install#install-the-flow-cli) or the
-[Github page](https://github.com/onflow/flow-cli).
-
-By default the configuration is taken from the closest `flow.json` or the `flow.json` in the users home directory.
-]],
- default_config = {
- root_dir = [[util.root_pattern('flow.json') or vim.env.HOME]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/cairo_ls.lua b/lua/lspconfig/server_configurations/cairo_ls.lua
deleted file mode 100644
index ef6c42b3..00000000
--- a/lua/lspconfig/server_configurations/cairo_ls.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- init_options = { hostInfo = 'neovim' },
- cmd = { 'scarb-cairo-language-server', '/C', '--node-ipc' },
- filetypes = { 'cairo' },
- root_dir = util.root_pattern('Scarb.toml', 'cairo_project.toml', '.git'),
- },
- docs = {
- description = [[
-[Cairo Language Server](https://github.com/starkware-libs/cairo/tree/main/crates/cairo-lang-language-server)
-
-First, install Cairo following [this tutorial](https://book.cairo-lang.org/ch01-01-installation.html)
-
-Then enable Cairo Language Server in your Lua configuration.
-```lua
-require'lspconfig'.cairo_ls.setup{}
-```
-
-*cairo-language-server is still under active development, some features might not work yet !*
-]],
- default_config = {
- root_dir = [[root_pattern("Scarb.toml", "cairo_project.toml", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ccls.lua b/lua/lspconfig/server_configurations/ccls.lua
deleted file mode 100644
index 72977dfa..00000000
--- a/lua/lspconfig/server_configurations/ccls.lua
+++ /dev/null
@@ -1,50 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'compile_commands.json',
- '.ccls',
-}
-
-return {
- default_config = {
- cmd = { 'ccls' },
- filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
- root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname)
- end,
- 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/lua/lspconfig/server_configurations/cds_lsp.lua b/lua/lspconfig/server_configurations/cds_lsp.lua
deleted file mode 100644
index a04876fe..00000000
--- a/lua/lspconfig/server_configurations/cds_lsp.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'package.json',
- 'db',
- 'srv',
-}
-
-return {
- default_config = {
- cmd = { 'cds-lsp', '--stdio' },
- filetypes = { 'cds' },
- -- init_options = { provideFormatter = true }, -- needed to enable formatting capabilities
- root_dir = util.root_pattern(unpack(root_files)),
- single_file_support = true,
- settings = {
- cds = { validate = true },
- },
- },
- docs = {
- description = [[
-
-https://cap.cloud.sap/docs/
-
-`cds-lsp` can be installed via `npm`:
-
-```sh
-npm i -g @sap/cds-lsp
-```
-
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/circom-lsp.lua b/lua/lspconfig/server_configurations/circom-lsp.lua
deleted file mode 100644
index dda5408d..00000000
--- a/lua/lspconfig/server_configurations/circom-lsp.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig/util'
-
-return {
- default_config = {
- cmd = { 'circom-lsp' },
- filetypes = { 'circom' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-[Circom Language Server](https://github.com/rubydusa/circom-lsp)
-
-`circom-lsp`, the language server for the Circom language.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/clangd.lua b/lua/lspconfig/server_configurations/clangd.lua
deleted file mode 100644
index d6cb0295..00000000
--- a/lua/lspconfig/server_configurations/clangd.lua
+++ /dev/null
@@ -1,119 +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 function symbol_info()
- local bufnr = vim.api.nvim_get_current_buf()
- local clangd_client = util.get_active_client_by_name(bufnr, 'clangd')
- if not clangd_client or not clangd_client.supports_method 'textDocument/symbolInfo' then
- return vim.notify('Clangd client not found', vim.log.levels.ERROR)
- end
- local params = vim.lsp.util.make_position_params()
- clangd_client.request('textDocument/symbolInfo', params, function(err, res)
- if err or #res == 0 then
- -- Clangd always returns an error, there is not reason to parse it
- return
- end
- local container = string.format('container: %s', res[1].containerName) ---@type string
- local name = string.format('name: %s', res[1].name) ---@type string
- vim.lsp.util.open_floating_preview({ name, container }, '', {
- height = 2,
- width = math.max(string.len(name), string.len(container)),
- focusable = false,
- focus = false,
- border = require('lspconfig.ui.windows').default_options.border or 'single',
- title = 'Symbol Info',
- })
- end, bufnr)
-end
-
-local root_files = {
- '.clangd',
- '.clang-tidy',
- '.clang-format',
- 'compile_commands.json',
- 'compile_flags.txt',
- 'configure.ac', -- AutoTools
-}
-
-local default_capabilities = {
- textDocument = {
- completion = {
- editsNearCursor = true,
- },
- },
- offsetEncoding = { 'utf-8', 'utf-16' },
-}
-
-return {
- default_config = {
- cmd = { 'clangd' },
- filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda', 'proto' },
- 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',
- },
- ClangdShowSymbolInfo = {
- function()
- symbol_info()
- end,
- description = 'Show symbol info',
- },
- },
- docs = {
- description = [[
-https://clangd.llvm.org/installation.html
-
-- **NOTE:** Clang >= 11 is recommended! See [#23](https://github.com/neovim/nvim-lsp/issues/23).
-- If `compile_commands.json` lives in a build directory, you should
- symlink it to the root of your source tree.
- ```
- ln -s /path/to/myproject/build/compile_commands.json /path/to/myproject/
- ```
-- 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/lua/lspconfig/server_configurations/clarity_lsp.lua b/lua/lspconfig/server_configurations/clarity_lsp.lua
deleted file mode 100644
index 72a61972..00000000
--- a/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/lua/lspconfig/server_configurations/clojure_lsp.lua b/lua/lspconfig/server_configurations/clojure_lsp.lua
deleted file mode 100644
index 45b1dd69..00000000
--- a/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', 'bb.edn'),
- },
- docs = {
- description = [[
-https://github.com/clojure-lsp/clojure-lsp
-
-Clojure Language Server
-]],
- default_config = {
- root_dir = [[root_pattern("project.clj", "deps.edn", "build.boot", "shadow-cljs.edn", ".git", "bb.edn")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/cmake.lua b/lua/lspconfig/server_configurations/cmake.lua
deleted file mode 100644
index 7f27fea0..00000000
--- a/lua/lspconfig/server_configurations/cmake.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = { 'CMakePresets.json', 'CTestConfig.cmake', '.git', 'build', 'cmake' }
-return {
- default_config = {
- cmd = { 'cmake-language-server' },
- filetypes = { 'cmake' },
- root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(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('CMakePresets.json', 'CTestConfig.cmake', '.git', 'build', 'cmake')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/cobol_ls.lua b/lua/lspconfig/server_configurations/cobol_ls.lua
deleted file mode 100644
index 867271b9..00000000
--- a/lua/lspconfig/server_configurations/cobol_ls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'cobol-language-support' },
- filetypes = { 'cobol' },
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-Cobol language support
- ]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/codeqlls.lua b/lua/lspconfig/server_configurations/codeqlls.lua
deleted file mode 100644
index 695041e4..00000000
--- a/lua/lspconfig/server_configurations/codeqlls.lua
+++ /dev/null
@@ -1,48 +0,0 @@
-local util = require 'lspconfig.util'
-
-local workspace_folders = {}
-
-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)
- table.insert(workspace_folders, { name = 'workspace', uri = initialize_params['rootUri'] })
- initialize_params['workspaceFolders'] = workspace_folders
- end,
- settings = {
- search_path = vim.empty_dict(),
- },
- },
- docs = {
- description = [[
-Reference:
-https://codeql.github.com/docs/codeql-cli/
-
-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) .. ':'
- table.insert(workspace_folders, {
- name = 'workspace',
- uri = string.format('file://%s', 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/lua/lspconfig/server_configurations/coffeesense.lua b/lua/lspconfig/server_configurations/coffeesense.lua
deleted file mode 100644
index f5b75a86..00000000
--- a/lua/lspconfig/server_configurations/coffeesense.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'coffeesense-language-server', '--stdio' },
- filetypes = { 'coffee' },
- root_dir = util.root_pattern 'package.json',
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/phil294/coffeesense
-
-CoffeeSense Language Server
-`coffeesense-language-server` can be installed via `npm`:
-```sh
-npm install -g coffeesense-language-server
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/contextive.lua b/lua/lspconfig/server_configurations/contextive.lua
deleted file mode 100644
index b05309d8..00000000
--- a/lua/lspconfig/server_configurations/contextive.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'Contextive.LanguageServer' },
- root_dir = util.root_pattern('.contextive', '.git'),
- },
- docs = {
- description = [[
-https://github.com/dev-cycles/contextive
-
-Language Server for Contextive.
-
-Contextive allows you to define terms in a central file and provides auto-completion suggestions and hover panels for these terms wherever they're used.
-
-To install the language server, you need to download the appropriate [GitHub release asset](https://github.com/dev-cycles/contextive/releases/) for your operating system and architecture.
-
-After the download unzip the Contextive.LanguageServer binary and copy the file into a folder that is included in your system's PATH.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/coq_lsp.lua b/lua/lspconfig/server_configurations/coq_lsp.lua
deleted file mode 100644
index aa492d4a..00000000
--- a/lua/lspconfig/server_configurations/coq_lsp.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'coq-lsp' },
- filetypes = { 'coq' },
- root_dir = function(fname)
- return util.root_pattern '_CoqProject'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/ejgallego/coq-lsp/
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/crystalline.lua b/lua/lspconfig/server_configurations/crystalline.lua
deleted file mode 100644
index ef4d6bca..00000000
--- a/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/lua/lspconfig/server_configurations/csharp_ls.lua b/lua/lspconfig/server_configurations/csharp_ls.lua
deleted file mode 100644
index 131862fb..00000000
--- a/lua/lspconfig/server_configurations/csharp_ls.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'csharp-ls' },
- root_dir = function(fname)
- return util.root_pattern '*.sln'(fname) or util.root_pattern '*.csproj'(fname)
- end,
- 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/lua/lspconfig/server_configurations/css_variables.lua b/lua/lspconfig/server_configurations/css_variables.lua
deleted file mode 100644
index dd9257dd..00000000
--- a/lua/lspconfig/server_configurations/css_variables.lua
+++ /dev/null
@@ -1,65 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'css-variables-language-server', '--stdio' },
- filetypes = { 'css', 'scss', 'less' },
- root_dir = util.root_pattern('package.json', '.git'),
- -- Same as inlined defaults that don't seem to work without hardcoding them in the lua config
- -- https://github.com/vunguyentuan/vscode-css-variables/blob/763a564df763f17aceb5f3d6070e0b444a2f47ff/packages/css-variables-language-server/src/CSSVariableManager.ts#L31-L50
- settings = {
- cssVariables = {
- lookupFiles = { '**/*.less', '**/*.scss', '**/*.sass', '**/*.css' },
- blacklistFolders = {
- '**/.cache',
- '**/.DS_Store',
- '**/.git',
- '**/.hg',
- '**/.next',
- '**/.svn',
- '**/bower_components',
- '**/CVS',
- '**/dist',
- '**/node_modules',
- '**/tests',
- '**/tmp',
- },
- },
- },
- },
- docs = {
- description = [[
-https://github.com/vunguyentuan/vscode-css-variables/tree/master/packages/css-variables-language-server
-
-CSS variables autocompletion and go-to-definition
-
-`css-variables-language-server` can be installed via `npm`:
-
-```sh
-npm i -g css-variables-language-server
-```
-]],
- default_config = {
- root_dir = [[root_pattern("package.json", ".git") or bufdir]],
- settings = [[
-cssVariables = {
- lookupFiles = { '**/*.less', '**/*.scss', '**/*.sass', '**/*.css' },
- blacklistFolders = {
- '**/.cache',
- '**/.DS_Store',
- '**/.git',
- '**/.hg',
- '**/.next',
- '**/.svn',
- '**/bower_components',
- '**/CVS',
- '**/dist',
- '**/node_modules',
- '**/tests',
- '**/tmp',
- },
-},
- ]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/cssls.lua b/lua/lspconfig/server_configurations/cssls.lua
deleted file mode 100644
index ac8e6a1e..00000000
--- a/lua/lspconfig/server_configurations/cssls.lua
+++ /dev/null
@@ -1,43 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vscode-css-language-server', '--stdio' },
- filetypes = { 'css', 'scss', 'less' },
- init_options = { provideFormatter = true }, -- needed to enable formatting capabilities
- 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/lua/lspconfig/server_configurations/cssmodules_ls.lua b/lua/lspconfig/server_configurations/cssmodules_ls.lua
deleted file mode 100644
index d7f5e3d0..00000000
--- a/lua/lspconfig/server_configurations/cssmodules_ls.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'cssmodules-language-server' },
- 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/lua/lspconfig/server_configurations/cucumber_language_server.lua b/lua/lspconfig/server_configurations/cucumber_language_server.lua
deleted file mode 100644
index 1fb4b8a0..00000000
--- a/lua/lspconfig/server_configurations/cucumber_language_server.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'cucumber-language-server', '--stdio' },
- 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/lua/lspconfig/server_configurations/custom_elements_ls.lua b/lua/lspconfig/server_configurations/custom_elements_ls.lua
deleted file mode 100644
index e71d7f8b..00000000
--- a/lua/lspconfig/server_configurations/custom_elements_ls.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- init_options = { hostInfo = 'neovim' },
- cmd = { 'custom-elements-languageserver', '--stdio' },
- root_dir = util.root_pattern('tsconfig.json', 'package.json', 'jsconfig.json', '.git'),
- },
- docs = {
- description = [[
-https://github.com/Matsuuu/custom-elements-language-server
-
-`custom-elements-languageserver` depends on `typescript`. Both packages can be installed via `npm`:
-```sh
-npm install -g typescript custom-elements-languageserver
-```
-To configure typescript 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("tsconfig.json", "package.json", "jsconfig.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/cypher_ls.lua b/lua/lspconfig/server_configurations/cypher_ls.lua
deleted file mode 100644
index 7c0cf2cf..00000000
--- a/lua/lspconfig/server_configurations/cypher_ls.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'cypher-language-server', '--stdio' },
- filetypes = { 'cypher' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/neo4j/cypher-language-support/tree/main/packages/language-server
-
-`cypher-language-server`, language server for Cypher query language.
-Part of the umbrella project cypher-language-support: https://github.com/neo4j/cypher-language-support
-
-`cypher-language-server` can be installed via `npm`:
-```sh
-npm i -g @neo4j-cypher/language-server
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/daedalus_ls.lua b/lua/lspconfig/server_configurations/daedalus_ls.lua
deleted file mode 100644
index db3dc3ba..00000000
--- a/lua/lspconfig/server_configurations/daedalus_ls.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'Gothic.src',
- 'Camera.src',
- 'Menu.src',
- 'Music.src',
- 'ParticleFX.src',
- 'SFX.src',
- 'VisualFX.src',
-}
-
-return {
- default_config = {
- cmd = { 'DaedalusLanguageServer' },
- filetypes = { 'd' },
- root_dir = util.root_pattern(unpack(root_files)),
- settings = {
- DaedalusLanguageServer = {
- loglevel = 'debug',
- inlayHints = { constants = true },
- numParserThreads = 16,
- fileEncoding = 'Windows-1252',
- srcFileEncoding = 'Windows-1252',
- },
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/dafny.lua b/lua/lspconfig/server_configurations/dafny.lua
deleted file mode 100644
index be5e72b3..00000000
--- a/lua/lspconfig/server_configurations/dafny.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'dafny', 'server' },
- filetypes = { 'dfy', 'dafny' },
- root_dir = function(fname)
- util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
- Support for the Dafny language server.
-
- The default `cmd` uses "dafny server", which works on Dafny 4.0.0+. For
- older versions of Dafny, you can compile the language server from source at
- [dafny-lang/language-server-csharp](https://github.com/dafny-lang/language-server-csharp)
- and set `cmd = {"dotnet", "<Path to your language server>"}`.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/dagger.lua b/lua/lspconfig/server_configurations/dagger.lua
deleted file mode 100644
index 734249fa..00000000
--- a/lua/lspconfig/server_configurations/dagger.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'cuelsp' },
- filetypes = { 'cue' },
- root_dir = function(fname)
- return util.root_pattern('cue.mod', '.git')(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/dagger/cuelsp
-
-Dagger's lsp server for cuelang.
-]],
- default_config = {
- root_dir = [[root_pattern("cue.mod", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/dartls.lua b/lua/lspconfig/server_configurations/dartls.lua
deleted file mode 100644
index 83eda99f..00000000
--- a/lua/lspconfig/server_configurations/dartls.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'dart', 'language-server', '--protocol=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/lua/lspconfig/server_configurations/dcmls.lua b/lua/lspconfig/server_configurations/dcmls.lua
deleted file mode 100644
index 96674719..00000000
--- a/lua/lspconfig/server_configurations/dcmls.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'dcm', 'start-server', '--client=neovim' },
- filetypes = { 'dart' },
- root_dir = util.root_pattern 'pubspec.yaml',
- },
- docs = {
- description = [[
-https://dcm.dev/
-
-Language server for DCM analyzer.
-]],
- default_config = {
- root_dir = [[root_pattern("pubspec.yaml")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/debputy.lua b/lua/lspconfig/server_configurations/debputy.lua
deleted file mode 100644
index eac358d2..00000000
--- a/lua/lspconfig/server_configurations/debputy.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'debputy', 'lsp', 'server' },
- filetypes = { 'debcontrol', 'debcopyright', 'debchangelog', 'make', 'yaml' },
- root_dir = util.root_pattern 'debian',
- },
- docs = {
- description = [[
-https://salsa.debian.org/debian/debputy
-
-Language Server for Debian packages.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/delphi_ls.lua b/lua/lspconfig/server_configurations/delphi_ls.lua
deleted file mode 100644
index bd02d6fa..00000000
--- a/lua/lspconfig/server_configurations/delphi_ls.lua
+++ /dev/null
@@ -1,49 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'DelphiLSP.exe' },
- filetypes = { 'pascal' },
- root_dir = util.root_pattern '*.dpr',
- single_file_support = false,
- },
- docs = {
- description = [[
-Language server for Delphi from Embarcadero.
-https://marketplace.visualstudio.com/items?itemName=EmbarcaderoTechnologies.delphilsp
-
-Note, the '*.delphilsp.json' file is required, more details at:
-https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Using_DelphiLSP_Code_Insight_with_Other_Editors
-
-Below, you'll find a sample configuration for the lazy manager.
-When on_attach is triggered, it signals DelphiLSP to load settings from a configuration file.
-Without this step, DelphiLSP initializes but remains non-functional:
-
-```lua
-"neovim/nvim-lspconfig",
-lazy = false,
-config = function()
- local capabilities = require("cmp_nvim_lsp").default_capabilities()
- local lspconfig = require("lspconfig")
-
- lspconfig.delphi_ls.setup({
- capabilities = capabilities,
-
- on_attach = function(client)
- local lsp_config = vim.fs.find(function(name)
- return name:match(".*%.delphilsp.json$")
- end, { type = "file", path = client.config.root_dir, upward = false })[1]
-
- if lsp_config then
- client.config.settings = { settingsFile = lsp_config }
- client.notify("workspace/didChangeConfiguration", { settings = client.config.settings })
- else
- vim.notify_once("delphi_ls: '*.delphilsp.json' config file not found")
- end
- end,
- })
-end,
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/denols.lua b/lua/lspconfig/server_configurations/denols.lua
deleted file mode 100644
index 81bc1e6f..00000000
--- a/lua/lspconfig/server_configurations/denols.lua
+++ /dev/null
@@ -1,127 +0,0 @@
-local util = require 'lspconfig.util'
-local lsp = vim.lsp
-
-local function buf_cache(bufnr, client)
- local params = {
- command = 'deno.cache',
- arguments = { {}, vim.uri_from_bufnr(bufnr) },
- }
- client.request('workspace/executeCommand', params, function(err, _result, ctx)
- if err then
- local uri = ctx.params.arguments[2]
- vim.api.nvim_err_writeln('cache command failed for ' .. vim.uri_to_fname(uri))
- end
- end, bufnr)
-end
-
-local function virtual_text_document_handler(uri, res, client)
- if not res then
- return nil
- end
-
- 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, false, lines)
- vim.api.nvim_set_option_value('readonly', true, { buf = bufnr })
- vim.api.nvim_set_option_value('modified', false, { buf = bufnr })
- vim.api.nvim_set_option_value('modifiable', false, { buf = bufnr })
- lsp.buf_attach_client(bufnr, client.id)
-end
-
-local function virtual_text_document(uri, client)
- local params = {
- textDocument = {
- uri = uri,
- },
- }
- local result = client.request_sync('deno/virtualTextDocument', params)
- virtual_text_document_handler(uri, result, client)
-end
-
-local function denols_handler(err, result, ctx, config)
- if not result or vim.tbl_isempty(result) then
- return nil
- end
-
- local client = vim.lsp.get_client_by_id(ctx.client_id)
- for _, res in pairs(result) do
- local uri = res.uri or res.targetUri
- if uri:match '^deno:' then
- virtual_text_document(uri, client)
- res['uri'] = uri
- res['targetUri'] = uri
- end
- end
-
- lsp.handlers[ctx.method](err, result, ctx, config)
-end
-
-return {
- default_config = {
- cmd = { 'deno', 'lsp' },
- cmd_env = { NO_COLOR = true },
- filetypes = {
- 'javascript',
- 'javascriptreact',
- 'javascript.jsx',
- 'typescript',
- 'typescriptreact',
- 'typescript.tsx',
- },
- root_dir = util.root_pattern('deno.json', 'deno.jsonc', '.git'),
- settings = {
- deno = {
- enable = true,
- suggest = {
- imports = {
- hosts = {
- ['https://deno.land'] = true,
- },
- },
- },
- },
- },
- handlers = {
- ['textDocument/definition'] = denols_handler,
- ['textDocument/typeDefinition'] = denols_handler,
- ['textDocument/references'] = denols_handler,
- },
- },
- commands = {
- DenolsCache = {
- function()
- local clients = util.get_lsp_clients { bufnr = 0, name = 'denols' }
- if #clients > 0 then
- buf_cache(0, clients[#clients])
- end
- end,
- description = 'Cache a module and all of its dependencies.',
- },
- },
- docs = {
- description = [[
-https://github.com/denoland/deno
-
-Deno's built-in language server
-
-To appropriately 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", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/dhall_lsp_server.lua b/lua/lspconfig/server_configurations/dhall_lsp_server.lua
deleted file mode 100644
index af910f36..00000000
--- a/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/lua/lspconfig/server_configurations/diagnosticls.lua b/lua/lspconfig/server_configurations/diagnosticls.lua
deleted file mode 100644
index 6fdba0fc..00000000
--- a/lua/lspconfig/server_configurations/diagnosticls.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'diagnostic-languageserver', '--stdio' },
- 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/lua/lspconfig/server_configurations/digestif.lua b/lua/lspconfig/server_configurations/digestif.lua
deleted file mode 100644
index f89ba63d..00000000
--- a/lua/lspconfig/server_configurations/digestif.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'digestif' },
- filetypes = { 'tex', 'plaintex', 'context' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/astoff/digestif
-
-Digestif is a code analyzer, and a language server, for LaTeX, ConTeXt et caterva. It provides
-
-context-sensitive completion, documentation, code navigation, and related functionality to any
-
-text editor that speaks the LSP protocol.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/djlsp.lua b/lua/lspconfig/server_configurations/djlsp.lua
deleted file mode 100644
index 181cb030..00000000
--- a/lua/lspconfig/server_configurations/djlsp.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'djlsp' },
- filetypes = { 'html', 'htmldjango' },
- root_dir = util.find_git_ancestor,
- settings = {},
- },
- docs = {
- description = [[
- https://github.com/fourdigits/django-template-lsp
-
- `djlsp`, a language server for Django templates.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/docker_compose_language_service.lua b/lua/lspconfig/server_configurations/docker_compose_language_service.lua
deleted file mode 100644
index 9a92297d..00000000
--- a/lua/lspconfig/server_configurations/docker_compose_language_service.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'docker-compose-langserver', '--stdio' },
- filetypes = { 'yaml.docker-compose' },
- root_dir = util.root_pattern('docker-compose.yaml', 'docker-compose.yml', 'compose.yaml', 'compose.yml'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/microsoft/compose-language-service
-This project contains a language service for Docker Compose.
-
-`compose-language-service` can be installed via `npm`:
-
-```sh
-npm install @microsoft/compose-language-service
-```
-
-Note: If the docker-compose-langserver doesn't startup when entering a `docker-compose.yaml` file, make sure that the filetype is `yaml.docker-compose`. You can set with: `:set filetype=yaml.docker-compose`.
-]],
- default_config = {
- root_dir = [[root_pattern("docker-compose.yaml", "docker-compose.yml", "compose.yaml", "compose.yml")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/dockerls.lua b/lua/lspconfig/server_configurations/dockerls.lua
deleted file mode 100644
index dde050ba..00000000
--- a/lua/lspconfig/server_configurations/dockerls.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'docker-langserver', '--stdio' },
- 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
-```
-
-Additional configuration can be applied in the following way:
-```lua
-require("lspconfig").dockerls.setup {
- settings = {
- docker = {
- languageserver = {
- formatter = {
- ignoreMultilineInstructions = true,
- },
- },
- }
- }
-}
-```
- ]],
- default_config = {
- root_dir = [[root_pattern("Dockerfile")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/dolmenls.lua b/lua/lspconfig/server_configurations/dolmenls.lua
deleted file mode 100644
index 1f0657e1..00000000
--- a/lua/lspconfig/server_configurations/dolmenls.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'dolmenls' },
- filetypes = { 'smt2', 'tptp', 'p', 'cnf', 'icnf', 'zf' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/Gbury/dolmen/blob/master/doc/lsp.md
-
-`dolmenls` can be installed via `opam`
-```sh
-opam install dolmen_lsp
-```
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/dotls.lua b/lua/lspconfig/server_configurations/dotls.lua
deleted file mode 100644
index 479f4306..00000000
--- a/lua/lspconfig/server_configurations/dotls.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'dot-language-server', '--stdio' },
- 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/lua/lspconfig/server_configurations/dprint.lua b/lua/lspconfig/server_configurations/dprint.lua
deleted file mode 100644
index 7ef0fad2..00000000
--- a/lua/lspconfig/server_configurations/dprint.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'dprint', 'lsp' },
- filetypes = {
- 'javascript',
- 'javascriptreact',
- 'typescript',
- 'typescriptreact',
- 'json',
- 'jsonc',
- 'markdown',
- 'python',
- 'toml',
- 'rust',
- 'roslyn',
- },
- root_dir = util.root_pattern('dprint.json', '.dprint.json', 'dprint.jsonc', '.dprint.jsonc'),
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/dprint/dprint
-
-Pluggable and configurable code formatting platform written in Rust.
- ]],
- default_config = {
- root_dir = util.root_pattern('dprint.json', '.dprint.json', 'dprint.jsonc', '.dprint.jsonc'),
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/drools_lsp.lua b/lua/lspconfig/server_configurations/drools_lsp.lua
deleted file mode 100644
index d5dd3cc0..00000000
--- a/lua/lspconfig/server_configurations/drools_lsp.lua
+++ /dev/null
@@ -1,81 +0,0 @@
-local util = require 'lspconfig.util'
-
-local function get_java_bin(config)
- local java_bin = vim.tbl_get(config, 'drools', 'java', 'bin')
- if not java_bin then
- java_bin = vim.env.JAVA_HOME and util.path.join(vim.env.JAVA_HOME, 'bin', 'java') or 'java'
- if vim.fn.has 'win32' == 1 then
- java_bin = java_bin .. '.exe'
- end
- end
- return java_bin
-end
-
-local function get_java_opts(config)
- local java_opts = vim.tbl_get(config, 'drools', 'java', 'opts')
- return java_opts and java_opts or {}
-end
-
-local function get_jar(config)
- local jar = vim.tbl_get(config, 'drools', 'jar')
- return jar and jar or 'drools-lsp-server-jar-with-dependencies.jar'
-end
-
-local function get_cmd(config)
- local cmd = vim.tbl_get(config, 'cmd')
- if not cmd then
- cmd = { get_java_bin(config) }
- for _, o in ipairs(get_java_opts(config)) do
- table.insert(cmd, o)
- end
- ---@diagnostic disable-next-line:missing-parameter
- vim.list_extend(cmd, { '-jar', get_jar(config) })
- end
- return cmd
-end
-
-return {
- default_config = {
- filetypes = { 'drools' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- on_new_config = function(new_config)
- new_config.cmd = get_cmd(new_config)
- end,
- },
- docs = {
- description = [=[
-https://github.com/kiegroup/drools-lsp
-
-Language server for the [Drools Rule Language (DRL)](https://docs.drools.org/latest/drools-docs/docs-website/drools/language-reference/#con-drl_drl-rules).
-
-The `drools-lsp` server is a self-contained java jar file (`drools-lsp-server-jar-with-dependencies.jar`), and can be downloaded from [https://github.com/kiegroup/drools-lsp/releases/](https://github.com/kiegroup/drools-lsp/releases/).
-
-Configuration information:
-```lua
--- Option 1) Specify the entire command:
-require('lspconfig').drools_lsp.setup {
- cmd = { '/path/to/java', '-jar', '/path/to/drools-lsp-server-jar-with-dependencies.jar' },
-}
-
--- Option 2) Specify just the jar path (the JAVA_HOME environment variable will be respected if present):
-require('lspconfig').drools_lsp.setup {
- drools = { jar = '/path/to/drools-lsp-server-jar-with-dependencies.jar' },
-}
-
--- Option 3) Specify the java bin and/or java opts in addition to the jar path:
-require('lspconfig').drools_lsp.setup {
- drools = {
- java = { bin = '/path/to/java', opts = { '-Xmx100m' } },
- jar = '/path/to/drools-lsp-server-jar-with-dependencies.jar',
- },
-}
-```
-
-Neovim does not yet have automatic detection for the `drools` filetype, but it can be added with:
-```lua
-vim.cmd [[ autocmd BufNewFile,BufRead *.drl set filetype=drools ]]
-```
-]=],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ds_pinyin_lsp.lua b/lua/lspconfig/server_configurations/ds_pinyin_lsp.lua
deleted file mode 100644
index bc1d7ac8..00000000
--- a/lua/lspconfig/server_configurations/ds_pinyin_lsp.lua
+++ /dev/null
@@ -1,80 +0,0 @@
-local util = require 'lspconfig.util'
-
-local bin_name = 'ds-pinyin-lsp'
-if vim.fn.has 'win32' == 1 then
- bin_name = bin_name .. '.exe'
-end
-
-local function ds_pinyin_lsp_off(bufnr)
- bufnr = util.validate_bufnr(bufnr)
- local ds_pinyin_lsp_client = util.get_active_client_by_name(bufnr, 'ds_pinyin_lsp')
- if ds_pinyin_lsp_client then
- ds_pinyin_lsp_client.notify('$/turn/completion', {
- ['completion_on'] = false,
- })
- else
- vim.notify 'notification $/turn/completion is not supported by any servers active on the current buffer'
- end
-end
-
-local function ds_pinyin_lsp_on(bufnr)
- bufnr = util.validate_bufnr(bufnr)
- local ds_pinyin_lsp_client = util.get_active_client_by_name(bufnr, 'ds_pinyin_lsp')
- if ds_pinyin_lsp_client then
- ds_pinyin_lsp_client.notify('$/turn/completion', {
- ['completion_on'] = true,
- })
- else
- vim.notify 'notification $/turn/completion is not supported by any servers active on the current buffer'
- end
-end
-
-return {
- default_config = {
- cmd = { bin_name },
- filetypes = { 'markdown', 'org' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- init_options = {
- completion_on = true,
- show_symbols = true,
- show_symbols_only_follow_by_hanzi = false,
- show_symbols_by_n_times = 0,
- match_as_same_as_input = true,
- match_long_input = true,
- max_suggest = 15,
- },
- },
- commands = {
- DsPinyinCompletionOff = {
- function()
- ds_pinyin_lsp_off(0)
- end,
- description = 'Turn off the ds-pinyin-lsp completion',
- },
- DsPinyinCompletionOn = {
- function()
- ds_pinyin_lsp_on(0)
- end,
- description = 'Turn on the ds-pinyin-lsp completion',
- },
- },
- docs = {
- description = [=[
-https://github.com/iamcco/ds-pinyin-lsp
-Dead simple Pinyin language server for input Chinese without IME(input method).
-To install, download the latest [release](https://github.com/iamcco/ds-pinyin-lsp/releases) and ensure `ds-pinyin-lsp` is on your path.
-And make ensure the database file `dict.db3` is also downloaded. And put the path to `dict.dbs` in the following code.
-
-```lua
-
-require('lspconfig').ds_pinyin_lsp.setup {
- init_options = {
- db_path = "your_path_to_database"
- }
-}
-
-```
-]=],
- },
-}
diff --git a/lua/lspconfig/server_configurations/earthlyls.lua b/lua/lspconfig/server_configurations/earthlyls.lua
deleted file mode 100644
index 5b843eb1..00000000
--- a/lua/lspconfig/server_configurations/earthlyls.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local util = require 'lspconfig/util'
-
-return {
- default_config = {
- cmd = { 'earthlyls' },
- filetypes = { 'earthfile' },
- root_dir = util.root_pattern 'Earthfile',
- },
- docs = {
- description = [[
-https://github.com/glehmann/earthlyls
-
-A fast language server for earthly.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ecsact.lua b/lua/lspconfig/server_configurations/ecsact.lua
deleted file mode 100644
index e8eaa984..00000000
--- a/lua/lspconfig/server_configurations/ecsact.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ecsact_lsp_server', '--stdio' },
- filetypes = { 'ecsact' },
- root_dir = util.root_pattern '.git',
- single_file_support = true,
- },
-
- docs = {
- description = [[
-https://github.com/ecsact-dev/ecsact_lsp_server
-
-Language server for Ecsact.
-
-The default cmd assumes `ecsact_lsp_server` is in your PATH. Typically from the
-Ecsact SDK: https://ecsact.dev/start
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/efm.lua b/lua/lspconfig/server_configurations/efm.lua
deleted file mode 100644
index f5f74edc..00000000
--- a/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/lua/lspconfig/server_configurations/elixirls.lua b/lua/lspconfig/server_configurations/elixirls.lua
deleted file mode 100644
index 3172f6a8..00000000
--- a/lua/lspconfig/server_configurations/elixirls.lua
+++ /dev/null
@@ -1,44 +0,0 @@
-return {
- default_config = {
- filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
- root_dir = function(fname)
- local matches = vim.fs.find({ 'mix.exs' }, { upward = true, limit = 2, path = fname })
- local child_or_root_path, maybe_umbrella_path = unpack(matches)
- local root_dir = vim.fs.dirname(maybe_umbrella_path or child_or_root_path)
-
- return root_dir
- end,
- single_file_support = true,
- },
- 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" };
- ...
-}
-```
-
-'root_dir' is chosen like this: if two or more directories containing `mix.exs` were found when searching directories upward, the second one (higher up) is chosen, with the assumption that it is the root of an umbrella app. Otherwise the directory containing the single mix.exs that was found is chosen.
-]],
- default_config = {
- root_dir = '{{see description above}}',
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/elmls.lua b/lua/lspconfig/server_configurations/elmls.lua
deleted file mode 100644
index e3e63bcd..00000000
--- a/lua/lspconfig/server_configurations/elmls.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-local util = require 'lspconfig.util'
-local api = vim.api
-
-local elm_root_pattern = util.root_pattern 'elm.json'
-
-return {
- default_config = {
- cmd = { 'elm-language-server' },
- -- 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 = {
- elmReviewDiagnostics = 'off', -- 'off' | 'warning' | 'error'
- skipInstallPackageConfirmation = false,
- disableElmLSDiagnostics = false,
- onlyUpdateDiagnosticsOnSave = false,
- },
- capabilities = {
- offsetEncoding = { 'utf-8', 'utf-16' },
- },
- },
- 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/lua/lspconfig/server_configurations/elp.lua b/lua/lspconfig/server_configurations/elp.lua
deleted file mode 100644
index 00678a5d..00000000
--- a/lua/lspconfig/server_configurations/elp.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'elp', 'server' },
- filetypes = { 'erlang' },
- root_dir = util.root_pattern('rebar.config', 'erlang.mk', '.git'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://whatsapp.github.io/erlang-language-platform
-
-ELP integrates Erlang into modern IDEs via the language server protocol and was
-inspired by rust-analyzer.
-]],
- default_config = {
- root_dir = [[root_pattern('rebar.config', 'erlang.mk', '.git')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ember.lua b/lua/lspconfig/server_configurations/ember.lua
deleted file mode 100644
index 7702bd76..00000000
--- a/lua/lspconfig/server_configurations/ember.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ember-language-server', '--stdio' },
- filetypes = { 'handlebars', 'typescript', 'javascript', 'typescript.glimmer', 'javascript.glimmer' },
- root_dir = util.root_pattern('ember-cli-build.js', '.git'),
- },
- docs = {
- description = [[
-https://github.com/ember-tooling/ember-language-server
-
-`ember-language-server` can be installed via `npm`:
-
-```sh
-npm install -g @ember-tooling/ember-language-server
-```
-]],
- default_config = {
- root_dir = [[root_pattern("ember-cli-build.js", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/emmet_language_server.lua b/lua/lspconfig/server_configurations/emmet_language_server.lua
deleted file mode 100644
index fe0a0240..00000000
--- a/lua/lspconfig/server_configurations/emmet_language_server.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'emmet-language-server', '--stdio' },
- filetypes = {
- 'css',
- 'eruby',
- 'html',
- 'htmldjango',
- 'javascriptreact',
- 'less',
- 'pug',
- 'sass',
- 'scss',
- 'typescriptreact',
- 'htmlangular',
- },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/olrtg/emmet-language-server
-
-Package can be installed via `npm`:
-```sh
-npm install -g @olrtg/emmet-language-server
-```
-]],
- default_config = {
- root_dir = 'git root',
- single_file_support = true,
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/emmet_ls.lua b/lua/lspconfig/server_configurations/emmet_ls.lua
deleted file mode 100644
index df2ef114..00000000
--- a/lua/lspconfig/server_configurations/emmet_ls.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'emmet-ls', '--stdio' },
- filetypes = {
- 'astro',
- 'css',
- 'eruby',
- 'html',
- 'htmldjango',
- 'javascriptreact',
- 'less',
- 'pug',
- 'sass',
- 'scss',
- 'svelte',
- 'typescriptreact',
- 'vue',
- 'htmlangular',
- },
- 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/lua/lspconfig/server_configurations/erg_language_server.lua b/lua/lspconfig/server_configurations/erg_language_server.lua
deleted file mode 100644
index 9b198a8e..00000000
--- a/lua/lspconfig/server_configurations/erg_language_server.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'erg', '--language-server' },
- filetypes = { 'erg' },
- root_dir = function(fname)
- return util.root_pattern 'package.er'(fname) or util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/erg-lang/erg#flags ELS
-
-ELS (erg-language-server) is a language server for the Erg programming language.
-
-erg-language-server can be installed via `cargo` and used as follows:
- ```sh
- cargo install erg --features els
- erg --language-server
- ```
- ]],
- default_config = {
- root_dir = [[root_pattern("package.er") or find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/erlangls.lua b/lua/lspconfig/server_configurations/erlangls.lua
deleted file mode 100644
index e2467f21..00000000
--- a/lua/lspconfig/server_configurations/erlangls.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'erlang_ls' },
- 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/lua/lspconfig/server_configurations/esbonio.lua b/lua/lspconfig/server_configurations/esbonio.lua
deleted file mode 100644
index ff13473f..00000000
--- a/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://docs.esbon.io/en/esbonio-language-server-v0.16.4/lsp/getting-started.html?editor=neovim-lspconfig#configuration)
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/eslint.lua b/lua/lspconfig/server_configurations/eslint.lua
deleted file mode 100644
index c52f8278..00000000
--- a/lua/lspconfig/server_configurations/eslint.lua
+++ /dev/null
@@ -1,202 +0,0 @@
-local util = require 'lspconfig.util'
-local lsp = vim.lsp
-
-local function fix_all(opts)
- opts = opts or {}
-
- local eslint_lsp_client = util.get_active_client_by_name(opts.bufnr, 'eslint')
- 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 root_file = {
- '.eslintrc',
- '.eslintrc.js',
- '.eslintrc.cjs',
- '.eslintrc.yaml',
- '.eslintrc.yml',
- '.eslintrc.json',
- 'eslint.config.js',
- 'eslint.config.mjs',
- 'eslint.config.cjs',
- 'eslint.config.ts',
- 'eslint.config.mts',
- 'eslint.config.cts',
-}
-
-return {
- default_config = {
- cmd = { 'vscode-eslint-language-server', '--stdio' },
- filetypes = {
- 'javascript',
- 'javascriptreact',
- 'javascript.jsx',
- 'typescript',
- 'typescriptreact',
- 'typescript.tsx',
- 'vue',
- 'svelte',
- 'astro',
- },
- -- https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-file-formats
- root_dir = function(fname)
- root_file = util.insert_package_json(root_file, 'eslintConfig', fname)
- return util.root_pattern(unpack(root_file))(fname)
- end,
- -- Refer to https://github.com/Microsoft/vscode-eslint#settings-options for documentation.
- settings = {
- validate = 'on',
- packageManager = nil,
- useESLintClass = false,
- experimental = {
- useFlatConfig = false,
- },
- codeActionOnSave = {
- enable = false,
- mode = 'all',
- },
- format = true,
- quiet = false,
- onIgnoredFiles = 'off',
- rulesCustomizations = {},
- run = 'onType',
- problems = {
- shortenToSingleLine = false,
- },
- -- 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'),
- }
-
- -- Support flat config
- if
- vim.fn.filereadable(new_root_dir .. '/eslint.config.js') == 1
- or vim.fn.filereadable(new_root_dir .. '/eslint.config.mjs') == 1
- or vim.fn.filereadable(new_root_dir .. '/eslint.config.cjs') == 1
- or vim.fn.filereadable(new_root_dir .. '/eslint.config.ts') == 1
- or vim.fn.filereadable(new_root_dir .. '/eslint.config.mts') == 1
- or vim.fn.filereadable(new_root_dir .. '/eslint.config.cts') == 1
- then
- config.settings.experimental.useFlatConfig = true
- end
-
- -- Support Yarn2 (PnP) projects
- local pnp_cjs = util.path.join(new_root_dir, '.pnp.cjs')
- local pnp_js = util.path.join(new_root_dir, '.pnp.js')
- if util.path.exists(pnp_cjs) or util.path.exists(pnp_js) then
- config.cmd = vim.list_extend({ 'yarn', 'exec' }, config.cmd)
- end
- 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` is a linting engine for JavaScript / Typescript.
-It 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 a document on save:
-```lua
-lspconfig.eslint.setup({
- --- ...
- on_attach = function(client, bufnr)
- vim.api.nvim_create_autocmd("BufWritePre", {
- buffer = bufnr,
- command = "EslintFixAll",
- })
- end,
-})
-```
-
-See [vscode-eslint](https://github.com/microsoft/vscode-eslint/blob/55871979d7af184bf09af491b6ea35ebd56822cf/server/src/eslintServer.ts#L216-L229) for configuration options.
-
-Messages handled in lspconfig: `eslint/openDoc`, `eslint/confirmESLintExecution`, `eslint/probeFailed`, `eslint/noLibrary`
-
-Additional messages you can handle: `eslint/noConfig`
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/facility_language_server.lua b/lua/lspconfig/server_configurations/facility_language_server.lua
deleted file mode 100644
index c37069d2..00000000
--- a/lua/lspconfig/server_configurations/facility_language_server.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'facility-language-server' },
- filetypes = { 'fsd' },
- single_file_support = true,
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-https://github.com/FacilityApi/FacilityLanguageServer
-
-Facility language server protocol (LSP) support.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/fennel_language_server.lua b/lua/lspconfig/server_configurations/fennel_language_server.lua
deleted file mode 100644
index 919b544b..00000000
--- a/lua/lspconfig/server_configurations/fennel_language_server.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'fennel-language-server' },
- filetypes = { 'fennel' },
- single_file_support = true,
- root_dir = util.find_git_ancestor,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/rydesun/fennel-language-server
-
-Fennel language server protocol (LSP) support.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/fennel_ls.lua b/lua/lspconfig/server_configurations/fennel_ls.lua
deleted file mode 100644
index aa4f643b..00000000
--- a/lua/lspconfig/server_configurations/fennel_ls.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'fennel-ls' },
- filetypes = { 'fennel' },
- root_dir = function(dir)
- return util.find_git_ancestor(dir)
- end,
- settings = {},
- capabilities = {
- offsetEncoding = { 'utf-8', 'utf-16' },
- },
- },
- docs = {
- description = [[
-https://sr.ht/~xerool/fennel-ls/
-
-A language server for fennel.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/fish_lsp.lua b/lua/lspconfig/server_configurations/fish_lsp.lua
deleted file mode 100644
index e027de9e..00000000
--- a/lua/lspconfig/server_configurations/fish_lsp.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'fish-lsp', 'start' },
- cmd_env = { fish_lsp_show_client_popups = false },
- filetypes = { 'fish' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/ndonfris/fish-lsp
-
-A Language Server Protocol (LSP) tailored for the fish shell.
-This project aims to enhance the coding experience for fish,
-by introducing a suite of intelligent features like auto-completion,
-scope aware symbol analysis, per-token hover generation, and many others.
-
-[homepage](https://www.fish-lsp.dev/)
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/flow.lua b/lua/lspconfig/server_configurations/flow.lua
deleted file mode 100644
index 3ac59aaa..00000000
--- a/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/lua/lspconfig/server_configurations/flux_lsp.lua b/lua/lspconfig/server_configurations/flux_lsp.lua
deleted file mode 100644
index 3be9a1b1..00000000
--- a/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/lua/lspconfig/server_configurations/foam_ls.lua b/lua/lspconfig/server_configurations/foam_ls.lua
deleted file mode 100644
index 1a991b61..00000000
--- a/lua/lspconfig/server_configurations/foam_ls.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'foam-ls', '--stdio' },
- 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/lua/lspconfig/server_configurations/fortls.lua b/lua/lspconfig/server_configurations/fortls.lua
deleted file mode 100644
index 24938668..00000000
--- a/lua/lspconfig/server_configurations/fortls.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = {
- 'fortls',
- '--notify_init',
- '--hover_signature',
- '--hover_language=fortran',
- '--use_signature_help',
- },
- filetypes = { 'fortran' },
- root_dir = function(fname)
- return util.root_pattern '.fortls'(fname) or util.find_git_ancestor(fname)
- end,
- settings = {},
- },
- docs = {
- description = [[
-https://fortls.fortran-lang.org/index.html
-
-fortls is a Fortran Language Server, the server can be installed via pip
-
-```sh
-pip install fortls
-```
-
-Settings to the server can be passed either through the `cmd` option or through
-a local configuration file e.g. `.fortls`. For more information
-see the `fortls` [documentation](https://fortls.fortran-lang.org/options.html).
- ]],
- default_config = {
- root_dir = [[root_pattern(".fortls")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/fsautocomplete.lua b/lua/lspconfig/server_configurations/fsautocomplete.lua
deleted file mode 100644
index de27e384..00000000
--- a/lua/lspconfig/server_configurations/fsautocomplete.lua
+++ /dev/null
@@ -1,53 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'fsautocomplete', '--adaptive-lsp-server-enabled' },
- root_dir = util.root_pattern('*.sln', '*.fsproj', '.git'),
- filetypes = { 'fsharp' },
- init_options = {
- AutomaticWorkspaceInit = true,
- },
- -- this recommended settings values taken from https://github.com/ionide/FsAutoComplete?tab=readme-ov-file#settings
- settings = {
- FSharp = {
- keywordsAutocomplete = true,
- ExternalAutocomplete = false,
- Linter = true,
- UnionCaseStubGeneration = true,
- UnionCaseStubGenerationBody = 'failwith "Not Implemented"',
- RecordStubGeneration = true,
- RecordStubGenerationBody = 'failwith "Not Implemented"',
- InterfaceStubGeneration = true,
- InterfaceStubGenerationObjectIdentifier = 'this',
- InterfaceStubGenerationMethodBody = 'failwith "Not Implemented"',
- UnusedOpensAnalyzer = true,
- UnusedDeclarationsAnalyzer = true,
- UseSdkScripts = true,
- SimplifyNameAnalyzer = true,
- ResolveNamespaces = true,
- EnableReferenceCodeLens = 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/lua/lspconfig/server_configurations/fsharp_language_server.lua b/lua/lspconfig/server_configurations/fsharp_language_server.lua
deleted file mode 100644
index 1abc6068..00000000
--- a/lua/lspconfig/server_configurations/fsharp_language_server.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'dotnet', 'FSharpLanguageServer.dll' },
- root_dir = util.root_pattern('*.sln', '*.fsproj', '.git'),
- filetypes = { 'fsharp' },
- init_options = {
- AutomaticWorkspaceInit = true,
- },
- settings = {},
- },
- docs = {
- description = [[
-F# Language Server
-https://github.com/faldor20/fsharp-language-server
-
-An implementation of the language server protocol using the F# Compiler Service.
-
-Build the project from source and override the command path to location of DLL.
-
-If filetype determination is not already performed by an available plugin ([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).
-), then the following must be added to initialization configuration:
-
-
-`autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp`
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/fstar.lua b/lua/lspconfig/server_configurations/fstar.lua
deleted file mode 100644
index d866c544..00000000
--- a/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/lua/lspconfig/server_configurations/futhark_lsp.lua b/lua/lspconfig/server_configurations/futhark_lsp.lua
deleted file mode 100644
index 2521cc1b..00000000
--- a/lua/lspconfig/server_configurations/futhark_lsp.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'futhark', 'lsp' },
- filetypes = { 'futhark', 'fut' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/diku-dk/futhark
-
-Futhark Language Server
-
-This language server comes with the futhark compiler and is run with the command
-```
-futhark lsp
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/gdscript.lua b/lua/lspconfig/server_configurations/gdscript.lua
deleted file mode 100644
index 5ae1799d..00000000
--- a/lua/lspconfig/server_configurations/gdscript.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-local port = os.getenv 'GDScript_Port' or '6005'
-local cmd = { 'nc', 'localhost', port }
-
-if vim.fn.has 'nvim-0.8' == 1 then
- cmd = vim.lsp.rpc.connect('127.0.0.1', port)
-end
-
-return {
- default_config = {
- cmd = cmd,
- 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/lua/lspconfig/server_configurations/gdshader_lsp.lua b/lua/lspconfig/server_configurations/gdshader_lsp.lua
deleted file mode 100644
index a01efa8e..00000000
--- a/lua/lspconfig/server_configurations/gdshader_lsp.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'gdshader-lsp', '--stdio' },
- filetypes = { 'gdshader', 'gdshaderinc' },
- root_dir = util.root_pattern 'project.godot',
- },
- docs = {
- description = [[
-https://github.com/godofavacyn/gdshader-lsp
-
-A language server for the Godot Shading language.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ghcide.lua b/lua/lspconfig/server_configurations/ghcide.lua
deleted file mode 100644
index 7f9307b1..00000000
--- a/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/lua/lspconfig/server_configurations/ghdl_ls.lua b/lua/lspconfig/server_configurations/ghdl_ls.lua
deleted file mode 100644
index 0f9e1186..00000000
--- a/lua/lspconfig/server_configurations/ghdl_ls.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ghdl-ls' },
- filetypes = { 'vhdl' },
- root_dir = function(fname)
- return util.root_pattern 'hdl-prj.json'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/ghdl/ghdl-language-server
-
-A language server for VHDL, using ghdl as its backend.
-
-`ghdl-ls` is part of pyghdl, for installation instructions see
-[the upstream README](https://github.com/ghdl/ghdl/tree/master/pyGHDL/lsp).
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ginko_ls.lua b/lua/lspconfig/server_configurations/ginko_ls.lua
deleted file mode 100644
index 61f9de60..00000000
--- a/lua/lspconfig/server_configurations/ginko_ls.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ginko_ls' },
- filetypes = { 'dts' },
- root_dir = util.find_git_ancestor,
- settings = {},
- },
- docs = {
- description = [[
-`ginko_ls` is meant to be a feature-complete language server for device-trees.
-Language servers can be used in many editors, such as Visual Studio Code, Emacs
-or Vim
-
-Install `ginko_ls` from https://github.com/Schottkyc137/ginko and add it to path
-
-`ginko_ls` doesn't require any configuration.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/gitlab_ci_ls.lua b/lua/lspconfig/server_configurations/gitlab_ci_ls.lua
deleted file mode 100644
index f9d8402f..00000000
--- a/lua/lspconfig/server_configurations/gitlab_ci_ls.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local util = require 'lspconfig.util'
-
-local cache_dir = util.path.join(vim.loop.os_homedir(), '.cache/gitlab-ci-ls/')
-return {
- default_config = {
- cmd = { 'gitlab-ci-ls' },
- filetypes = { 'yaml.gitlab' },
- root_dir = util.root_pattern('.gitlab*', '.git'),
- init_options = {
- cache_path = cache_dir,
- log_path = util.path.join(cache_dir, 'log/gitlab-ci-ls.log'),
- },
- },
- docs = {
- description = [[
-https://github.com/alesbrelih/gitlab-ci-ls
-
-Language Server for Gitlab CI
-
-`gitlab-ci-ls` can be installed via cargo:
-cargo install gitlab-ci-ls
-]],
- default_config = {
- cmd = { 'gitlab-ci-ls' },
- filetypes = { 'yaml.gitlab' },
- root_dir = [[util.root_pattern('.gitlab*', '.git')]],
- init_options = {
- cache_path = [[util.path.join(vim.loop.os_homedir(), '.cache/gitlab-ci-ls/')]],
- log_path = [[util.path.join(util.path.join(vim.loop.os_homedir(), '.cache/gitlab-ci-ls/'), 'log/gitlab-ci-ls.log')]],
- },
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/glasgow.lua b/lua/lspconfig/server_configurations/glasgow.lua
deleted file mode 100644
index c36c50df..00000000
--- a/lua/lspconfig/server_configurations/glasgow.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'glasgow' },
- filetypes = { 'wgsl' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/nolanderc/glasgow
-
-Provides language features for WGSL (WebGPU Shading Language):
-- Completions:
- - Local functions/variables/types.
- - Fields and swizzles.
- - Builtin types and functions (`dot`, `reflect`, `textureSample`, `vec3`, `mat4x2`, etc.)
-- Hover Documentation:
- - Function signatures.
- - Variable types.
- - Includes builtin types and functions. Text is taken from the WGSL specification.
-- Goto Definition
-- Find all References
-- Rename
-- Formatter
-
-`glasgow` can be installed via `cargo`:
-```sh
-cargo install glasgow
-```
-]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/gleam.lua b/lua/lspconfig/server_configurations/gleam.lua
deleted file mode 100644
index ec5504ce..00000000
--- a/lua/lspconfig/server_configurations/gleam.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'gleam', 'lsp' },
- filetypes = { 'gleam' },
- root_dir = function(fname)
- return util.root_pattern('gleam.toml', '.git')(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/gleam-lang/gleam
-
-A language server for Gleam Programming Language.
-[Installation](https://gleam.run/getting-started/installing/)
-
-It can be i
-]],
- default_config = {
- cmd = { 'gleam', 'lsp' },
- root_dir = [[root_pattern("gleam.toml", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/glint.lua b/lua/lspconfig/server_configurations/glint.lua
deleted file mode 100644
index 1d991cff..00000000
--- a/lua/lspconfig/server_configurations/glint.lua
+++ /dev/null
@@ -1,59 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'glint-language-server' },
- on_new_config = function(config, new_root_dir)
- local project_root = util.find_node_modules_ancestor(new_root_dir)
- -- Glint should not be installed globally.
- local node_bin_path = util.path.join(project_root, 'node_modules', '.bin')
- local path = node_bin_path .. util.path.path_separator .. vim.env.PATH
- if config.cmd_env then
- config.cmd_env.PATH = path
- else
- config.cmd_env = { PATH = path }
- end
- end,
- filetypes = {
- 'html.handlebars',
- 'handlebars',
- 'typescript',
- 'typescript.glimmer',
- 'javascript',
- 'javascript.glimmer',
- },
- root_dir = util.root_pattern(
- '.glintrc.yml',
- '.glintrc',
- '.glintrc.json',
- '.glintrc.js',
- 'glint.config.js',
- 'package.json'
- ),
- },
- docs = {
- description = [[
- https://github.com/typed-ember/glint
-
- https://typed-ember.gitbook.io/glint/
-
- `glint-language-server` is installed when adding `@glint/core` to your project's devDependencies:
-
- ```sh
- npm install @glint/core --save-dev
- ```
-
- or
-
- ```sh
- yarn add -D @glint/core
- ```
-
- or
-
- ```sh
- pnpm add -D @glint/core
- ```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/glsl_analyzer.lua b/lua/lspconfig/server_configurations/glsl_analyzer.lua
deleted file mode 100644
index 74ffbba9..00000000
--- a/lua/lspconfig/server_configurations/glsl_analyzer.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'glsl_analyzer' },
- filetypes = { 'glsl', 'vert', 'tesc', 'tese', 'frag', 'geom', 'comp' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- capabilities = {},
- },
- docs = {
- description = [[
-https://github.com/nolanderc/glsl_analyzer
-
-Language server for GLSL
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/glslls.lua b/lua/lspconfig/server_configurations/glslls.lua
deleted file mode 100644
index 7d1c3634..00000000
--- a/lua/lspconfig/server_configurations/glslls.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'glslls', '--stdin' },
- filetypes = { 'glsl', 'vert', 'tesc', 'tese', 'frag', 'geom', 'comp' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- capabilities = {
- textDocument = {
- completion = {
- editsNearCursor = true,
- },
- },
- offsetEncoding = { 'utf-8', 'utf-16' },
- },
- },
- docs = {
- description = [[
-https://github.com/svenstaro/glsl-language-server
-
-Language server implementation for GLSL
-
-`glslls` can be compiled and installed manually, or, if your distribution has access to the AUR,
-via the `glsl-language-server` AUR package
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/golangci_lint_ls.lua b/lua/lspconfig/server_configurations/golangci_lint_ls.lua
deleted file mode 100644
index b1b51c49..00000000
--- a/lua/lspconfig/server_configurations/golangci_lint_ls.lua
+++ /dev/null
@@ -1,42 +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(
- '.golangci.yml',
- '.golangci.yaml',
- '.golangci.toml',
- '.golangci.json',
- 'go.work',
- 'go.mod',
- '.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@latest
-```
-
-]],
- default_config = {
- root_dir = [[root_pattern('.golangci.yml', '.golangci.yaml', '.golangci.toml', '.golangci.json', 'go.work', 'go.mod', '.git')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/gopls.lua b/lua/lspconfig/server_configurations/gopls.lua
deleted file mode 100644
index 00df6f02..00000000
--- a/lua/lspconfig/server_configurations/gopls.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-local util = require 'lspconfig.util'
-local async = require 'lspconfig.async'
-local mod_cache = nil
-
-return {
- default_config = {
- cmd = { 'gopls' },
- filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
- root_dir = function(fname)
- -- see: https://github.com/neovim/nvim-lspconfig/issues/804
- if not mod_cache then
- local result = async.run_command { 'go', 'env', 'GOMODCACHE' }
- if result and result[1] then
- mod_cache = vim.trim(result[1])
- else
- mod_cache = vim.fn.system 'go env GOMODCACHE'
- end
- end
- if mod_cache and fname:sub(1, #mod_cache) == mod_cache then
- local clients = util.get_lsp_clients { name = 'gopls' }
- if #clients > 0 then
- return clients[#clients].config.root_dir
- end
- end
- return util.root_pattern('go.work', '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.work", "go.mod", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/gradle_ls.lua b/lua/lspconfig/server_configurations/gradle_ls.lua
deleted file mode 100644
index 6af1ee66..00000000
--- a/lua/lspconfig/server_configurations/gradle_ls.lua
+++ /dev/null
@@ -1,43 +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)
- 'build.gradle', -- Gradle
-}
-
-return {
- default_config = {
- filetypes = { 'groovy' },
- root_dir = util.root_pattern(unpack(root_files)),
- cmd = { bin_name },
- -- gradle-language-server expects init_options.settings to be defined
- init_options = {
- settings = {
- gradleWrapperEnabled = true,
- },
- },
- },
- 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", "build.gradle")]],
- cmd = { 'gradle-language-server' },
- init_options = {
- settings = {
- gradleWrapperEnabled = true,
- },
- },
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/grammarly.lua b/lua/lspconfig/server_configurations/grammarly.lua
deleted file mode 100644
index 6b37a148..00000000
--- a/lua/lspconfig/server_configurations/grammarly.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'grammarly-languageserver', '--stdio' },
- filetypes = { 'markdown' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- handlers = {
- ['$/updateDocumentState'] = function()
- return ''
- end,
- },
- init_options = {
- clientId = 'client_BaDkMgx4X19X9UxxYRCXZo',
- },
- },
- docs = {
- description = [[
-https://github.com/znck/grammarly
-
-`grammarly-languageserver` can be installed via `npm`:
-
-```sh
-npm i -g grammarly-languageserver
-```
-
-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/lua/lspconfig/server_configurations/graphql.lua b/lua/lspconfig/server_configurations/graphql.lua
deleted file mode 100644
index fa1e8715..00000000
--- a/lua/lspconfig/server_configurations/graphql.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'graphql-lsp', 'server', '-m', 'stream' },
- filetypes = { 'graphql', 'typescriptreact', 'javascriptreact' },
- root_dir = util.root_pattern('.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 within your project and create a [GraphQL config file](https://the-guild.dev/graphql/config/docs).
-]],
- default_config = {
- root_dir = [[util.root_pattern('.git', '.graphqlrc*', '.graphql.config.*', 'graphql.config.*')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/groovyls.lua b/lua/lspconfig/server_configurations/groovyls.lua
deleted file mode 100644
index b4182f4a..00000000
--- a/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/lua/lspconfig/server_configurations/guile_ls.lua b/lua/lspconfig/server_configurations/guile_ls.lua
deleted file mode 100644
index 41b44edc..00000000
--- a/lua/lspconfig/server_configurations/guile_ls.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local util = require 'lspconfig.util'
-return {
- default_config = {
- cmd = { 'guile-lsp-server' },
- filetypes = {
- 'scheme.guile',
- },
- root_dir = function(fname)
- return util.root_pattern 'guix.scm'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://codeberg.org/rgherdt/scheme-lsp-server
-
-The recommended way is to install guile-lsp-server is using Guix. Unfortunately it is still not available at the official Guix channels, but you can use the provided channel guix.scm in the repo:
-```sh
-guix package -f guix.scm
-```
-
-Checkout the repo for more info.
-
-Note: This LSP will start on `scheme.guile` filetype. You can set this file type using `:help modeline` or adding https://gitlab.com/HiPhish/guile.vim to your plugins to automatically set it.
- ]],
- default_config = {
- root_dir = [[root_pattern("guix.scm", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/harper_ls.lua b/lua/lspconfig/server_configurations/harper_ls.lua
deleted file mode 100644
index c9cd0cc2..00000000
--- a/lua/lspconfig/server_configurations/harper_ls.lua
+++ /dev/null
@@ -1,51 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'harper-ls', '--stdio' },
- filetypes = {
- 'markdown',
- 'rust',
- 'typescript',
- 'typescriptreact',
- 'javascript',
- 'python',
- 'go',
- 'c',
- 'cpp',
- 'ruby',
- 'swift',
- 'csharp',
- 'toml',
- 'lua',
- 'gitcommit',
- 'java',
- 'html',
- },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/chilipepperhott/harper
-
-The language server for Harper, the slim, clean language checker for developers.
-
-See [docs](https://github.com/chilipepperhott/harper/tree/master/harper-ls#configuration) for more information on settings.
-
-In short, however, they should look something like this:
-```lua
-lspconfig.harper_ls.setup {
- settings = {
- ["harper-ls"] = {
- userDictPath = "~/dict.txt"
- }
- },
-}
-```
- ]],
- default_config = {
- root_dir = [[bufdir]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/haxe_language_server.lua b/lua/lspconfig/server_configurations/haxe_language_server.lua
deleted file mode 100644
index 4412238d..00000000
--- a/lua/lspconfig/server_configurations/haxe_language_server.lua
+++ /dev/null
@@ -1,74 +0,0 @@
-local util = require 'lspconfig.util'
-
-local function find_hxml(path)
- return vim.fs.find(function(name)
- return name:match '.hxml$'
- end, { path = path, type = 'file' })
-end
-
-return {
- default_config = {
- cmd = { 'haxe-language-server' },
- filetypes = { 'haxe' },
- root_dir = util.root_pattern('*.hxml', '.git'),
- settings = {
- haxe = {
- executable = 'haxe',
- },
- },
- init_options = {},
- on_new_config = function(new_config, new_root_dir)
- if new_config.init_options.displayArguments then
- return
- end
-
- local hxml = find_hxml(new_root_dir)[1]
- if hxml then
- vim.notify('Using HXML: ' .. hxml)
- new_config.init_options.displayArguments = { hxml }
- end
- end,
- },
- 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, the language server is configured with the HXML compiler arguments
-contained in the first `.hxml` file found in your project's root directory.
-If you want to specify which one to use, set the `init_options.displayArguments`
-setting:
-
-```lua
-lspconfig.haxe_language_server.setup({
- -- ...
- init_options = {
- displayArguments = { "build.hxml" },
- },
-})
-```
-
-]],
- default_config = {
- root_dir = [[root_pattern("*.hxml", ".git")]],
- init_options = 'default value is set by on_new_config',
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/hdl_checker.lua b/lua/lspconfig/server_configurations/hdl_checker.lua
deleted file mode 100644
index 5cf29414..00000000
--- a/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/lua/lspconfig/server_configurations/helm_ls.lua b/lua/lspconfig/server_configurations/helm_ls.lua
deleted file mode 100644
index 4908e238..00000000
--- a/lua/lspconfig/server_configurations/helm_ls.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-
-local default_capabilities = {
- workspace = {
- didChangeWatchedFiles = {
- dynamicRegistration = true,
- },
- },
-}
-
-return {
- default_config = {
- cmd = { 'helm_ls', 'serve' },
- filetypes = { 'helm' },
- root_dir = util.root_pattern 'Chart.yaml',
- single_file_support = true,
- capabilities = default_capabilities,
- },
- docs = {
- description = [[
-https://github.com/mrjosh/helm-ls
-
-Helm Language server. (This LSP is in early development)
-
-`helm Language server` can be installed by following the instructions [here](https://github.com/mrjosh/helm-ls).
-
-The default `cmd` assumes that the `helm_ls` binary can be found in `$PATH`.
-
-If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin.
-]],
- default_config = {
- root_dir = [[root_pattern("Chart.yaml")]],
- capabilities = [[default capabilities, with dynamicRegistration for didChangeWatchedFiles true]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/hhvm.lua b/lua/lspconfig/server_configurations/hhvm.lua
deleted file mode 100644
index 0e8ac5c5..00000000
--- a/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/lua/lspconfig/server_configurations/hie.lua b/lua/lspconfig/server_configurations/hie.lua
deleted file mode 100644
index 96148ad1..00000000
--- a/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/lua/lspconfig/server_configurations/hlasm.lua b/lua/lspconfig/server_configurations/hlasm.lua
deleted file mode 100644
index 285b6271..00000000
--- a/lua/lspconfig/server_configurations/hlasm.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'hlasm_language_server' },
- filetypes = { 'hlasm' },
- root_dir = util.root_pattern '.hlasmplugin',
- single_file_support = true,
- },
- docs = {
- description = [[
- `hlasm_language_server` is a language server for the High Level Assembler language used on IBM SystemZ mainframes.
-
- To learn how to configure the HLASM language server, see the [HLASM Language Support documentation](https://github.com/eclipse-che4z/che-che4z-lsp-for-hlasm).
- ]],
- default_config = {
- root_dir = [[root_pattern(".hlasmplugin")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/hls.lua b/lua/lspconfig/server_configurations/hls.lua
deleted file mode 100644
index 4390440d..00000000
--- a/lua/lspconfig/server_configurations/hls.lua
+++ /dev/null
@@ -1,52 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'haskell-language-server-wrapper', '--lsp' },
- filetypes = { 'haskell', 'lhaskell' },
- root_dir = util.root_pattern('hie.yaml', 'stack.yaml', 'cabal.project', '*.cabal', 'package.yaml'),
- single_file_support = true,
- settings = {
- haskell = {
- formattingProvider = 'ormolu',
- cabalFormattingProvider = 'cabalfmt',
- },
- },
- 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
-
-If you are using HLS 1.9.0.0, enable the language server to launch on Cabal files as well:
-
-```lua
-require('lspconfig')['hls'].setup{
- filetypes = { 'haskell', 'lhaskell', 'cabal' },
-}
-```
- ]],
-
- default_config = {
- root_dir = [[root_pattern("hie.yaml", "stack.yaml", "cabal.project", "*.cabal", "package.yaml")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/hoon_ls.lua b/lua/lspconfig/server_configurations/hoon_ls.lua
deleted file mode 100644
index 1a9240b3..00000000
--- a/lua/lspconfig/server_configurations/hoon_ls.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'hoon-language-server' },
- 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/lua/lspconfig/server_configurations/html.lua b/lua/lspconfig/server_configurations/html.lua
deleted file mode 100644
index 23707349..00000000
--- a/lua/lspconfig/server_configurations/html.lua
+++ /dev/null
@@ -1,41 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vscode-html-language-server', '--stdio' },
- filetypes = { 'html', 'templ' },
- 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/lua/lspconfig/server_configurations/htmx.lua b/lua/lspconfig/server_configurations/htmx.lua
deleted file mode 100644
index fe7e1de5..00000000
--- a/lua/lspconfig/server_configurations/htmx.lua
+++ /dev/null
@@ -1,71 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'htmx-lsp' },
- filetypes = { -- filetypes copied and adjusted from tailwindcss-intellisense
- -- html
- 'aspnetcorerazor',
- 'astro',
- 'astro-markdown',
- 'blade',
- 'clojure',
- 'django-html',
- 'htmldjango',
- 'edge',
- 'eelixir', -- vim ft
- 'elixir',
- 'ejs',
- 'erb',
- 'eruby', -- vim ft
- 'gohtml',
- 'gohtmltmpl',
- 'haml',
- 'handlebars',
- 'hbs',
- 'html',
- 'htmlangular',
- 'html-eex',
- 'heex',
- 'jade',
- 'leaf',
- 'liquid',
- 'markdown',
- 'mdx',
- 'mustache',
- 'njk',
- 'nunjucks',
- 'php',
- 'razor',
- 'slim',
- 'twig',
- -- js
- 'javascript',
- 'javascriptreact',
- 'reason',
- 'rescript',
- 'typescript',
- 'typescriptreact',
- -- mixed
- 'vue',
- 'svelte',
- 'templ',
- },
- single_file_support = true,
- root_dir = function(fname)
- return util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/ThePrimeagen/htmx-lsp
-
-`htmx-lsp` can be installed via `cargo`:
-```sh
-cargo install htmx-lsp
-```
-
-Lsp is still very much work in progress and experimental. Use at your own risk.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/hydra_lsp.lua b/lua/lspconfig/server_configurations/hydra_lsp.lua
deleted file mode 100644
index e162ebe2..00000000
--- a/lua/lspconfig/server_configurations/hydra_lsp.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'hydra-lsp' },
- filetypes = { 'yaml' },
- root_dir = util.root_pattern '.git',
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/Retsediv/hydra-lsp
-
-LSP for Hydra Python package config files.
-]],
- default_config = {
- root_dir = [[util.root_pattern '.git']],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/hyprls.lua b/lua/lspconfig/server_configurations/hyprls.lua
deleted file mode 100644
index b1327f2c..00000000
--- a/lua/lspconfig/server_configurations/hyprls.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'hyprls', '--stdio' },
- filetypes = { 'hyprlang' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/hyprland-community/hyprls
-
-`hyprls` can be installed via `go`:
-```sh
-go install github.com/ewen-lbh/hyprls/cmd/hyprls@latest
-```
-
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/idris2_lsp.lua b/lua/lspconfig/server_configurations/idris2_lsp.lua
deleted file mode 100644
index acb906e6..00000000
--- a/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/) 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/lua/lspconfig/server_configurations/intelephense.lua b/lua/lspconfig/server_configurations/intelephense.lua
deleted file mode 100644
index 2b9ad0fe..00000000
--- a/lua/lspconfig/server_configurations/intelephense.lua
+++ /dev/null
@@ -1,43 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'intelephense', '--stdio' },
- 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/lua/lspconfig/server_configurations/janet_lsp.lua b/lua/lspconfig/server_configurations/janet_lsp.lua
deleted file mode 100644
index bc9c5bda..00000000
--- a/lua/lspconfig/server_configurations/janet_lsp.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = {
- 'janet-lsp',
- '--stdio',
- },
- filetypes = { 'janet' },
- root_dir = util.root_pattern 'project.janet' or util.find_git_ancestor(),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/CFiggers/janet-lsp
-
-A Language Server Protocol implementation for Janet.
-]],
- root_dir = [[root_pattern("project.janet", ".git")]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/java_language_server.lua b/lua/lspconfig/server_configurations/java_language_server.lua
deleted file mode 100644
index 3ddf4b1b..00000000
--- a/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/lua/lspconfig/server_configurations/jdtls.lua b/lua/lspconfig/server_configurations/jdtls.lua
deleted file mode 100644
index 62bf2a56..00000000
--- a/lua/lspconfig/server_configurations/jdtls.lua
+++ /dev/null
@@ -1,173 +0,0 @@
-local util = require 'lspconfig.util'
-local handlers = require 'vim.lsp.handlers'
-
-local env = {
- HOME = vim.loop.os_homedir(),
- XDG_CACHE_HOME = os.getenv 'XDG_CACHE_HOME',
- JDTLS_JVM_ARGS = os.getenv 'JDTLS_JVM_ARGS',
-}
-
-local function get_cache_dir()
- return env.XDG_CACHE_HOME and env.XDG_CACHE_HOME or util.path.join(env.HOME, '.cache')
-end
-
-local function get_jdtls_cache_dir()
- return util.path.join(get_cache_dir(), 'jdtls')
-end
-
-local function get_jdtls_config_dir()
- return util.path.join(get_jdtls_cache_dir(), 'config')
-end
-
-local function get_jdtls_workspace_dir()
- return util.path.join(get_jdtls_cache_dir(), 'workspace')
-end
-
-local function get_jdtls_jvm_args()
- local args = {}
- for a in string.gmatch((env.JDTLS_JVM_ARGS or ''), '%S+') do
- local arg = string.format('--jvm-arg=%s', a)
- table.insert(args, arg)
- end
- return unpack(args)
-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 = {
- -- Multi-module projects
- { '.git', 'build.gradle', 'build.gradle.kts' },
- -- Single-module projects
- {
- 'build.xml', -- Ant
- 'pom.xml', -- Maven
- 'settings.gradle', -- Gradle
- 'settings.gradle.kts', -- Gradle
- },
-}
-
-return {
- default_config = {
- cmd = {
- 'jdtls',
- '-configuration',
- get_jdtls_config_dir(),
- '-data',
- get_jdtls_workspace_dir(),
- get_jdtls_jvm_args(),
- },
- 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_jdtls_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)
-and ensure that the `PATH` variable contains the `bin` directory of the extracted archive.
-
-```lua
- -- init.lua
- require'lspconfig'.jdtls.setup{}
-```
-
-You can also pass extra custom jvm arguments with the JDTLS_JVM_ARGS environment variable as a space separated list of arguments,
-that will be converted to multiple --jvm-arg=<param> args when passed to the jdtls script. This will allow for example tweaking
-the jvm arguments or integration with external tools like lombok:
-
-```sh
-export JDTLS_JVM_ARGS="-javaagent:$HOME/.local/share/java/lombok.jar"
-```
-
-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/lua/lspconfig/server_configurations/jedi_language_server.lua b/lua/lspconfig/server_configurations/jedi_language_server.lua
deleted file mode 100644
index c95c9602..00000000
--- a/lua/lspconfig/server_configurations/jedi_language_server.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'pyproject.toml',
- 'setup.py',
- 'setup.cfg',
- 'requirements.txt',
- 'Pipfile',
- '.git',
-}
-
-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/lua/lspconfig/server_configurations/jinja_lsp.lua b/lua/lspconfig/server_configurations/jinja_lsp.lua
deleted file mode 100644
index e372ee9b..00000000
--- a/lua/lspconfig/server_configurations/jinja_lsp.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- name = 'jinja_lsp',
- cmd = { 'jinja-lsp' },
- filetypes = { 'jinja' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-jinja-lsp enhances minijinja development experience by providing Helix/Nvim users with advanced features such as autocomplete, syntax highlighting, hover, goto definition, code actions and linting.
-
-The file types are not detected automatically, you can register them manually (see below) or override the filetypes:
-
-```lua
-vim.filetype.add {
- extension = {
- jinja = 'jinja',
- jinja2 = 'jinja',
- j2 = 'jinja',
- },
-}
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/jqls.lua b/lua/lspconfig/server_configurations/jqls.lua
deleted file mode 100644
index 740138ec..00000000
--- a/lua/lspconfig/server_configurations/jqls.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local util = require 'lspconfig.util'
-return {
- default_config = {
- cmd = { 'jq-lsp' },
- filetypes = { 'jq' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/wader/jq-lsp
-Language server for jq, written using Go.
-You can install the server easily using go install:
-```sh
-# install directly
-go install github.com/wader/jq-lsp@master
-# copy binary to $PATH
-cp $(go env GOPATH)/bin/jq-lsp /usr/local/bin
-```
-Note: To activate properly nvim needs to know the jq filetype.
-You can add it via:
-```lua
-vim.cmd(\[\[au BufRead,BufNewFile *.jq setfiletype jq\]\])
-```
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/jsonls.lua b/lua/lspconfig/server_configurations/jsonls.lua
deleted file mode 100644
index b0780496..00000000
--- a/lua/lspconfig/server_configurations/jsonls.lua
+++ /dev/null
@@ -1,41 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vscode-json-language-server', '--stdio' },
- 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
-```
-
-`vscode-json-language-server` only provides completions when snippet support is enabled. If you use Neovim older than v0.10 you need 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/lua/lspconfig/server_configurations/jsonnet_ls.lua b/lua/lspconfig/server_configurations/jsonnet_ls.lua
deleted file mode 100644
index e2e7bffa..00000000
--- a/lua/lspconfig/server_configurations/jsonnet_ls.lua
+++ /dev/null
@@ -1,44 +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' },
- single_file_support = true,
- 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)
- if not new_config.cmd_env then
- new_config.cmd_env = {}
- end
- if not new_config.cmd_env.JSONNET_PATH then
- new_config.cmd_env.JSONNET_PATH = jsonnet_path(root_dir)
- end
- 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/lua/lspconfig/server_configurations/julials.lua b/lua/lspconfig/server_configurations/julials.lua
deleted file mode 100644
index 8788ffc4..00000000
--- a/lua/lspconfig/server_configurations/julials.lua
+++ /dev/null
@@ -1,139 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = { 'Project.toml', 'JuliaProject.toml' }
-
-local function activate_env(path)
- assert(vim.fn.has 'nvim-0.10' == 1, 'requires Nvim 0.10 or newer')
- local bufnr = vim.api.nvim_get_current_buf()
- local julials_clients = vim.lsp.get_clients { bufnr = bufnr, name = 'julials' }
- assert(
- #julials_clients == 0,
- 'method julia/activateenvironment is not supported by any servers active on the current buffer'
- )
- local function _activate_env(environment)
- if environment then
- for _, julials_client in ipairs(julials_clients) do
- julials_client.notify('julia/activateenvironment', { envPath = environment })
- end
- vim.notify('Julia environment activated: \n`' .. environment .. '`', vim.log.levels.INFO)
- end
- end
- if path then
- path = vim.fs.normalize(vim.fn.fnamemodify(vim.fn.expand(path), ':p'))
- local found_env = false
- for _, project_file in ipairs(root_files) do
- local file = vim.uv.fs_stat(vim.fs.joinpath(path, project_file))
- if file and file.type then
- found_env = true
- break
- end
- end
- if not found_env then
- vim.notify('Path is not a julia environment: \n`' .. path .. '`', vim.log.levels.WARN)
- return
- end
- _activate_env(path)
- else
- local depot_paths = vim.env.JULIA_DEPOT_PATH
- and vim.split(vim.env.JULIA_DEPOT_PATH, vim.fn.has 'win32' == 1 and ';' or ':')
- or { vim.fn.expand '~/.julia' }
- local environments = {}
- vim.list_extend(environments, vim.fs.find(root_files, { type = 'file', upward = true, limit = math.huge }))
- for _, depot_path in ipairs(depot_paths) do
- local depot_env = vim.fs.joinpath(vim.fs.normalize(depot_path), 'environments')
- vim.list_extend(
- environments,
- vim.fs.find(function(name, env_path)
- return vim.tbl_contains(root_files, name) and string.sub(env_path, #depot_env + 1):match '^/[^/]*$'
- end, { path = depot_env, type = 'file', limit = math.huge })
- )
- end
- environments = vim.tbl_map(vim.fs.dirname, environments)
- vim.ui.select(environments, { prompt = 'Select a Julia environment' }, _activate_env)
- end
-end
-
-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(unpack(root_files))(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- commands = {
- JuliaActivateEnv = {
- activate_env,
- description = 'Activate a Julia environment',
- nargs = '?',
- complete = 'file',
- },
- },
- 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()'
-```
-
-Note: The julia programming language searches for global environments within the `environments/`
-folder of `$JULIA_DEPOT_PATH` entries. By default this simply `~/.julia/environments`
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/kcl.lua b/lua/lspconfig/server_configurations/kcl.lua
deleted file mode 100644
index 0e241ab8..00000000
--- a/lua/lspconfig/server_configurations/kcl.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'kcl-language-server' },
- filetypes = { 'kcl' },
- root_dir = util.root_pattern '.git',
- },
- docs = {
- description = [[
-https://github.com/kcl-lang/kcl.nvim
-
-Language server for the KCL configuration and policy language.
-
-]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/koka.lua b/lua/lspconfig/server_configurations/koka.lua
deleted file mode 100644
index c754b2f8..00000000
--- a/lua/lspconfig/server_configurations/koka.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'koka', '--language-server', '--lsstdio' },
- filetypes = { 'koka' },
- single_file_support = true,
- root_dir = util.find_git_ancestor,
- },
-
- docs = {
- description = [[
- https://koka-lang.github.io/koka/doc/index.html
-Koka is a functional programming language with effect types and handlers.
- ]],
- default_config = {
- root_dir = [[git directory]],
- capabilities = [[default capabilities]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/kotlin_language_server.lua b/lua/lspconfig/server_configurations/kotlin_language_server.lua
deleted file mode 100644
index a151403a..00000000
--- a/lua/lspconfig/server_configurations/kotlin_language_server.lua
+++ /dev/null
@@ -1,57 +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
- 'build.gradle', -- Gradle
- 'build.gradle.kts', -- Gradle
-}
-
-return {
- default_config = {
- filetypes = { 'kotlin' },
- root_dir = util.root_pattern(unpack(root_files)),
- cmd = { bin_name },
- init_options = {
- storagePath = util.root_pattern(unpack(root_files))(vim.fn.expand '%:p:h'),
- },
- },
- 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.
-
- For faster startup, you can setup caching by specifying a storagePath
- in the init_options. The default is your home directory.
- ]],
- default_config = {
- root_dir = [[See source]],
- cmd = { 'kotlin-language-server' },
- init_options = {
- storagePath = [[Enables caching and use project root to store cache data. See source]],
- },
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/lean3ls.lua b/lua/lspconfig/server_configurations/lean3ls.lua
deleted file mode 100644
index ebcec10d..00000000
--- a/lua/lspconfig/server_configurations/lean3ls.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'lean-language-server', '--stdio', '--', '-M', '4096', '-T', '100000' },
- 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/lua/lspconfig/server_configurations/leanls.lua b/lua/lspconfig/server_configurations/leanls.lua
deleted file mode 100644
index 63349a14..00000000
--- a/lua/lspconfig/server_configurations/leanls.lua
+++ /dev/null
@@ -1,52 +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.toml', 'lakefile.lean', 'lean-toolchain')(fname)
- or stdlib_dir
- or util.find_git_ancestor(fname)
- end,
- on_new_config = function(config, root_dir)
- -- 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 language server is included in any Lean installation and
-does not require any additional packages.
-
-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.toml", "lakefile.lean", "lean-toolchain", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/lelwel_ls.lua b/lua/lspconfig/server_configurations/lelwel_ls.lua
deleted file mode 100644
index ac8c4560..00000000
--- a/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/lua/lspconfig/server_configurations/lemminx.lua b/lua/lspconfig/server_configurations/lemminx.lua
deleted file mode 100644
index eb1ccaa8..00000000
--- a/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 from https://github.com/redhat-developer/vscode-xml/releases and place it on your PATH.
-
-NOTE to macOS users: Binaries from unidentified developers are blocked by default. If you trust the downloaded binary, 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/lua/lspconfig/server_configurations/lexical.lua b/lua/lspconfig/server_configurations/lexical.lua
deleted file mode 100644
index d8235d5e..00000000
--- a/lua/lspconfig/server_configurations/lexical.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
- root_dir = function(fname)
- return util.root_pattern 'mix.exs'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
- https://github.com/lexical-lsp/lexical
-
- Lexical is a next-generation language server for the Elixir programming language.
-
- Follow the [Detailed Installation Instructions](https://github.com/lexical-lsp/lexical/blob/main/pages/installation.md)
-
- **By default, `lexical` doesn't have a `cmd` set.**
- This is because nvim-lspconfig does not make assumptions about your path.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ltex.lua b/lua/lspconfig/server_configurations/ltex.lua
deleted file mode 100644
index 4a3ae0f4..00000000
--- a/lua/lspconfig/server_configurations/ltex.lua
+++ /dev/null
@@ -1,90 +0,0 @@
-local util = require 'lspconfig.util'
-
-local language_id_mapping = {
- bib = 'bibtex',
- plaintex = 'tex',
- rnoweb = 'rsweave',
- rst = 'restructuredtext',
- tex = 'latex',
- pandoc = 'markdown',
- text = 'plaintext',
-}
-
-local filetypes = {
- 'bib',
- 'gitcommit',
- 'markdown',
- 'org',
- 'plaintex',
- 'rst',
- 'rnoweb',
- 'tex',
- 'pandoc',
- 'quarto',
- 'rmd',
- 'context',
- 'html',
- 'xhtml',
- 'mail',
- 'text',
-}
-
-local function get_language_id(_, filetype)
- local language_id = language_id_mapping[filetype]
- if language_id then
- return language_id
- else
- return filetype
- end
-end
-local enabled_ids = {}
-do
- local enabled_keys = {}
- for _, ft in ipairs(filetypes) do
- local id = get_language_id({}, ft)
- if not enabled_keys[id] then
- enabled_keys[id] = true
- table.insert(enabled_ids, id)
- end
- end
-end
-
-return {
- default_config = {
- cmd = { 'ltex-ls' },
- filetypes = filetypes,
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- get_language_id = get_language_id,
- settings = {
- ltex = {
- enabled = enabled_ids,
- },
- },
- },
- 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.
-
-This server accepts configuration via the `settings` key.
-
-```lua
- settings = {
- ltex = {
- language = "en-GB",
- },
- },
-```
-
-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/lua/lspconfig/server_configurations/lua_ls.lua b/lua/lspconfig/server_configurations/lua_ls.lua
deleted file mode 100644
index 5c5e1df1..00000000
--- a/lua/lspconfig/server_configurations/lua_ls.lua
+++ /dev/null
@@ -1,90 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- '.luarc.json',
- '.luarc.jsonc',
- '.luacheckrc',
- '.stylua.toml',
- 'stylua.toml',
- 'selene.toml',
- 'selene.yml',
-}
-
-return {
- default_config = {
- cmd = { 'lua-language-server' },
- filetypes = { 'lua' },
- root_dir = function(fname)
- local root = util.root_pattern(unpack(root_files))(fname)
- if root and root ~= vim.env.HOME then
- return root
- end
- root = util.root_pattern 'lua/'(fname)
- if root then
- return root
- end
- return util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- log_level = vim.lsp.protocol.MessageType.Warning,
- },
- docs = {
- description = [[
-https://github.com/luals/lua-language-server
-
-Lua language server.
-
-`lua-language-server` can be installed by following the instructions [here](https://luals.github.io/#neovim-install).
-
-The default `cmd` assumes that the `lua-language-server` binary can be found in `$PATH`.
-
-If you primarily use `lua-language-server` for Neovim, and want to provide completions,
-analysis, and location handling for plugins on runtime path, you can use the following
-settings.
-
-```lua
-require'lspconfig'.lua_ls.setup {
- on_init = function(client)
- if client.workspace_folders then
- local path = client.workspace_folders[1].name
- if vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc') then
- return
- end
- end
-
- client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {
- runtime = {
- -- Tell the language server which version of Lua you're using
- -- (most likely LuaJIT in the case of Neovim)
- version = 'LuaJIT'
- },
- -- Make the server aware of Neovim runtime files
- workspace = {
- checkThirdParty = false,
- library = {
- vim.env.VIMRUNTIME
- -- Depending on the usage, you might want to add additional paths here.
- -- "${3rd}/luv/library"
- -- "${3rd}/busted/library",
- }
- -- or pull in all of 'runtimepath'. NOTE: this is a lot slower
- -- library = vim.api.nvim_get_runtime_file("", true)
- }
- })
- end,
- settings = {
- Lua = {}
- }
-}
-```
-
-See `lua-language-server`'s [documentation](https://luals.github.io/wiki/settings/) for an explanation of the above fields:
-* [Lua.runtime.path](https://luals.github.io/wiki/settings/#runtimepath)
-* [Lua.workspace.library](https://luals.github.io/wiki/settings/#workspacelibrary)
-
-]],
- default_config = {
- root_dir = [[root_pattern(".luarc.json", ".luarc.jsonc", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/luau_lsp.lua b/lua/lspconfig/server_configurations/luau_lsp.lua
deleted file mode 100644
index ac64544c..00000000
--- a/lua/lspconfig/server_configurations/luau_lsp.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'luau-lsp', 'lsp' },
- filetypes = { 'luau' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- [[
-https://github.com/JohnnyMorganz/luau-lsp
-
-Language server for the [Luau](https://luau-lang.org/) language.
-
-`luau-lsp` can be installed by downloading one of the release assets available at https://github.com/JohnnyMorganz/luau-lsp.
-
-You might also have to set up automatic filetype detection for Luau files, for example like so:
-
-```vim
-autocmd BufRead,BufNewFile *.luau setf luau
-```
-]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/lwc_ls.lua b/lua/lspconfig/server_configurations/lwc_ls.lua
deleted file mode 100644
index ac8841a2..00000000
--- a/lua/lspconfig/server_configurations/lwc_ls.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'lwc-language-server', '--stdio' },
- filetypes = { 'javascript', 'html' },
- root_dir = util.root_pattern 'sfdx-project.json',
- init_options = {
- embeddedLanguages = {
- javascript = true,
- },
- },
- },
- docs = {
- description = [[
-https://github.com/forcedotcom/lightning-language-server/
-
-Language server for Lightning Web Components.
-
-For manual installation, utilize the official [NPM package](https://www.npmjs.com/package/@salesforce/lwc-language-server).
-Then, configure `cmd` to run the Node script at the unpacked location:
-
-```lua
-require'lspconfig'.lwc_ls.setup {
- cmd = {
- 'node',
- '/path/to/node_modules/@salesforce/lwc-language-server/bin/lwc-language-server.js',
- '--stdio'
- }
-}
-```
-]],
- default_config = {
- root_dir = [[root_pattern('sfdx-project.json')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/m68k.lua b/lua/lspconfig/server_configurations/m68k.lua
deleted file mode 100644
index 053d4420..00000000
--- a/lua/lspconfig/server_configurations/m68k.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'm68k-lsp-server', '--stdio' },
- filetypes = { 'asm68k' },
- root_dir = util.root_pattern('Makefile', '.git'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/grahambates/m68k-lsp
-
-Language server for Motorola 68000 family assembly
-
-`m68k-lsp-server` can be installed via `npm`:
-
-```sh
-npm install -g m68k-lsp-server
-```
-
-Ensure you are using the 68k asm syntax variant in Neovim.
-
-```lua
-vim.g.asmsyntax = 'asm68k'
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/markdown_oxide.lua b/lua/lspconfig/server_configurations/markdown_oxide.lua
deleted file mode 100644
index 13882dce..00000000
--- a/lua/lspconfig/server_configurations/markdown_oxide.lua
+++ /dev/null
@@ -1,42 +0,0 @@
-return {
- default_config = {
- root_dir = function(fname, _)
- return require('lspconfig').util.root_pattern('.git', '.obsidian', '.moxide.toml')(fname)
- end,
- filetypes = { 'markdown' },
- single_file_support = true,
- cmd = { 'markdown-oxide' },
- },
- docs = {
- description = [[
-https://github.com/Feel-ix-343/markdown-oxide
-
-Editor Agnostic PKM: you bring the text editor and we
-bring the PKM.
-
-Inspired by and compatible with Obsidian.
-
-Check the readme to see how to properly setup.
- ]],
- },
- commands = {
- Today = {
- function()
- vim.lsp.buf.execute_command { command = 'jump', arguments = { 'today' } }
- end,
- description = "Open today's daily note",
- },
- Tomorrow = {
- function()
- vim.lsp.buf.execute_command { command = 'jump', arguments = { 'tomorrow' } }
- end,
- description = "Open tomorrow's daily note",
- },
- Yesterday = {
- function()
- vim.lsp.buf.execute_command { command = 'jump', arguments = { 'yesterday' } }
- end,
- description = "Open yesterday's daily note",
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/marksman.lua b/lua/lspconfig/server_configurations/marksman.lua
deleted file mode 100644
index 2dd01a28..00000000
--- a/lua/lspconfig/server_configurations/marksman.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local util = require 'lspconfig.util'
-
-local bin_name = 'marksman'
-local cmd = { bin_name, 'server' }
-
-return {
- default_config = {
- cmd = cmd,
- filetypes = { 'markdown', 'markdown.mdx' },
- root_dir = function(fname)
- local root_files = { '.marksman.toml' }
- return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/artempyanykh/marksman
-
-Marksman is a Markdown LSP server providing completion, cross-references, diagnostics, and more.
-
-Marksman works on MacOS, Linux, and Windows and is distributed as a self-contained binary for each OS.
-
-Pre-built binaries can be downloaded from https://github.com/artempyanykh/marksman/releases
-]],
- default_config = {
- root_dir = [[root_pattern(".git", ".marksman.toml")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/matlab_ls.lua b/lua/lspconfig/server_configurations/matlab_ls.lua
deleted file mode 100644
index cadc60b0..00000000
--- a/lua/lspconfig/server_configurations/matlab_ls.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'matlab-language-server', '--stdio' },
- filetypes = { 'matlab' },
- root_dir = util.find_git_ancestor,
- single_file_support = false,
- settings = {
- MATLAB = {
- indexWorkspace = false,
- installPath = '',
- matlabConnectionTiming = 'onStart',
- telemetry = true,
- },
- },
- },
- docs = {
- description = [[
-https://github.com/mathworks/MATLAB-language-server
-
-MATLAB® language server implements the Microsoft® Language Server Protocol for the MATLAB language.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/mdx_analyzer.lua b/lua/lspconfig/server_configurations/mdx_analyzer.lua
deleted file mode 100644
index 1dfbcb5a..00000000
--- a/lua/lspconfig/server_configurations/mdx_analyzer.lua
+++ /dev/null
@@ -1,32 +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')) or ''
-end
-
-return {
- default_config = {
- cmd = { 'mdx-language-server', '--stdio' },
- filetypes = { 'markdown.mdx' },
- root_dir = util.root_pattern 'package.json',
- single_file_support = true,
- settings = {},
- init_options = {
- typescript = {},
- },
- on_new_config = function(new_config, new_root_dir)
- if vim.tbl_get(new_config.init_options, 'typescript') and not new_config.init_options.typescript.tsdk then
- new_config.init_options.typescript.tsdk = get_typescript_server_path(new_root_dir)
- end
- end,
- },
- commands = {},
- docs = {
- description = [[
-https://github.com/mdx-js/mdx-analyzer
-
-`mdx-analyzer`, a language server for MDX
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/mesonlsp.lua b/lua/lspconfig/server_configurations/mesonlsp.lua
deleted file mode 100644
index 1e45ef8b..00000000
--- a/lua/lspconfig/server_configurations/mesonlsp.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'mesonlsp', '--lsp' },
- filetypes = { 'meson' },
- root_dir = util.root_pattern('meson.build', 'meson_options.txt', 'meson.options', '.git'),
- },
- docs = {
- description = [[
-https://github.com/JCWasmx86/mesonlsp
-
-An unofficial, unendorsed language server for meson written in C++
-]],
- default_config = {
- root_dir = [[util.root_pattern("meson.build", "meson_options.txt", "meson.options", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/metals.lua b/lua/lspconfig/server_configurations/metals.lua
deleted file mode 100644
index 1242f51b..00000000
--- a/lua/lspconfig/server_configurations/metals.lua
+++ /dev/null
@@ -1,40 +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,
- },
- },
- capabilities = {
- workspace = {
- configuration = 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#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`.
-]],
- default_config = {
- root_dir = [[util.root_pattern("build.sbt", "build.sc", "build.gradle", "pom.xml")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/millet.lua b/lua/lspconfig/server_configurations/millet.lua
deleted file mode 100644
index e8700541..00000000
--- a/lua/lspconfig/server_configurations/millet.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'millet' },
- filetypes = { 'sml' },
- root_dir = util.root_pattern 'millet.toml',
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/azdavis/millet
-
-Millet, a language server for Standard ML
-
-To use with nvim:
-
-1. Install a Rust toolchain: https://rustup.rs
-2. Clone the repo
-3. Run `cargo build --release --bin lang-srv`
-4. Move `target/release/lang-srv` to somewhere on your $PATH as `millet`
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/mint.lua b/lua/lspconfig/server_configurations/mint.lua
deleted file mode 100644
index 7fde1c40..00000000
--- a/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/lua/lspconfig/server_configurations/mlir_lsp_server.lua b/lua/lspconfig/server_configurations/mlir_lsp_server.lua
deleted file mode 100644
index 22a71268..00000000
--- a/lua/lspconfig/server_configurations/mlir_lsp_server.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'mlir-lsp-server' },
- filetypes = { 'mlir' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://mlir.llvm.org/docs/Tools/MLIRLSP/#mlir-lsp-language-server--mlir-lsp-server=
-
-The Language Server for the LLVM MLIR language
-
-`mlir-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua b/lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua
deleted file mode 100644
index e24d634f..00000000
--- a/lua/lspconfig/server_configurations/mlir_pdll_lsp_server.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'mlir-pdll-lsp-server' },
- filetypes = { 'pdll' },
- root_dir = function(fname)
- return util.root_pattern 'pdll_compile_commands.yml'(fname) or util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://mlir.llvm.org/docs/Tools/MLIRLSP/#pdll-lsp-language-server--mlir-pdll-lsp-server
-
-The Language Server for the LLVM PDLL language
-
-`mlir-pdll-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/mm0_ls.lua b/lua/lspconfig/server_configurations/mm0_ls.lua
deleted file mode 100644
index 513bbeb9..00000000
--- a/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/lua/lspconfig/server_configurations/mojo.lua b/lua/lspconfig/server_configurations/mojo.lua
deleted file mode 100644
index 9092ba65..00000000
--- a/lua/lspconfig/server_configurations/mojo.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'mojo-lsp-server' },
- filetypes = { 'mojo' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/modularml/mojo
-
-`mojo-lsp-server` can be installed [via Modular](https://developer.modular.com/download)
-
-Mojo is a new programming language that bridges the gap between research and production by combining Python syntax and ecosystem with systems programming and metaprogramming features.
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/motoko_lsp.lua b/lua/lspconfig/server_configurations/motoko_lsp.lua
deleted file mode 100644
index c0f6a351..00000000
--- a/lua/lspconfig/server_configurations/motoko_lsp.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'motoko-lsp', '--stdio' },
- filetypes = { 'motoko' },
- root_dir = util.root_pattern('dfx.json', '.git'),
- init_options = {
- formatter = 'auto',
- },
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/dfinity/vscode-motoko
-
-Language server for the Motoko programming language.
- ]],
- default_config = {
- root_dir = [[root_pattern("dfx.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/move_analyzer.lua b/lua/lspconfig/server_configurations/move_analyzer.lua
deleted file mode 100644
index ab977457..00000000
--- a/lua/lspconfig/server_configurations/move_analyzer.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'move-analyzer' },
- filetypes = { 'move' },
- root_dir = function(fname)
- local move_package_dir = util.root_pattern 'Move.toml'(fname)
- return move_package_dir
- end,
- },
- commands = {},
- docs = {
- description = [[
-https://github.com/move-language/move/tree/main/language/move-analyzer
-
-Language server for Move
-
-The `move-analyzer` can be installed by running:
-
-```
-cargo install --git https://github.com/move-language/move move-analyzer
-```
-
-See [`move-analyzer`'s doc](https://github.com/move-language/move/blob/1b258a06e3c7d2bc9174578aac92cca3ac19de71/language/move-analyzer/editors/code/README.md#how-to-install) for details.
- ]],
- default_config = {
- root_dir = [[root_pattern("Move.toml")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/msbuild_project_tools_server.lua b/lua/lspconfig/server_configurations/msbuild_project_tools_server.lua
deleted file mode 100644
index 1f6a1241..00000000
--- a/lua/lspconfig/server_configurations/msbuild_project_tools_server.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local util = require 'lspconfig.util'
-
-local host_dll_name = 'MSBuildProjectTools.LanguageServer.Host.dll'
-
-return {
- default_config = {
- filetypes = { 'xml.csproj', 'xml.fsproj', 'sln' },
- root_dir = util.find_git_ancestor,
- init_options = {},
- cmd = { 'dotnet', host_dll_name },
- },
- docs = {
- description = [[
-https://github.com/tintoy/msbuild-project-tools-server/
-
-MSBuild Project Tools Server can be installed by following the README.MD on the above repository.
-
-Example config:
-```lua
-lspconfig.msbuild_project_tools_server.setup {
- cmd = {'dotnet', '/path/to/server/MSBuildProjectTools.LanguageServer.Host.dll'}
-}
-```
-
-]],
- default_config = {
- root_dir = [[root_pattern('.git')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/mutt_ls.lua b/lua/lspconfig/server_configurations/mutt_ls.lua
deleted file mode 100644
index 2026bf92..00000000
--- a/lua/lspconfig/server_configurations/mutt_ls.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'mutt-language-server' },
- filetypes = { 'muttrc', 'neomuttrc' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/neomutt/mutt-language-server
-
-A language server for (neo)mutt's muttrc. It can be installed via pip.
-
-```sh
-pip install mutt-language-server
-```
- ]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/nelua_lsp.lua b/lua/lspconfig/server_configurations/nelua_lsp.lua
deleted file mode 100644
index ab5faab7..00000000
--- a/lua/lspconfig/server_configurations/nelua_lsp.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- filetypes = { 'nelua' },
- root_dir = util.root_pattern('Makefile', '.git', '*.nelua'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/codehz/nelua-lsp
-
-nelua-lsp is an experimental nelua language server.
-
-You need [nelua.vim](https://github.com/stefanos82/nelua.vim/blob/main/ftdetect/nelua.vim) for nelua files to be recognized or add this to your config:
-
-in vimscript:
-```vimscript
-au BufNewFile,BufRead *.nelua setf nelua
-```
-
-in lua:
-```lua
-vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { pattern = { "*.nelua" }, command = "setf nelua"})
-```
-
-**By default, nelua-lsp 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
-require'lspconfig'.nelua_lsp.setup {
- cmd = { "nelua", "-L", "/path/to/nelua-lsp/", "--script", "/path/to/nelua-lsp/nelua-lsp.lua" },
-}
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/neocmake.lua b/lua/lspconfig/server_configurations/neocmake.lua
deleted file mode 100644
index 03b1c528..00000000
--- a/lua/lspconfig/server_configurations/neocmake.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = { '.git', 'build', 'cmake' }
-return {
- default_config = {
- cmd = { 'neocmakelsp', '--stdio' },
- filetypes = { 'cmake' },
- root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/Decodetalkers/neocmakelsp
-
-CMake LSP Implementation
-
-Neovim does not currently include built-in snippets. `neocmakelsp` 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'.neocmake.setup {
- capabilities = capabilities,
-}
-```
-]],
- default_config = {
- root_dir = [[root_pattern('.git', 'cmake')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/nextls.lua b/lua/lspconfig/server_configurations/nextls.lua
deleted file mode 100644
index acecaf76..00000000
--- a/lua/lspconfig/server_configurations/nextls.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
- root_dir = function(fname)
- return util.root_pattern 'mix.exs'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/elixir-tools/next-ls
-
-**By default, next-ls does not set its `cmd`. Please see the following [detailed instructions](https://www.elixir-tools.dev/docs/next-ls/installation/) for possible installation methods.**
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/nginx_language_server.lua b/lua/lspconfig/server_configurations/nginx_language_server.lua
deleted file mode 100644
index 9dfc0b5d..00000000
--- a/lua/lspconfig/server_configurations/nginx_language_server.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'nginx-language-server' },
- filetypes = { 'nginx' },
- root_dir = function(fname)
- return util.root_pattern('nginx.conf', '.git')(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://pypi.org/project/nginx-language-server/
-
-`nginx-language-server` can be installed via pip:
-
-```sh
-pip install -U nginx-language-server
-```
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/nickel_ls.lua b/lua/lspconfig/server_configurations/nickel_ls.lua
deleted file mode 100644
index 391abfee..00000000
--- a/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 prerequisite for autostarting a server),
-install the [Nickel vim plugin](https://github.com/nickel-lang/vim-nickel).
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/nil_ls.lua b/lua/lspconfig/server_configurations/nil_ls.lua
deleted file mode 100644
index 49044c12..00000000
--- a/lua/lspconfig/server_configurations/nil_ls.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'nil' },
- filetypes = { 'nix' },
- single_file_support = true,
- root_dir = util.root_pattern('flake.nix', '.git'),
- },
- docs = {
- description = [[
-https://github.com/oxalica/nil
-
-A new language server for Nix Expression Language.
-
-If you are using Nix with Flakes support, run `nix profile install github:oxalica/nil` to install.
-Check the repository README for more information.
-
-_See an example config at https://github.com/oxalica/nil/blob/main/dev/nvim-lsp.nix._
- ]],
- default_config = {
- root_dir = [[root_pattern("flake.nix", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/nim_langserver.lua b/lua/lspconfig/server_configurations/nim_langserver.lua
deleted file mode 100644
index f3c48273..00000000
--- a/lua/lspconfig/server_configurations/nim_langserver.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'nimlangserver' },
- 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/nim-lang/langserver
-
-
-`nim-langserver` can be installed via the `nimble` package manager:
-```sh
-nimble install nimlangserver
-```
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/nimls.lua b/lua/lspconfig/server_configurations/nimls.lua
deleted file mode 100644
index 3c1aeb2b..00000000
--- a/lua/lspconfig/server_configurations/nimls.lua
+++ /dev/null
@@ -1,23 +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/lua/lspconfig/server_configurations/nixd.lua b/lua/lspconfig/server_configurations/nixd.lua
deleted file mode 100644
index b6289db1..00000000
--- a/lua/lspconfig/server_configurations/nixd.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'nixd' },
- filetypes = { 'nix' },
- single_file_support = true,
- root_dir = function(fname)
- return util.root_pattern 'flake.nix'(fname) or util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/nix-community/nixd
-
-Nix language server, based on nix libraries.
-
-If you are using Nix with Flakes support, run `nix profile install github:nix-community/nixd` to install.
-Check the repository README for more information.
- ]],
- default_config = {
- root_dir = [[root_pattern("flake.nix",".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/nomad_lsp.lua b/lua/lspconfig/server_configurations/nomad_lsp.lua
deleted file mode 100644
index 5ffa98a0..00000000
--- a/lua/lspconfig/server_configurations/nomad_lsp.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-local bin_name = 'nomad-lsp'
-
-if vim.fn.has 'win32' == 1 then
- bin_name = bin_name .. '.exe'
-end
-
-return {
- default_config = {
- cmd = { bin_name },
- filetypes = { 'hcl.nomad', 'nomad' },
- root_dir = util.root_pattern '*.nomad',
- },
- docs = {
- description = [[
-https://github.com/juliosueiras/nomad-lsp
-
-Written in Go, compilation is needed for `nomad_lsp` to be used. Please see the [original repository](https://github.com/juliosuieras/nomad-lsp).
-
-Add the executable to your system or vim PATH and it will be set to go.
-
-No configuration option is needed unless you choose not to add `nomad-lsp` executable to the PATH. You should know what you are doing if you choose so.
-
-```lua
-require('lspconfig').nomad_lsp.setup{ }
-```
-
-However, a `hcl.nomad` or `nomad` filetype should be defined.
-
-Description of your jobs should be written in `.nomad` files for the LSP client to configure the server's `root_dir` configuration option.
-]],
- default_config = {
- root_dir = [[util.root_pattern("hcl.nomad", "nomad")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ntt.lua b/lua/lspconfig/server_configurations/ntt.lua
deleted file mode 100644
index 0f68a89d..00000000
--- a/lua/lspconfig/server_configurations/ntt.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-local bin_name = 'ntt'
-
-return {
- default_config = {
- cmd = { bin_name, 'langserver' },
- filetypes = { 'ttcn' },
- root_dir = util.root_pattern '.git',
- },
- docs = {
- description = [[
-https://github.com/nokia/ntt
-Installation instructions can be found [here](https://github.com/nokia/ntt#Install).
-Can be configured by passing a "settings" object to `ntt.setup{}`:
-```lua
-require('lspconfig').ntt.setup{
- settings = {
- ntt = {
- }
- }
-}
-```
-]],
- default_config = {
- root_dir = [[util.root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/nushell.lua b/lua/lspconfig/server_configurations/nushell.lua
deleted file mode 100644
index 13bd34e2..00000000
--- a/lua/lspconfig/server_configurations/nushell.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'nu', '--lsp' },
- filetypes = { 'nu' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/nushell/nushell
-
-Nushell built-in language server.
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/nxls.lua b/lua/lspconfig/server_configurations/nxls.lua
deleted file mode 100644
index e3d38743..00000000
--- a/lua/lspconfig/server_configurations/nxls.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'nxls', '--stdio' },
- filetypes = { 'json', 'jsonc' },
- root_dir = util.root_pattern('nx.json', '.git'),
- },
- docs = {
- description = [[
-https://github.com/nrwl/nx-console/tree/master/apps/nxls
-
-nxls, a language server for Nx Workspaces
-
-`nxls` can be installed via `npm`:
-```sh
-npm i -g nxls
-```
-]],
- default_config = {
- root_dir = [[util.root_pattern]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ocamlls.lua b/lua/lspconfig/server_configurations/ocamlls.lua
deleted file mode 100644
index 8526f3e2..00000000
--- a/lua/lspconfig/server_configurations/ocamlls.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ocaml-language-server', '--stdio' },
- 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/lua/lspconfig/server_configurations/ocamllsp.lua b/lua/lspconfig/server_configurations/ocamllsp.lua
deleted file mode 100644
index 4f33c9a6..00000000
--- a/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',
- dune = 'dune',
-}
-
-local get_language_id = function(_, ftype)
- return language_id_of[ftype]
-end
-
-return {
- default_config = {
- cmd = { 'ocamllsp' },
- filetypes = { 'ocaml', 'menhir', 'ocamlinterface', 'ocamllex', 'reason', 'dune' },
- root_dir = util.root_pattern('*.opam', 'esy.json', 'package.json', '.git', 'dune-project', 'dune-workspace'),
- 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 install ocaml-lsp-server
-```
- ]],
- default_config = {
- root_dir = [[root_pattern("*.opam", "esy.json", "package.json", ".git", "dune-project", "dune-workspace")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ols.lua b/lua/lspconfig/server_configurations/ols.lua
deleted file mode 100644
index 6b890f60..00000000
--- a/lua/lspconfig/server_configurations/ols.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ols' },
- filetypes = { 'odin' },
- root_dir = util.root_pattern('ols.json', '.git', '*.odin'),
- },
- docs = {
- description = [[
- https://github.com/DanielGavin/ols
-
- `Odin Language Server`.
- ]],
- default_config = {
- root_dir = [[util.root_pattern("ols.json", ".git", "*.odin")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/omnisharp.lua b/lua/lspconfig/server_configurations/omnisharp.lua
deleted file mode 100644
index 71af00a6..00000000
--- a/lua/lspconfig/server_configurations/omnisharp.lua
+++ /dev/null
@@ -1,144 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- settings = {
- FormattingOptions = {
- -- Enables support for reading code style, naming convention and analyzer
- -- settings from .editorconfig.
- EnableEditorConfigSupport = true,
- -- Specifies whether 'using' directives should be grouped and sorted during
- -- document formatting.
- OrganizeImports = nil,
- },
- MsBuild = {
- -- If true, MSBuild project system will only load projects for files that
- -- were opened in the editor. This setting is useful for big C# codebases
- -- and allows for faster initialization of code navigation features only
- -- for projects that are relevant to code that is being edited. With this
- -- setting enabled OmniSharp may load fewer projects and may thus display
- -- incomplete reference lists for symbols.
- LoadProjectsOnDemand = nil,
- },
- RoslynExtensionsOptions = {
- -- Enables support for roslyn analyzers, code fixes and rulesets.
- EnableAnalyzersSupport = nil,
- -- Enables support for showing unimported types and unimported extension
- -- methods in completion lists. When committed, the appropriate using
- -- directive will be added at the top of the current file. This option can
- -- have a negative impact on initial completion responsiveness,
- -- particularly for the first few completion sessions after opening a
- -- solution.
- EnableImportCompletion = nil,
- -- Only run analyzers against open files when 'enableRoslynAnalyzers' is
- -- true
- AnalyzeOpenDocumentsOnly = nil,
- },
- Sdk = {
- -- Specifies whether to include preview versions of the .NET SDK when
- -- determining which version to use for project loading.
- IncludePrereleases = true,
- },
- },
-
- filetypes = { 'cs', 'vb' },
- root_dir = util.root_pattern('*.sln', '*.csproj', 'omnisharp.json', 'function.json'),
- on_new_config = function(new_config, _)
- -- Get the initially configured value of `cmd`
- new_config.cmd = { unpack(new_config.cmd or {}) }
-
- -- Append hard-coded command arguments
- table.insert(new_config.cmd, '-z') -- https://github.com/OmniSharp/omnisharp-vscode/pull/4300
- vim.list_extend(new_config.cmd, { '--hostPID', tostring(vim.fn.getpid()) })
- table.insert(new_config.cmd, 'DotNet:enablePackageRestore=false')
- vim.list_extend(new_config.cmd, { '--encoding', 'utf-8' })
- table.insert(new_config.cmd, '--languageserver')
-
- -- Append configuration-dependent command arguments
- local function flatten(tbl)
- local ret = {}
- for k, v in pairs(tbl) do
- if type(v) == 'table' then
- for _, pair in ipairs(flatten(v)) do
- ret[#ret + 1] = k .. ':' .. pair
- end
- else
- ret[#ret + 1] = k .. '=' .. vim.inspect(v)
- end
- end
- return ret
- end
- if new_config.settings then
- vim.list_extend(new_config.cmd, flatten(new_config.settings))
- end
-
- -- Disable the handling of multiple workspaces in a single instance
- new_config.capabilities = vim.deepcopy(new_config.capabilities)
- new_config.capabilities.workspace.workspaceFolders = false -- https://github.com/OmniSharp/omnisharp-roslyn/issues/909
- end,
- init_options = {},
- },
- 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.
-
-For `go_to_definition` to work fully, extended `textDocument/definition` handler is needed, for example see [omnisharp-extended-lsp.nvim](https://github.com/Hoffs/omnisharp-extended-lsp.nvim)
-
-```lua
-require'lspconfig'.omnisharp.setup {
- cmd = { "dotnet", "/path/to/omnisharp/OmniSharp.dll" },
-
- settings = {
- FormattingOptions = {
- -- Enables support for reading code style, naming convention and analyzer
- -- settings from .editorconfig.
- EnableEditorConfigSupport = true,
- -- Specifies whether 'using' directives should be grouped and sorted during
- -- document formatting.
- OrganizeImports = nil,
- },
- MsBuild = {
- -- If true, MSBuild project system will only load projects for files that
- -- were opened in the editor. This setting is useful for big C# codebases
- -- and allows for faster initialization of code navigation features only
- -- for projects that are relevant to code that is being edited. With this
- -- setting enabled OmniSharp may load fewer projects and may thus display
- -- incomplete reference lists for symbols.
- LoadProjectsOnDemand = nil,
- },
- RoslynExtensionsOptions = {
- -- Enables support for roslyn analyzers, code fixes and rulesets.
- EnableAnalyzersSupport = nil,
- -- Enables support for showing unimported types and unimported extension
- -- methods in completion lists. When committed, the appropriate using
- -- directive will be added at the top of the current file. This option can
- -- have a negative impact on initial completion responsiveness,
- -- particularly for the first few completion sessions after opening a
- -- solution.
- EnableImportCompletion = nil,
- -- Only run analyzers against open files when 'enableRoslynAnalyzers' is
- -- true
- AnalyzeOpenDocumentsOnly = nil,
- },
- Sdk = {
- -- Specifies whether to include preview versions of the .NET SDK when
- -- determining which version to use for project loading.
- IncludePrereleases = true,
- },
- },
-}
-```
-]],
- default_config = {
- root_dir = [[root_pattern("*.sln", "*.csproj", "omnisharp.json", "function.json")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/opencl_ls.lua b/lua/lspconfig/server_configurations/opencl_ls.lua
deleted file mode 100644
index dc88d24c..00000000
--- a/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/lua/lspconfig/server_configurations/openedge_ls.lua b/lua/lspconfig/server_configurations/openedge_ls.lua
deleted file mode 100644
index 682b6830..00000000
--- a/lua/lspconfig/server_configurations/openedge_ls.lua
+++ /dev/null
@@ -1,55 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- filetypes = { 'progress' },
- root_dir = util.root_pattern 'openedge-project.json',
- on_new_config = function(config)
- if not config.cmd and config.oe_jar_path then
- config.cmd = {
- 'java',
- '--add-opens=java.base/java.lang=ALL-UNNAMED',
- '--add-opens=java.base/java.math=ALL-UNNAMED',
- '--add-opens=java.base/java.util=ALL-UNNAMED',
- '--add-opens=java.base/java.util.concurrent=ALL-UNNAMED',
- '--add-opens=java.base/java.net=ALL-UNNAMED',
- '--add-opens=java.base/java.text=ALL-UNNAMED',
- }
- if config.debug then
- config.cmd[#config.cmd + 1] = '-Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG'
- end
- config.cmd[#config.cmd + 1] = '-jar'
- config.cmd[#config.cmd + 1] = config.oe_jar_path
- if config.dlc then
- config.cmd[#config.cmd + 1] = '--dlc'
- config.cmd[#config.cmd + 1] = config.dlc
- end
- if config.trace then
- config.cmd[#config.cmd + 1] = '--trace'
- end
- end
- end,
- },
- docs = {
- description = [[
-[Language server](https://github.com/vscode-abl/vscode-abl) for Progress OpenEdge ABL.
-
-For manual installation, download abl-lsp.jar from the [VSCode
-extension](https://github.com/vscode-abl/vscode-abl/releases/latest).
-
-Configuration
-
-```lua
-require('lspconfig').['openedge_ls'].setup {
- oe_jar_path = '/path/to/abl-lsp.jar',
- dlc = '12.2:/path/to/dlc-12.2', -- Version number and OpenEdge root directory (colon separator)
- debug = false, -- Set to true for debug logging
- trace = false -- Set to true for trace logging (REALLY verbose)
-}
-```
-]],
- default_config = {
- root_dir = [[root_pattern('openedge-project.json')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/openscad_ls.lua b/lua/lspconfig/server_configurations/openscad_ls.lua
deleted file mode 100644
index e5ca9cac..00000000
--- a/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/lua/lspconfig/server_configurations/openscad_lsp.lua b/lua/lspconfig/server_configurations/openscad_lsp.lua
deleted file mode 100644
index f00a3774..00000000
--- a/lua/lspconfig/server_configurations/openscad_lsp.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'openscad-lsp', '--stdio' },
- filetypes = { 'openscad' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [=[
-https://github.com/Leathong/openscad-LSP
-
-A Language Server Protocol server for OpenSCAD
-
-You can build and install `openscad-lsp` binary with `cargo`:
-```sh
-cargo install openscad-lsp
-```
-]=],
- },
-}
diff --git a/lua/lspconfig/server_configurations/pact_ls.lua b/lua/lspconfig/server_configurations/pact_ls.lua
deleted file mode 100644
index 1eb89769..00000000
--- a/lua/lspconfig/server_configurations/pact_ls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'pact-lsp' },
- filetypes = { 'pact' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/kadena-io/pact-lsp
-
-The Pact language server
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/pasls.lua b/lua/lspconfig/server_configurations/pasls.lua
deleted file mode 100644
index 19ef8486..00000000
--- a/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.root_pattern('*.lpi', '*.lpk', '.git'),
- 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/lua/lspconfig/server_configurations/pbls.lua b/lua/lspconfig/server_configurations/pbls.lua
deleted file mode 100644
index d1fbe229..00000000
--- a/lua/lspconfig/server_configurations/pbls.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'pbls' },
- filetypes = { 'proto' },
- root_dir = util.root_pattern('.pbls.toml', '.git'),
- },
- docs = {
- description = [[
-https://git.sr.ht/~rrc/pbls
-
-Prerequisites: Ensure protoc is on your $PATH.
-
-`pbls` can be installed via `cargo install`:
-```sh
-cargo install --git https://git.sr.ht/~rrc/pbls
-```
-
-pbls is a Language Server for protobuf
-]],
- default_config = {
- root_dir = [[root_pattern(".pbls.toml", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/perlls.lua b/lua/lspconfig/server_configurations/perlls.lua
deleted file mode 100644
index fba57d03..00000000
--- a/lua/lspconfig/server_configurations/perlls.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = {
- 'perl',
- '-MPerl::LanguageServer',
- '-e',
- 'Perl::LanguageServer::run',
- '--',
- '--port 13603',
- '--nostdio 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/lua/lspconfig/server_configurations/perlnavigator.lua b/lua/lspconfig/server_configurations/perlnavigator.lua
deleted file mode 100644
index d3c8f7f0..00000000
--- a/lua/lspconfig/server_configurations/perlnavigator.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'perlnavigator' },
- filetypes = { 'perl' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/bscan/PerlNavigator
-
-A Perl language server. It can be installed via npm:
-
-```sh
-npm i -g perlnavigator-server
-```
-
-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/lua/lspconfig/server_configurations/perlpls.lua b/lua/lspconfig/server_configurations/perlpls.lua
deleted file mode 100644
index 33260281..00000000
--- a/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/lua/lspconfig/server_configurations/pest_ls.lua b/lua/lspconfig/server_configurations/pest_ls.lua
deleted file mode 100644
index 4a56ea9f..00000000
--- a/lua/lspconfig/server_configurations/pest_ls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'pest-language-server' },
- filetypes = { 'pest' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/pest-parser/pest-ide-tools
-
-Language server for pest grammars.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/phan.lua b/lua/lspconfig/server_configurations/phan.lua
deleted file mode 100644
index bb5242e6..00000000
--- a/lua/lspconfig/server_configurations/phan.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-local util = require 'lspconfig.util'
-
-local cmd = {
- 'phan',
- '-m',
- 'json',
- '--no-color',
- '--no-progress-bar',
- '-x',
- '-u',
- '-S',
- '--language-server-on-stdin',
- '--allow-polyfill-parser',
-}
-
-return {
- default_config = {
- cmd = cmd,
- filetypes = { 'php' },
- single_file_support = true,
- 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/phan/phan
-
-Installation: https://github.com/phan/phan#getting-started
-]],
- default_config = {
- cmd = cmd,
- root_dir = [[root_pattern("composer.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/phpactor.lua b/lua/lspconfig/server_configurations/phpactor.lua
deleted file mode 100644
index b3c40093..00000000
--- a/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', '.phpactor.json', '.phpactor.yml')(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/lua/lspconfig/server_configurations/pico8_ls.lua b/lua/lspconfig/server_configurations/pico8_ls.lua
deleted file mode 100644
index 0da26b72..00000000
--- a/lua/lspconfig/server_configurations/pico8_ls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'pico8-ls', '--stdio' },
- filetypes = { 'p8' },
- root_dir = util.root_pattern '*.p8',
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/japhib/pico8-ls
-
-Full language support for the PICO-8 dialect of Lua.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/pkgbuild_language_server.lua b/lua/lspconfig/server_configurations/pkgbuild_language_server.lua
deleted file mode 100644
index d3c9f31b..00000000
--- a/lua/lspconfig/server_configurations/pkgbuild_language_server.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'pkgbuild-language-server' },
- filetypes = { 'PKGBUILD' },
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-https://github.com/Freed-Wu/pkgbuild-language-server
-
-Language server for ArchLinux/Windows Msys2's PKGBUILD.
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/please.lua b/lua/lspconfig/server_configurations/please.lua
deleted file mode 100644
index 085d1e70..00000000
--- a/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/lua/lspconfig/server_configurations/postgres_lsp.lua b/lua/lspconfig/server_configurations/postgres_lsp.lua
deleted file mode 100644
index a45824a9..00000000
--- a/lua/lspconfig/server_configurations/postgres_lsp.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'postgres_lsp' },
- filetypes = { 'sql' },
- root_dir = util.root_pattern 'root-file.txt',
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/supabase/postgres_lsp
-
-A Language Server for Postgres
- ]],
- default_config = {
- root_dir = [[util.root_pattern 'root-file.txt']],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/powershell_es.lua b/lua/lspconfig/server_configurations/powershell_es.lua
deleted file mode 100644
index d4cb7448..00000000
--- a/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/lua/lspconfig/server_configurations/prismals.lua b/lua/lspconfig/server_configurations/prismals.lua
deleted file mode 100644
index 16d252e8..00000000
--- a/lua/lspconfig/server_configurations/prismals.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'prisma-language-server', '--stdio' },
- 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/lua/lspconfig/server_configurations/prolog_ls.lua b/lua/lspconfig/server_configurations/prolog_ls.lua
deleted file mode 100644
index 91b4ba3b..00000000
--- a/lua/lspconfig/server_configurations/prolog_ls.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = {
- 'swipl',
- '-g',
- 'use_module(library(lsp_server)).',
- '-g',
- 'lsp_server:main',
- '-t',
- 'halt',
- '--',
- 'stdio',
- },
- filetypes = { 'prolog' },
- root_dir = util.root_pattern 'pack.pl',
- single_file_support = true,
- },
- docs = {
- description = [[
- https://github.com/jamesnvc/lsp_server
-
- Language Server Protocol server for SWI-Prolog
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/prosemd_lsp.lua b/lua/lspconfig/server_configurations/prosemd_lsp.lua
deleted file mode 100644
index 048e4b49..00000000
--- a/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/lua/lspconfig/server_configurations/protols.lua b/lua/lspconfig/server_configurations/protols.lua
deleted file mode 100644
index 2df30b0d..00000000
--- a/lua/lspconfig/server_configurations/protols.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'protols' },
- filetypes = { 'proto' },
- single_file_support = true,
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-https://github.com/coder3101/protols
-
-`protols` can be installed via `cargo`:
-```sh
-cargo install protols
-```
-
-A Language Server for proto3 files. It uses tree-sitter and runs in single file mode.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/psalm.lua b/lua/lspconfig/server_configurations/psalm.lua
deleted file mode 100644
index f0f25f2a..00000000
--- a/lua/lspconfig/server_configurations/psalm.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'psalm', '--language-server' },
- 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/lua/lspconfig/server_configurations/pug.lua b/lua/lspconfig/server_configurations/pug.lua
deleted file mode 100644
index 28f7db61..00000000
--- a/lua/lspconfig/server_configurations/pug.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'pug-lsp' },
- filetypes = { 'pug' },
- root_dir = util.find_package_json_ancestor,
- },
- docs = {
- description = [[
-https://github.com/opa-oz/pug-lsp
-
-An implementation of the Language Protocol Server for [Pug.js](http://pugjs.org)
-
-PugLSP can be installed via `go get github.com/opa-oz/pug-lsp`, or manually downloaded from [releases page](https://github.com/opa-oz/pug-lsp/releases)
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/puppet.lua b/lua/lspconfig/server_configurations/puppet.lua
deleted file mode 100644
index 18a1532c..00000000
--- a/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/lua/lspconfig/server_configurations/purescriptls.lua b/lua/lspconfig/server_configurations/purescriptls.lua
deleted file mode 100644
index baed5045..00000000
--- a/lua/lspconfig/server_configurations/purescriptls.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'purescript-language-server', '--stdio' },
- filetypes = { 'purescript' },
- root_dir = util.root_pattern(
- 'bower.json',
- 'flake.nix',
- 'psc-package.json',
- 'shell.nix',
- 'spago.dhall',
- 'spago.yaml'
- ),
- },
- docs = {
- description = [[
-https://github.com/nwolverson/purescript-language-server
-
-The `purescript-language-server` can be added to your project and `$PATH` via
-
-* JavaScript package manager such as npm, pnpm, Yarn, et al.
-* Nix under the `nodePackages` and `nodePackages_latest` package sets
-]],
- default_config = {
- root_dir = [[root_pattern('bower.json', 'flake.nix', 'psc-package.json', 'shell.nix', 'spago.dhall', 'spago.yaml'),]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/pylsp.lua b/lua/lspconfig/server_configurations/pylsp.lua
deleted file mode 100644
index d76b2ea3..00000000
--- a/lua/lspconfig/server_configurations/pylsp.lua
+++ /dev/null
@@ -1,48 +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.
-
-See the [project's README](https://github.com/python-lsp/python-lsp-server) for installation instructions.
-
-Configuration options are documented [here](https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md).
-In order to configure an option, it must be translated to a nested Lua table and included in the `settings` argument to the `setup{}` function.
-For example, in order to set the `pylsp.plugins.pycodestyle.ignore` option:
-```lua
-require'lspconfig'.pylsp.setup{
- settings = {
- pylsp = {
- plugins = {
- pycodestyle = {
- ignore = {'W391'},
- maxLineLength = 100
- }
- }
- }
- }
-}
-```
-
-Note: This is a community fork of `pyls`.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/pylyzer.lua b/lua/lspconfig/server_configurations/pylyzer.lua
deleted file mode 100644
index 34a4914b..00000000
--- a/lua/lspconfig/server_configurations/pylyzer.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local util = require('lspconfig').util
-
-return {
- default_config = {
- cmd = { 'pylyzer', '--server' },
- filetypes = { 'python' },
- root_dir = function(fname)
- local root_files = {
- 'setup.py',
- 'tox.ini',
- 'requirements.txt',
- 'Pipfile',
- 'pyproject.toml',
- }
- return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- settings = {
- python = {
- diagnostics = true,
- inlayHints = true,
- smartCompletion = true,
- checkOnType = false,
- },
- },
- },
- docs = {
- description = [[
- https://github.com/mtshiba/pylyzer
-
- `pylyzer`, a fast static code analyzer & language server for Python.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/pyre.lua b/lua/lspconfig/server_configurations/pyre.lua
deleted file mode 100644
index 5c2f8fb7..00000000
--- a/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/lua/lspconfig/server_configurations/pyright.lua b/lua/lspconfig/server_configurations/pyright.lua
deleted file mode 100644
index 51681dfa..00000000
--- a/lua/lspconfig/server_configurations/pyright.lua
+++ /dev/null
@@ -1,80 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'pyproject.toml',
- 'setup.py',
- 'setup.cfg',
- 'requirements.txt',
- 'Pipfile',
- 'pyrightconfig.json',
- '.git',
-}
-
-local function organize_imports()
- local params = {
- command = 'pyright.organizeimports',
- arguments = { vim.uri_from_bufnr(0) },
- }
-
- local clients = util.get_lsp_clients {
- bufnr = vim.api.nvim_get_current_buf(),
- name = 'pyright',
- }
- for _, client in ipairs(clients) do
- client.request('workspace/executeCommand', params, nil, 0)
- end
-end
-
-local function set_python_path(path)
- local clients = util.get_lsp_clients {
- bufnr = vim.api.nvim_get_current_buf(),
- name = 'pyright',
- }
- for _, client in ipairs(clients) do
- if client.settings then
- client.settings.python = vim.tbl_deep_extend('force', client.settings.python, { pythonPath = path })
- else
- client.config.settings = vim.tbl_deep_extend('force', client.config.settings, { python = { pythonPath = path } })
- end
- client.notify('workspace/didChangeConfiguration', { settings = nil })
- end
-end
-
-return {
- default_config = {
- cmd = { 'pyright-langserver', '--stdio' },
- filetypes = { 'python' },
- root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(fname)
- end,
- single_file_support = true,
- settings = {
- python = {
- analysis = {
- autoSearchPaths = true,
- useLibraryCodeForTypes = true,
- diagnosticMode = 'openFilesOnly',
- },
- },
- },
- },
- commands = {
- PyrightOrganizeImports = {
- organize_imports,
- description = 'Organize Imports',
- },
- PyrightSetPythonPath = {
- set_python_path,
- description = 'Reconfigure pyright with the provided python path',
- nargs = 1,
- complete = 'file',
- },
- },
- docs = {
- description = [[
-https://github.com/microsoft/pyright
-
-`pyright`, a static type checker and language server for python
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/qml_lsp.lua b/lua/lspconfig/server_configurations/qml_lsp.lua
deleted file mode 100644
index 0f334a32..00000000
--- a/lua/lspconfig/server_configurations/qml_lsp.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'qml-lsp' },
- filetypes = { 'qmljs' },
- root_dir = util.root_pattern '*.qml',
- },
- docs = {
- description = [[
-https://invent.kde.org/sdk/qml-lsp
-
-LSP implementation for QML (autocompletion, live linting, etc. in editors)
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/qmlls.lua b/lua/lspconfig/server_configurations/qmlls.lua
deleted file mode 100644
index b0451594..00000000
--- a/lua/lspconfig/server_configurations/qmlls.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'qmlls' },
- filetypes = { 'qml', 'qmljs' },
- root_dir = function(fname)
- return util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/qt/qtdeclarative
-
-LSP implementation for QML (autocompletion, live linting, etc. in editors),
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/quick_lint_js.lua b/lua/lspconfig/server_configurations/quick_lint_js.lua
deleted file mode 100644
index 762a8166..00000000
--- a/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', 'typescript' },
- 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/lua/lspconfig/server_configurations/r_language_server.lua b/lua/lspconfig/server_configurations/r_language_server.lua
deleted file mode 100644
index bd315390..00000000
--- a/lua/lspconfig/server_configurations/r_language_server.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'R', '--no-echo', '-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/lua/lspconfig/server_configurations/racket_langserver.lua b/lua/lspconfig/server_configurations/racket_langserver.lua
deleted file mode 100644
index 25bd0ab1..00000000
--- a/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/lua/lspconfig/server_configurations/raku_navigator.lua b/lua/lspconfig/server_configurations/raku_navigator.lua
deleted file mode 100644
index 26ff321e..00000000
--- a/lua/lspconfig/server_configurations/raku_navigator.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = {},
- filetypes = { 'raku' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/bscan/RakuNavigator
-A Raku language server
-**By default, raku_navigator 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 RakuNavigator repo, install based on the [instructions](https://github.com/bscan/raku_Navigator#installation-for-other-editors),
-and point `cmd` to `server.js` inside the `server/out` directory:
-```lua
-cmd = {'node', '<path_to_repo>/server/out/server.js', '--stdio'}
-```
-At minimum, you will need `raku` in your path. If you want to use a non-standard `raku` you will need to set your configuration like so:
-```lua
-settings = {
- raku_navigator = {
- rakuPath = '/some/odd/location/my-raku'
- }
-}
-```
-The `contributes.configuration.properties` section of `raku_navigator`'s `package.json` has all available configuration settings. All
-settings have a reasonable default, but, at minimum, you may want to point `raku_navigator` at your `raku_tidy` and `raku_critic` configurations.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/reason_ls.lua b/lua/lspconfig/server_configurations/reason_ls.lua
deleted file mode 100644
index 75028c7c..00000000
--- a/lua/lspconfig/server_configurations/reason_ls.lua
+++ /dev/null
@@ -1,16 +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
-
-You can install reason language server from [reason-language-server](https://github.com/jaredly/reason-language-server) repository.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/regal.lua b/lua/lspconfig/server_configurations/regal.lua
deleted file mode 100644
index 24ec0928..00000000
--- a/lua/lspconfig/server_configurations/regal.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'regal', 'language-server' },
- filetypes = { 'rego' },
- root_dir = function(fname)
- return util.root_pattern '*.rego'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/StyraInc/regal
-
-A linter for Rego, with support for running as an LSP server.
-
-`regal` can be installed by running:
-```sh
-go install github.com/StyraInc/regal@latest
-```
- ]],
- default_config = {
- root_dir = [[root_pattern("*.rego", ".git")]],
- single_file_support = true,
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/regols.lua b/lua/lspconfig/server_configurations/regols.lua
deleted file mode 100644
index f872a524..00000000
--- a/lua/lspconfig/server_configurations/regols.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'regols' },
- filetypes = { 'rego' },
- root_dir = function(fname)
- return util.root_pattern '*.rego'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/kitagry/regols
-
-OPA Rego language server.
-
-`regols` can be installed by running:
-```sh
-go install github.com/kitagry/regols@latest
-```
- ]],
- default_config = {
- root_dir = [[root_pattern("*.rego", ".git")]],
- single_file_support = true,
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/relay_lsp.lua b/lua/lspconfig/server_configurations/relay_lsp.lua
deleted file mode 100644
index acaa617a..00000000
--- a/lua/lspconfig/server_configurations/relay_lsp.lua
+++ /dev/null
@@ -1,110 +0,0 @@
-local util = require 'lspconfig.util'
-local log = require 'vim.lsp.log'
-
-return {
- default_config = {
- -- (default: false) Whether or not we should automatically start the
- -- Relay Compiler in watch mode when you open a project
- auto_start_compiler = false,
-
- -- (default: nil) Path to a relay config relative to the `root_dir`.
- -- Without this, the compiler will search for your config. This is
- -- helpful if your relay project is in a nested directory.
- path_to_config = nil,
-
- cmd = { 'relay-compiler', 'lsp' },
- filetypes = {
- 'javascript',
- 'javascriptreact',
- 'javascript.jsx',
- 'typescript',
- 'typescriptreact',
- 'typescript.tsx',
- },
- root_dir = util.root_pattern('relay.config.*', 'package.json'),
- on_new_config = function(config, root_dir)
- local project_root = util.find_node_modules_ancestor(root_dir)
- local node_bin_path = util.path.join(project_root, 'node_modules', '.bin')
- local compiler_cmd = { util.path.join(node_bin_path, 'relay-compiler'), '--watch' }
- local path = node_bin_path .. util.path.path_separator .. vim.env.PATH
- if config.cmd_env then
- config.cmd_env.PATH = path
- else
- config.cmd_env = { PATH = path }
- end
-
- if config.path_to_config then
- config.path_to_config = util.path.sanitize(config.path_to_config)
- local path_to_config = util.path.join(root_dir, config.path_to_config)
- if util.path.exists(path_to_config) then
- vim.list_extend(config.cmd, { config.path_to_config })
- vim.list_extend(compiler_cmd, { config.path_to_config })
- else
- log.error "[Relay LSP] Can't find Relay config file. Fallback to the default location..."
- end
- end
- if config.auto_start_compiler then
- vim.fn.jobstart(compiler_cmd, {
- on_exit = function()
- log.info '[Relay LSP] Relay Compiler exited'
- end,
- cwd = project_root,
- })
- end
- end,
- handlers = {
- ['window/showStatus'] = function(_, result)
- if not result then
- return {}
- end
- local log_message = string.format('[Relay LSP] %q', result.message)
- if result.type == 1 then
- log.error(log_message)
- end
- if result.type == 2 then
- log.warn(log_message)
- end
- if result.type == 3 then
- log.info(log_message)
- end
- return {}
- end,
- },
- },
- docs = {
- description = [[
- https://github.com/facebook/relay
- `Relay` is a JavaScript framework for building data-driven React applications
-
- Setup:
-
- - Make sure you have a Relay config file somewhere in your project.
- - We support standard config file formats (`.yml`, `.js`, `.json`), and the the `relay` field in your `package.json`
- - Make sure you have the `relay-compiler` installed in your project. The bare minimum is v13.
- - Make sure you are able to run the `relay-compiler` command from the command line. If `yarn relay-compiler` works, it's very likely that the LSP will work.
- - Remove / disable any conflicting GraphQL LSPs you have installed.
-
- Relay LSP is a part of the Relay Compiler binary and available when adding `relay-compiler` to your project's devDependencies.
-
- ```lua
- require'lspconfig'.relay_lsp.setup {
- -- (default: false) Whether or not we should automatically start
- -- the Relay Compiler in watch mode when you open a project
- auto_start_compiler = false,
-
-
- -- (default: null) Path to a relay config relative to the
- -- `root_dir`. Without this, the compiler will search for your
- -- config. This is helpful if your relay project is in a nested
- -- directory.
- path_to_config = nil,
- }
- ```
- ]],
- default_config = {
- root_dir = [[root_pattern("relay.config.*", "package.json")]],
- auto_start_compiler = false,
- path_to_config = nil,
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/remark_ls.lua b/lua/lspconfig/server_configurations/remark_ls.lua
deleted file mode 100644
index 54eabe7f..00000000
--- a/lua/lspconfig/server_configurations/remark_ls.lua
+++ /dev/null
@@ -1,52 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'remark-language-server', '--stdio' },
- filetypes = { 'markdown' },
- root_dir = util.root_pattern(
- '.remarkrc',
- '.remarkrc.json',
- '.remarkrc.js',
- '.remarkrc.cjs',
- '.remarkrc.mjs',
- '.remarkrc.yml',
- '.remarkrc.yaml',
- '.remarkignore'
- ),
- 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/lua/lspconfig/server_configurations/rescriptls.lua b/lua/lspconfig/server_configurations/rescriptls.lua
deleted file mode 100644
index f7869b34..00000000
--- a/lua/lspconfig/server_configurations/rescriptls.lua
+++ /dev/null
@@ -1,52 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'rescript-language-server', '--stdio' },
- filetypes = { 'rescript' },
- root_dir = util.root_pattern('bsconfig.json', 'rescript.json', '.git'),
- settings = {},
- init_options = {
- extensionConfiguration = {
- -- buggy, prompts much too often, superseded by incrementalTypechecking, below
- askToStartBuild = false,
-
- allowBuiltInFormatter = true, -- lower latency
- incrementalTypechecking = { -- removes the need for external build process
- enabled = true,
- acrossFiles = true,
- },
- cache = { projectConfig = { enabled = true } }, -- speed up latency dramatically
- codeLens = true,
- inlayHints = { enable = true },
- },
- },
- },
- docs = {
- description = [[
-https://github.com/rescript-lang/rescript-vscode/tree/master/server
-
-ReScript Language Server can be installed via npm:
-```sh
-npm install -g @rescript/language-server
-```
-
-See [package.json](https://github.com/rescript-lang/rescript-vscode/blob/master/package.json#L139)
-for init_options supported.
-
-For example, in order to disable the `inlayHints` option:
-```lua
-require'lspconfig'.pylsp.setup{
- settings = {
- rescript = {
- settings = {
- inlayHints = { enable = false },
- },
- },
- }
-}
-```
-]],
- root_dir = [[root_pattern('bsconfig.json', 'rescript.json', '.git')]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/rls.lua b/lua/lspconfig/server_configurations/rls.lua
deleted file mode 100644
index 363b81d2..00000000
--- a/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/lua/lspconfig/server_configurations/rnix.lua b/lua/lspconfig/server_configurations/rnix.lua
deleted file mode 100644
index aa7f00ed..00000000
--- a/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/lua/lspconfig/server_configurations/robotframework_ls.lua b/lua/lspconfig/server_configurations/robotframework_ls.lua
deleted file mode 100644
index d1c25f5a..00000000
--- a/lua/lspconfig/server_configurations/robotframework_ls.lua
+++ /dev/null
@@ -1,23 +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', 'conda.yaml', 'robot.yaml')(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', 'conda.yaml', 'robot.yaml')(fname)"
- .. '\n or util.find_git_ancestor(fname)',
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/roc_ls.lua b/lua/lspconfig/server_configurations/roc_ls.lua
deleted file mode 100644
index 6737736a..00000000
--- a/lua/lspconfig/server_configurations/roc_ls.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'roc_language_server' },
- filetypes = { 'roc' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/roc-lang/roc/tree/main/crates/language_server#roc_language_server
-
-The built-in language server for the Roc programming language.
-[Installation](https://github.com/roc-lang/roc/tree/main/crates/language_server#installing)
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/rome.lua b/lua/lspconfig/server_configurations/rome.lua
deleted file mode 100644
index ed23a189..00000000
--- a/lua/lspconfig/server_configurations/rome.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'rome', 'lsp-proxy' },
- 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.
-
-(Unmaintained, use [Biome](https://biomejs.dev/blog/annoucing-biome) instead.)
-
-```sh
-npm install [-g] rome
-```
-]],
- default_config = {
- root_dir = [[root_pattern('package.json', 'node_modules', '.git')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/rubocop.lua b/lua/lspconfig/server_configurations/rubocop.lua
deleted file mode 100644
index 0d2cd29b..00000000
--- a/lua/lspconfig/server_configurations/rubocop.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'rubocop', '--lsp' },
- filetypes = { 'ruby' },
- root_dir = util.root_pattern('Gemfile', '.git'),
- },
- docs = {
- description = [[
-https://github.com/rubocop/rubocop
- ]],
- default_config = {
- root_dir = [[root_pattern("Gemfile", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ruby_lsp.lua b/lua/lspconfig/server_configurations/ruby_lsp.lua
deleted file mode 100644
index dad56e67..00000000
--- a/lua/lspconfig/server_configurations/ruby_lsp.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ruby-lsp' },
- filetypes = { 'ruby' },
- root_dir = util.root_pattern('Gemfile', '.git'),
- init_options = {
- formatter = 'auto',
- },
- single_file_support = true,
- },
- docs = {
- description = [[
-https://shopify.github.io/ruby-lsp/
-
-This gem is an implementation of the language server protocol specification for
-Ruby, used to improve editor features.
-
-Install the gem. There's no need to require it, since the server is used as a
-standalone executable.
-
-```sh
-group :development do
- gem "ruby-lsp", require: false
-end
-```
- ]],
- default_config = {
- root_dir = [[root_pattern("Gemfile", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ruff.lua b/lua/lspconfig/server_configurations/ruff.lua
deleted file mode 100644
index 1e63c146..00000000
--- a/lua/lspconfig/server_configurations/ruff.lua
+++ /dev/null
@@ -1,48 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'pyproject.toml',
- 'ruff.toml',
- '.ruff.toml',
-}
-
-return {
- default_config = {
- cmd = { 'ruff', 'server' },
- filetypes = { 'python' },
- root_dir = util.root_pattern(unpack(root_files)) or util.find_git_ancestor(),
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/astral-sh/ruff
-
-A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via `pip`.
-
-```sh
-pip install ruff
-```
-
-**Available in Ruff `v0.4.5` in beta and stabilized in Ruff `v0.5.3`.**
-
-This is the new built-in language server written in Rust. It supports the same feature set as `ruff-lsp`, but with superior performance and no installation required. Note that the `ruff-lsp` server will continue to be maintained until further notice.
-
-Server settings can be provided via:
-
-```lua
-require('lspconfig').ruff.setup({
- init_options = {
- settings = {
- -- Server settings should go here
- }
- }
-})
-```
-
-Refer to the [documentation](https://docs.astral.sh/ruff/editors/) for more details.
-
- ]],
- root_dir = [[root_pattern("pyproject.toml", "ruff.toml", ".ruff.toml", ".git")]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ruff_lsp.lua b/lua/lspconfig/server_configurations/ruff_lsp.lua
deleted file mode 100644
index 1a102858..00000000
--- a/lua/lspconfig/server_configurations/ruff_lsp.lua
+++ /dev/null
@@ -1,42 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'pyproject.toml',
- 'ruff.toml',
-}
-
-return {
- default_config = {
- cmd = { 'ruff-lsp' },
- filetypes = { 'python' },
- root_dir = util.root_pattern(unpack(root_files)) or util.find_git_ancestor(),
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/astral-sh/ruff-lsp
-
-A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code transformation tool, written in Rust. It can be installed via pip.
-
-```sh
-pip install ruff-lsp
-```
-
-Extra CLI arguments for `ruff` can be provided via
-
-```lua
-require'lspconfig'.ruff_lsp.setup{
- init_options = {
- settings = {
- -- Any extra CLI arguments for `ruff` go here.
- args = {},
- }
- }
-}
-```
-
- ]],
- root_dir = [[root_pattern("pyproject.toml", "ruff.toml", ".git")]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/rune_languageserver.lua b/lua/lspconfig/server_configurations/rune_languageserver.lua
deleted file mode 100644
index 7f510478..00000000
--- a/lua/lspconfig/server_configurations/rune_languageserver.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'rune-languageserver' },
- filetypes = { 'rune' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://crates.io/crates/rune-languageserver
-
-A language server for the [Rune](https://rune-rs.github.io/) Language,
-an embeddable dynamic programming language for Rust
- ]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/rust_analyzer.lua b/lua/lspconfig/server_configurations/rust_analyzer.lua
deleted file mode 100644
index 13a36207..00000000
--- a/lua/lspconfig/server_configurations/rust_analyzer.lua
+++ /dev/null
@@ -1,122 +0,0 @@
-local util = require 'lspconfig.util'
-local async = require 'lspconfig.async'
-
-local function reload_workspace(bufnr)
- bufnr = util.validate_bufnr(bufnr)
- local clients = util.get_lsp_clients { bufnr = bufnr, name = 'rust_analyzer' }
- for _, client in ipairs(clients) do
- vim.notify 'Reloading Cargo Workspace'
- client.request('rust-analyzer/reloadWorkspace', nil, function(err)
- if err then
- error(tostring(err))
- end
- vim.notify 'Cargo workspace reloaded'
- end, 0)
- end
-end
-
-local function is_library(fname)
- local user_home = util.path.sanitize(vim.env.HOME)
- local cargo_home = os.getenv 'CARGO_HOME' or util.path.join(user_home, '.cargo')
- local registry = util.path.join(cargo_home, 'registry', 'src')
- local git_registry = util.path.join(cargo_home, 'git', 'checkouts')
-
- local rustup_home = os.getenv 'RUSTUP_HOME' or util.path.join(user_home, '.rustup')
- local toolchains = util.path.join(rustup_home, 'toolchains')
-
- for _, item in ipairs { toolchains, registry, git_registry } do
- if util.path.is_descendant(item, fname) then
- local clients = util.get_lsp_clients { name = 'rust_analyzer' }
- return #clients > 0 and clients[#clients].config.root_dir or nil
- end
- end
-end
-
-return {
- default_config = {
- cmd = { 'rust-analyzer' },
- filetypes = { 'rust' },
- single_file_support = true,
- root_dir = function(fname)
- local reuse_active = is_library(fname)
- if reuse_active then
- return reuse_active
- end
-
- local cargo_crate_dir = util.root_pattern 'Cargo.toml'(fname)
- local cargo_workspace_root
-
- if cargo_crate_dir ~= nil then
- local cmd = {
- 'cargo',
- 'metadata',
- '--no-deps',
- '--format-version',
- '1',
- '--manifest-path',
- util.path.join(cargo_crate_dir, 'Cargo.toml'),
- }
-
- local result = async.run_command(cmd)
-
- if result and result[1] then
- result = vim.json.decode(table.concat(result, ''))
- if result['workspace_root'] then
- cargo_workspace_root = util.path.sanitize(result['workspace_root'])
- end
- end
- end
-
- return cargo_workspace_root
- or cargo_crate_dir
- or util.root_pattern 'rust-project.json'(fname)
- or util.find_git_ancestor(fname)
- end,
- capabilities = {
- experimental = {
- serverStatusNotification = true,
- },
- },
- before_init = function(init_params, config)
- -- See https://github.com/rust-lang/rust-analyzer/blob/eb5da56d839ae0a9e9f50774fa3eb78eb0964550/docs/dev/lsp-extensions.md?plain=1#L26
- if config.settings and config.settings['rust-analyzer'] then
- init_params.initializationOptions = config.settings['rust-analyzer']
- end
- end,
- },
- commands = {
- CargoReload = {
- function()
- reload_workspace(0)
- end,
- description = 'Reload current cargo workspace',
- },
- },
- docs = {
- description = [[
-https://github.com/rust-lang/rust-analyzer
-
-rust-analyzer (aka rls 2.0), a language server for Rust
-
-
-See [docs](https://github.com/rust-lang/rust-analyzer/blob/master/docs/user/generated_config.adoc) for extra settings. The settings can be used like this:
-```lua
-require'lspconfig'.rust_analyzer.setup{
- settings = {
- ['rust-analyzer'] = {
- diagnostics = {
- enable = false;
- }
- }
- }
-}
-```
-
-Note: do not set `init_options` for this LS config, it will be automatically populated by the contents of settings["rust-analyzer"] per
-https://github.com/rust-lang/rust-analyzer/blob/eb5da56d839ae0a9e9f50774fa3eb78eb0964550/docs/dev/lsp-extensions.md?plain=1#L26.
- ]],
- default_config = {
- root_dir = [[root_pattern("Cargo.toml", "rust-project.json")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/salt_ls.lua b/lua/lspconfig/server_configurations/salt_ls.lua
deleted file mode 100644
index 65d1d322..00000000
--- a/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/lua/lspconfig/server_configurations/scheme_langserver.lua b/lua/lspconfig/server_configurations/scheme_langserver.lua
deleted file mode 100644
index ceaa9320..00000000
--- a/lua/lspconfig/server_configurations/scheme_langserver.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local util = require 'lspconfig.util'
-local cmd = { 'scheme-langserver', '~/.scheme-langserver.log', 'enable', 'disable' }
-local root_files = {
- 'Akku.manifest',
- '.git',
-}
-
-return {
- default_config = {
- cmd = cmd,
- filetypes = { 'scheme' },
- root_dir = util.root_pattern(unpack(root_files)),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/ufo5260987423/scheme-langserver
-`scheme-langserver`, a language server protocol implementation for scheme.
-And for nvim user, please add .sls to scheme file extension list.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/scry.lua b/lua/lspconfig/server_configurations/scry.lua
deleted file mode 100644
index 8350a439..00000000
--- a/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/lua/lspconfig/server_configurations/serve_d.lua b/lua/lspconfig/server_configurations/serve_d.lua
deleted file mode 100644
index 09d1b108..00000000
--- a/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/lua/lspconfig/server_configurations/shopify_theme_ls.lua b/lua/lspconfig/server_configurations/shopify_theme_ls.lua
deleted file mode 100644
index 22e66fd3..00000000
--- a/lua/lspconfig/server_configurations/shopify_theme_ls.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- '.shopifyignore',
- '.theme-check.yml',
- '.theme-check.yaml',
- 'shopify.theme.toml',
-}
-
-return {
- default_config = {
- cmd = {
- 'shopify',
- 'theme',
- 'language-server',
- },
- filetypes = { 'liquid' },
- root_dir = util.root_pattern(unpack(root_files)),
- settings = {},
- },
- docs = {
- description = [[
-https://shopify.dev/docs/api/shopify-cli
-
-[Language Server](https://shopify.dev/docs/themes/tools/cli/language-server) and Theme Check (linter) for Shopify themes.
-
-`shopify` can be installed via npm `npm install -g @shopify/cli`.
-
-Note: This LSP already includes Theme Check so you don't need to use the `theme_check` server configuration as well.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/sixtyfps.lua b/lua/lspconfig/server_configurations/sixtyfps.lua
deleted file mode 100644
index da90fe30..00000000
--- a/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/lua/lspconfig/server_configurations/slangd.lua b/lua/lspconfig/server_configurations/slangd.lua
deleted file mode 100644
index 642b4ddf..00000000
--- a/lua/lspconfig/server_configurations/slangd.lua
+++ /dev/null
@@ -1,44 +0,0 @@
-local util = require 'lspconfig.util'
-local bin_name = 'slangd'
-
-if vim.fn.has 'win32' == 1 then
- bin_name = 'slangd.exe'
-end
-
-return {
- default_config = {
- cmd = { bin_name },
- filetypes = { 'hlsl', 'shaderslang' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/shader-slang/slang
-
-The `slangd` binary can be downloaded as part of [slang releases](https://github.com/shader-slang/slang/releases) or
-by [building `slang` from source](https://github.com/shader-slang/slang/blob/master/docs/building.md).
-
-The server can be configured by passing a "settings" object to `slangd.setup{}`:
-
-```lua
-require('lspconfig').slangd.setup{
- settings = {
- slang = {
- predefinedMacros = {"MY_VALUE_MACRO=1"},
- inlayHints = {
- deducedTypes = true,
- parameterNames = true,
- }
- }
- }
-}
-```
-Available options are documented [here](https://github.com/shader-slang/slang-vscode-extension/tree/main?tab=readme-ov-file#configurations)
-or in more detail [here](https://github.com/shader-slang/slang-vscode-extension/blob/main/package.json#L70).
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/slint_lsp.lua b/lua/lspconfig/server_configurations/slint_lsp.lua
deleted file mode 100644
index bdd36597..00000000
--- a/lua/lspconfig/server_configurations/slint_lsp.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'slint-lsp' },
- filetypes = { 'slint' },
- root_dir = util.find_git_ancestor,
- 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/lua/lspconfig/server_configurations/smarty_ls.lua b/lua/lspconfig/server_configurations/smarty_ls.lua
deleted file mode 100644
index fd6c212a..00000000
--- a/lua/lspconfig/server_configurations/smarty_ls.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'smarty-language-server', '--stdio' },
- filetypes = { 'smarty' },
- 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,
- settings = {
- smarty = {
- pluginDirs = {},
- },
- css = {
- validate = true,
- },
- },
- init_options = {
- storageDir = nil,
- },
- },
- docs = {
- description = [[
-https://github.com/landeaux/vscode-smarty-langserver-extracted
-
-Language server for Smarty.
-
-`smarty-language-server` can be installed via `npm`:
-
-```sh
-npm i -g vscode-smarty-langserver-extracted
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/smithy_ls.lua b/lua/lspconfig/server_configurations/smithy_ls.lua
deleted file mode 100644
index ef6f010d..00000000
--- a/lua/lspconfig/server_configurations/smithy_ls.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local util = require 'lspconfig.util'
-
--- pass 0 as the first argument to use STDIN/STDOUT for communication
-local cmd = { 'smithy-language-server', '0' }
-
-local root_files = {
- 'smithy-build.json',
- 'build.gradle',
- 'build.gradle.kts',
- '.git',
-}
-
-return {
- default_config = {
- cmd = cmd,
- filetypes = { 'smithy' },
- single_file_support = true,
- root_dir = util.root_pattern(unpack(root_files)),
- },
- docs = {
- description = [[
-https://github.com/awslabs/smithy-language-server
-
-`Smithy Language Server`, A Language Server Protocol implementation for the Smithy IDL
-]],
- default_config = {
- root_dir = [[root_pattern("smithy-build.json", "build.gradle", "build.gradle.kts", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/snakeskin_ls.lua b/lua/lspconfig/server_configurations/snakeskin_ls.lua
deleted file mode 100644
index 5fd96386..00000000
--- a/lua/lspconfig/server_configurations/snakeskin_ls.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'snakeskin-cli', 'lsp', '--stdio' },
- filetypes = { 'ss' },
- root_dir = util.root_pattern 'package.json',
- },
- docs = {
- description = [[
-https://www.npmjs.com/package/@snakeskin/cli
-
-`snakeskin cli` can be installed via `npm`:
-```sh
-npm install -g @snakeskin/cli
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/snyk_ls.lua b/lua/lspconfig/server_configurations/snyk_ls.lua
deleted file mode 100644
index 50faa0d4..00000000
--- a/lua/lspconfig/server_configurations/snyk_ls.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'snyk-ls' },
- root_dir = util.root_pattern('.git', '.snyk'),
- filetypes = {
- 'go',
- 'gomod',
- 'javascript',
- 'typescript',
- 'json',
- 'python',
- 'requirements',
- 'helm',
- 'yaml',
- 'terraform',
- 'terraform-vars',
- },
- single_file_support = true,
- settings = {},
- init_options = {
- activateSnykCode = 'true',
- },
- },
- docs = {
- description = [[
-https://github.com/snyk/snyk-ls
-
-LSP for Snyk Open Source, Snyk Infrastructure as Code, and Snyk Code.
-]],
- default_config = {
- root_dir = [[root_pattern(".git", ".snyk")]],
- init_options = 'Configuration from https://github.com/snyk/snyk-ls#configuration-1',
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/solang.lua b/lua/lspconfig/server_configurations/solang.lua
deleted file mode 100644
index cef5321a..00000000
--- a/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', 'evm' },
- 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/lua/lspconfig/server_configurations/solargraph.lua b/lua/lspconfig/server_configurations/solargraph.lua
deleted file mode 100644
index c33c34b6..00000000
--- a/lua/lspconfig/server_configurations/solargraph.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'solargraph', 'stdio' },
- 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/lua/lspconfig/server_configurations/solc.lua b/lua/lspconfig/server_configurations/solc.lua
deleted file mode 100644
index 9ae3948d..00000000
--- a/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('hardhat.config.*', '.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('hardhat.config.*', '.git')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/solidity.lua b/lua/lspconfig/server_configurations/solidity.lua
deleted file mode 100644
index 4e254bd9..00000000
--- a/lua/lspconfig/server_configurations/solidity.lua
+++ /dev/null
@@ -1,49 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'solidity-ls', '--stdio' },
- filetypes = { 'solidity' },
- root_dir = util.root_pattern('.git', 'package.json'),
- settings = { solidity = { includePath = '', remapping = {} } },
- },
- docs = {
- description = [[
-https://github.com/qiuxiang/solidity-ls
-
-npm i solidity-ls -g
-
-Make sure that solc is installed and it's the same version of the file. solc-select is recommended.
-
-Solidity language server is a LSP with autocomplete, go to definition and diagnostics.
-
-If you use brownie, use this root_dir:
-root_dir = util.root_pattern('brownie-config.yaml', '.git')
-
-on includePath, you can add an extra path to search for external libs, on remapping you can remap lib <> path, like:
-
-```lua
-{ solidity = { includePath = '/Users/your_user/.brownie/packages/', remapping = { ["@OpenZeppelin/"] = 'OpenZeppelin/openzeppelin-contracts@4.6.0/' } } }
-```
-
-**For brownie users**
-Change the root_dir to:
-
-```lua
-root_pattern("brownie-config.yaml", ".git")
-```
-
-The best way of using it is to have a package.json in your project folder with the packages that you will use.
-After installing with package.json, just create a `remappings.txt` with:
-
-```
-@OpenZeppelin/=node_modules/OpenZeppelin/openzeppelin-contracts@4.6.0/
-```
-
-You can omit the node_modules as well.
-]],
- default_config = {
- root_dir = [[root_pattern("package.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/solidity_ls.lua b/lua/lspconfig/server_configurations/solidity_ls.lua
deleted file mode 100644
index 1183a9c8..00000000
--- a/lua/lspconfig/server_configurations/solidity_ls.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'hardhat.config.js',
- 'hardhat.config.ts',
- 'foundry.toml',
- 'remappings.txt',
- 'truffle.js',
- 'truffle-config.js',
- 'ape-config.yaml',
-}
-
-return {
- default_config = {
- cmd = { 'vscode-solidity-server', '--stdio' },
- filetypes = { 'solidity' },
- root_dir = util.root_pattern(unpack(root_files)) or util.root_pattern('.git', 'package.json'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/juanfranblanco/vscode-solidity
-
-`vscode-solidity-server` can be installed via `npm`:
-
-```sh
-npm install -g vscode-solidity-server
-```
-
-`vscode-solidity-server` is a language server for the Solidity language ported from the VSCode "solidity" extension.
-]],
- default_config = {
- root_dir = [[root_pattern("]] .. table.concat(root_files, '", "') .. [[", ".git", "package.json")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/solidity_ls_nomicfoundation.lua b/lua/lspconfig/server_configurations/solidity_ls_nomicfoundation.lua
deleted file mode 100644
index cab836c0..00000000
--- a/lua/lspconfig/server_configurations/solidity_ls_nomicfoundation.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'hardhat.config.js',
- 'hardhat.config.ts',
- 'foundry.toml',
- 'remappings.txt',
- 'truffle.js',
- 'truffle-config.js',
- 'ape-config.yaml',
-}
-
-return {
- default_config = {
- cmd = { 'nomicfoundation-solidity-language-server', '--stdio' },
- filetypes = { 'solidity' },
- root_dir = util.root_pattern(unpack(root_files)) or util.root_pattern('.git', 'package.json'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/NomicFoundation/hardhat-vscode/blob/development/server/README.md
-
-`nomicfoundation-solidity-language-server` can be installed via `npm`:
-
-```sh
-npm install -g @nomicfoundation/solidity-language-server
-```
-
-A language server for the Solidity programming language, built by the Nomic Foundation for the Ethereum community.
-]],
- default_config = {
- root_dir = [[root_pattern("]] .. table.concat(root_files, '", "') .. [[", ".git", "package.json")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/somesass_ls.lua b/lua/lspconfig/server_configurations/somesass_ls.lua
deleted file mode 100644
index 710d5628..00000000
--- a/lua/lspconfig/server_configurations/somesass_ls.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- name = 'somesass_ls',
- cmd = { 'some-sass-language-server', '--stdio' },
- filetypes = { 'scss', 'sass' },
- root_dir = util.root_pattern('.git', '.package.json'),
- single_file_support = true,
- settings = {
- somesass = {
- suggestAllFromOpenDocument = true,
- },
- },
- },
- docs = {
- description = [[
-
-https://github.com/wkillerud/some-sass/tree/main/packages/language-server
-
-`some-sass-language-server` can be installed via `npm`:
-
-```sh
-npm i -g some-sass-language-server
-```
-
-The language server provides:
-
-- Full support for @use and @forward, including aliases, prefixes and hiding.
-- Workspace-wide code navigation and refactoring, such as Rename Symbol.
-- Rich documentation through SassDoc.
-- Language features for %placeholder-selectors, both when using them and writing them.
-- Suggestions and hover info for built-in Sass modules, when used with @use.
-
-]],
- default_config = {
- root_dir = [[root_pattern("package.json", ".git") or bufdir]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/sorbet.lua b/lua/lspconfig/server_configurations/sorbet.lua
deleted file mode 100644
index 86d34436..00000000
--- a/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/lua/lspconfig/server_configurations/sourcekit.lua b/lua/lspconfig/server_configurations/sourcekit.lua
deleted file mode 100644
index 9bb0e3e1..00000000
--- a/lua/lspconfig/server_configurations/sourcekit.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'sourcekit-lsp' },
- filetypes = { 'swift', 'objc', 'objcpp', 'c', 'cpp' },
- root_dir = function(filename, _)
- return util.root_pattern 'buildServer.json'(filename)
- or util.root_pattern('*.xcodeproj', '*.xcworkspace')(filename)
- -- better to keep it at the end, because some modularized apps contain multiple Package.swift files
- or util.root_pattern('compile_commands.json', 'Package.swift')(filename)
- or util.find_git_ancestor(filename)
- end,
- get_language_id = function(_, ftype)
- local t = { objc = 'objective-c', objcpp = 'objective-cpp' }
- return t[ftype] or ftype
- end,
- },
- docs = {
- description = [[
-https://github.com/apple/sourcekit-lsp
-
-Language server for Swift and C/C++/Objective-C.
- ]],
- default_config = {
- root_dir = [[root_pattern("buildServer.json", "*.xcodeproj", "*.xcworkspace", "compile_commands.json", "Package.swift", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/sourcery.lua b/lua/lspconfig/server_configurations/sourcery.lua
deleted file mode 100644
index 44340f13..00000000
--- a/lua/lspconfig/server_configurations/sourcery.lua
+++ /dev/null
@@ -1,83 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'pyproject.toml',
- 'setup.py',
- 'setup.cfg',
- 'requirements.txt',
- 'Pipfile',
- 'pyrightconfig.json',
-}
-
-local token_in_auth_file = function()
- local is_windows = vim.fn.has 'win32' == 1
- local path_sep = is_windows and '\\' or '/'
-
- local config_home = is_windows and vim.fn.getenv 'APPDATA' or vim.fn.expand '~/.config'
- local auth_file_path = config_home .. path_sep .. 'sourcery' .. path_sep .. 'auth.yaml'
-
- if vim.fn.filereadable(auth_file_path) == 1 then
- local content = vim.fn.readfile(auth_file_path)
- for _, line in ipairs(content) do
- if line:match 'sourcery_token: (.+)' then
- return true
- end
- end
- end
-
- return false
-end
-
-return {
- default_config = {
- cmd = { 'sourcery', 'lsp' },
- filetypes = { 'javascript', 'javascriptreact', 'python', 'typescript', 'typescriptreact' },
- 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 and not token_in_auth_file() then
- local notify = vim.notify_once or vim.notify
- notify(
- '[lspconfig] The authentication token must be provided in config.init_options or configured via "sourcery login"',
- 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 init_options param to be populated as shown below and will respond with the list of ServerCapabilities that it supports:
-
-```lua
-require'lspconfig'.sourcery.setup {
- 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 = <YOUR_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',
- },
-}
-```
-
-Alternatively, you can login to sourcery by running `sourcery login` with sourcery-cli.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/spectral.lua b/lua/lspconfig/server_configurations/spectral.lua
deleted file mode 100644
index e21b6cb5..00000000
--- a/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/lua/lspconfig/server_configurations/spyglassmc_language_server.lua b/lua/lspconfig/server_configurations/spyglassmc_language_server.lua
deleted file mode 100644
index 54d3fad4..00000000
--- a/lua/lspconfig/server_configurations/spyglassmc_language_server.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'spyglassmc-language-server', '--stdio' },
- filetypes = { 'mcfunction' },
- root_dir = util.root_pattern 'pack.mcmeta',
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/SpyglassMC/Spyglass/tree/main/packages/language-server
-
-Language server for Minecraft datapacks.
-
-`spyglassmc-language-server` can be installed via `npm`:
-
-```sh
-npm i -g @spyglassmc/language-server
-```
-
-You may also need to configure the filetype:
-
-`autocmd BufNewFile,BufRead *.mcfunction set filetype=mcfunction`
-
-This is automatically done by [CrystalAlpha358/vim-mcfunction](https://github.com/CrystalAlpha358/vim-mcfunction), which also provide syntax highlight.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/sqlls.lua b/lua/lspconfig/server_configurations/sqlls.lua
deleted file mode 100644
index 434a7ce8..00000000
--- a/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).
-<br>
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/sqls.lua b/lua/lspconfig/server_configurations/sqls.lua
deleted file mode 100644
index 66ac76c7..00000000
--- a/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/sqls-server/sqls
-
-```lua
-require'lspconfig'.sqls.setup{
- cmd = {"path/to/command", "-config", "path/to/config.yml"};
- ...
-}
-```
-Sqls can be installed via `go get github.com/sqls-server/sqls`. Instructions for compiling Sqls from the source can be found at [sqls-server/sqls](https://github.com/sqls-server/sqls).
-
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/standardrb.lua b/lua/lspconfig/server_configurations/standardrb.lua
deleted file mode 100644
index 70608bf6..00000000
--- a/lua/lspconfig/server_configurations/standardrb.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'standardrb', '--lsp' },
- filetypes = { 'ruby' },
- root_dir = util.root_pattern('Gemfile', '.git'),
- },
- docs = {
- description = [[
-https://github.com/testdouble/standard
-
-Ruby Style Guide, with linter & automatic code fixer.
- ]],
- default_config = {
- root_dir = [[root_pattern("Gemfile", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/starlark_rust.lua b/lua/lspconfig/server_configurations/starlark_rust.lua
deleted file mode 100644
index 36b828f1..00000000
--- a/lua/lspconfig/server_configurations/starlark_rust.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig/util'
-
-return {
- default_config = {
- cmd = { 'starlark', '--lsp' },
- filetypes = { 'star', 'bzl', 'BUILD.bazel' },
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-https://github.com/facebookexperimental/starlark-rust/
-The LSP part of `starlark-rust` is not currently documented,
- but the implementation works well for linting.
-This gives valuable warnings for potential issues in the code,
-but does not support refactorings.
-
-It can be installed with cargo: https://crates.io/crates/starlark
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/starpls.lua b/lua/lspconfig/server_configurations/starpls.lua
deleted file mode 100644
index 2699e7ed..00000000
--- a/lua/lspconfig/server_configurations/starpls.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local util = require 'lspconfig/util'
-
-return {
- default_config = {
- cmd = { 'starpls' },
- filetypes = { 'bzl' },
- root_dir = util.root_pattern('WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel'),
- },
- docs = {
- description = [[
-https://github.com/withered-magic/starpls
-
-`starpls` is an LSP implementation for Starlark. Installation instructions can be found in the project's README.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/statix.lua b/lua/lspconfig/server_configurations/statix.lua
deleted file mode 100644
index 050c0b50..00000000
--- a/lua/lspconfig/server_configurations/statix.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'statix' },
- filetypes = { 'nix' },
- single_file_support = true,
- root_dir = util.root_pattern('flake.nix', '.git'),
- },
- docs = {
- description = [[
-https://github.com/nerdypepper/statix
-
-lints and suggestions for the nix programming language
- ]],
- default_config = {
- root_dir = [[root_pattern("flake.nix", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/steep.lua b/lua/lspconfig/server_configurations/steep.lua
deleted file mode 100644
index 367c7800..00000000
--- a/lua/lspconfig/server_configurations/steep.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'steep', 'langserver' },
- filetypes = { 'ruby', 'eruby' },
- root_dir = util.root_pattern('Steepfile', '.git'),
- },
- docs = {
- description = [[
-https://github.com/soutaro/steep
-
-`steep` is a static type checker for Ruby.
-
-You need `Steepfile` to make it work. Generate it with `steep init`.
-]],
- default_config = {
- root_dir = [[root_pattern("Steepfile", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/stimulus_ls.lua b/lua/lspconfig/server_configurations/stimulus_ls.lua
deleted file mode 100644
index 7d11b4c3..00000000
--- a/lua/lspconfig/server_configurations/stimulus_ls.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'stimulus-language-server', '--stdio' },
- filetypes = { 'html', 'ruby', 'eruby', 'blade', 'php' },
- root_dir = util.root_pattern('Gemfile', '.git'),
- },
- docs = {
- description = [[
-https://www.npmjs.com/package/stimulus-language-server
-
-`stimulus-lsp` can be installed via `npm`:
-
-```sh
-npm install -g stimulus-language-server
-```
-
-or via `yarn`:
-
-```sh
-yarn global add stimulus-language-server
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/stylelint_lsp.lua b/lua/lspconfig/server_configurations/stylelint_lsp.lua
deleted file mode 100644
index c0524ab6..00000000
--- a/lua/lspconfig/server_configurations/stylelint_lsp.lua
+++ /dev/null
@@ -1,53 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_file = {
- '.stylelintrc',
- '.stylelintrc.cjs',
- '.stylelintrc.js',
- '.stylelintrc.json',
- '.stylelintrc.yaml',
- '.stylelintrc.yml',
- 'stylelint.config.cjs',
- 'stylelint.config.js',
-}
-
-root_file = util.insert_package_json(root_file, 'stylelint')
-
-return {
- default_config = {
- cmd = { 'stylelint-lsp', '--stdio' },
- filetypes = {
- 'css',
- 'less',
- 'scss',
- 'sugarss',
- 'vue',
- 'wxss',
- },
- root_dir = util.root_pattern(unpack(root_file)),
- 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
- }
- }
-}
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/superhtml.lua b/lua/lspconfig/server_configurations/superhtml.lua
deleted file mode 100644
index a22cf338..00000000
--- a/lua/lspconfig/server_configurations/superhtml.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'superhtml', 'lsp' },
- filetypes = { 'superhtml', 'html' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/kristoff-it/superhtml
-
-HTML Language Server & Templating Language Library
-
-This LSP is designed to tightly adhere to the HTML spec as well as enforcing
-some additional rules that ensure HTML clarity.
-
-If you want to disable HTML support for another HTML LSP, add the following
-to your configuration:
-
-```lua
-require'lspconfig'.superhtml.setup {
- filetypes = { 'superhtml' }
-}
-```
- ]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/svelte.lua b/lua/lspconfig/server_configurations/svelte.lua
deleted file mode 100644
index edaa740d..00000000
--- a/lua/lspconfig/server_configurations/svelte.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'svelteserver', '--stdio' },
- filetypes = { 'svelte' },
- root_dir = util.root_pattern('package.json', '.git'),
- },
- docs = {
- description = [[
-https://github.com/sveltejs/language-tools/tree/master/packages/language-server
-
-Note: assuming that [ts_ls](#ts_ls) is setup, full JavaScript/TypeScript support (find references, rename, etc of symbols in Svelte files when working in JS/TS files) requires per-project installation and configuration of [typescript-svelte-plugin](https://github.com/sveltejs/language-tools/tree/master/packages/typescript-plugin#usage).
-
-`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/lua/lspconfig/server_configurations/svlangserver.lua b/lua/lspconfig/server_configurations/svlangserver.lua
deleted file mode 100644
index bc3591a1..00000000
--- a/lua/lspconfig/server_configurations/svlangserver.lua
+++ /dev/null
@@ -1,58 +0,0 @@
-local util = require 'lspconfig.util'
-
-local function build_index()
- local params = {
- command = 'systemverilog.build_index',
- }
- vim.lsp.buf.execute_command(params)
-end
-
-local function report_hierarchy()
- local params = {
- command = 'systemverilog.report_hierarchy',
- arguments = { vim.fn.expand '<cword>' },
- }
- vim.lsp.buf.execute_command(params)
-end
-
-return {
- default_config = {
- cmd = { 'svlangserver' },
- filetypes = { 'verilog', 'systemverilog' },
- root_dir = function(fname)
- return util.root_pattern '.svlangserver'(fname) or util.find_git_ancestor(fname)
- end,
- single_file_support = true,
- settings = {
- systemverilog = {
- includeIndexing = { '*.{v,vh,sv,svh}', '**/*.{v,vh,sv,svh}' },
- },
- },
- },
- commands = {
- SvlangserverBuildIndex = {
- build_index,
- description = 'Instructs language server to rerun indexing',
- },
- SvlangserverReportHierarchy = {
- report_hierarchy,
- description = 'Generates hierarchy for the given module',
- },
- },
- docs = {
- description = [[
-https://github.com/imc-trading/svlangserver
-
-Language server for SystemVerilog.
-
-`svlangserver` can be installed via `npm`:
-
-```sh
-$ npm install -g @imc-trading/svlangserver
-```
-]],
- default_config = {
- root_dir = [[root_pattern(".svlangserver", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/svls.lua b/lua/lspconfig/server_configurations/svls.lua
deleted file mode 100644
index ff4d8102..00000000
--- a/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/lua/lspconfig/server_configurations/swift_mesonls.lua b/lua/lspconfig/server_configurations/swift_mesonls.lua
deleted file mode 100644
index 4692e669..00000000
--- a/lua/lspconfig/server_configurations/swift_mesonls.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'Swift-MesonLSP', '--lsp' },
- filetypes = { 'meson' },
- root_dir = util.root_pattern('meson.build', 'meson_options.txt', 'meson.options', '.git'),
- },
- docs = {
- description = [[
-https://github.com/JCWasmx86/Swift-MesonLSP
-
-Meson language server written in Swift
-]],
- default_config = {
- root_dir = [[util.root_pattern("meson.build", "meson_options.txt", "meson.options", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/syntax_tree.lua b/lua/lspconfig/server_configurations/syntax_tree.lua
deleted file mode 100644
index 9b47ee51..00000000
--- a/lua/lspconfig/server_configurations/syntax_tree.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'stree', 'lsp' },
- filetypes = { 'ruby' },
- root_dir = util.root_pattern('.streerc', 'Gemfile', '.git'),
- },
- docs = {
- description = [[
-https://ruby-syntax-tree.github.io/syntax_tree/
-
-A fast Ruby parser and formatter.
-
-Syntax Tree is a suite of tools built on top of the internal CRuby parser. It
-provides the ability to generate a syntax tree from source, as well as the
-tools necessary to inspect and manipulate that syntax tree. It can be used to
-build formatters, linters, language servers, and more.
-
-```sh
-gem install syntax_tree
-```
- ]],
- default_config = {
- root_dir = [[root_pattern(".streerc", "Gemfile", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/tabby_ml.lua b/lua/lspconfig/server_configurations/tabby_ml.lua
deleted file mode 100644
index f56a8299..00000000
--- a/lua/lspconfig/server_configurations/tabby_ml.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'tabby-agent', '--lsp', '--stdio' },
- filetypes = {},
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://tabby.tabbyml.com/blog/running-tabby-as-a-language-server
-
-Language server for Tabby, an opensource, self-hosted AI coding assistant.
-
-`tabby-agent` can be installed via `npm`:
-
-```sh
-npm install --global tabby-agent
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/tailwindcss.lua b/lua/lspconfig/server_configurations/tailwindcss.lua
deleted file mode 100644
index af9b77b9..00000000
--- a/lua/lspconfig/server_configurations/tailwindcss.lua
+++ /dev/null
@@ -1,130 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'tailwindcss-language-server', '--stdio' },
- -- filetypes copied and adjusted from tailwindcss-intellisense
- filetypes = {
- -- html
- 'aspnetcorerazor',
- 'astro',
- 'astro-markdown',
- 'blade',
- 'clojure',
- 'django-html',
- 'htmldjango',
- 'edge',
- 'eelixir', -- vim ft
- 'elixir',
- 'ejs',
- 'erb',
- 'eruby', -- vim ft
- 'gohtml',
- 'gohtmltmpl',
- 'haml',
- 'handlebars',
- 'hbs',
- 'html',
- 'htmlangular',
- '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',
- 'templ',
- },
- settings = {
- tailwindCSS = {
- validate = true,
- lint = {
- cssConflict = 'warning',
- invalidApply = 'error',
- invalidScreen = 'error',
- invalidVariant = 'error',
- invalidConfigPath = 'error',
- invalidTailwindDirective = 'error',
- recommendedVariantOrder = 'warning',
- },
- classAttributes = {
- 'class',
- 'className',
- 'class:list',
- 'classList',
- 'ngClass',
- },
- includeLanguages = {
- eelixir = 'html-eex',
- eruby = 'erb',
- templ = 'html',
- htmlangular = 'html',
- },
- },
- },
- 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.cjs',
- 'tailwind.config.mjs',
- 'tailwind.config.ts',
- 'postcss.config.js',
- 'postcss.config.cjs',
- 'postcss.config.mjs',
- '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.cjs', 'tailwind.config.mjs', 'tailwind.config.ts', 'postcss.config.js', 'postcss.config.cjs', 'postcss.config.mjs', 'postcss.config.ts', 'package.json', 'node_modules', '.git')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/taplo.lua b/lua/lspconfig/server_configurations/taplo.lua
deleted file mode 100644
index 28660013..00000000
--- a/lua/lspconfig/server_configurations/taplo.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'taplo', 'lsp', 'stdio' },
- filetypes = { 'toml' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://taplo.tamasfe.dev/cli/usage/language-server.html
-
-Language server for Taplo, a TOML toolkit.
-
-`taplo-cli` can be installed via `cargo`:
-```sh
-cargo install --features lsp --locked taplo-cli
-```
- ]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/tblgen_lsp_server.lua b/lua/lspconfig/server_configurations/tblgen_lsp_server.lua
deleted file mode 100644
index 73022d4a..00000000
--- a/lua/lspconfig/server_configurations/tblgen_lsp_server.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'tblgen-lsp-server' },
- filetypes = { 'tablegen' },
- root_dir = function(fname)
- return util.root_pattern 'tablegen_compile_commands.yml'(fname) or util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://mlir.llvm.org/docs/Tools/MLIRLSP/#tablegen-lsp-language-server--tblgen-lsp-server
-
-The Language Server for the LLVM TableGen language
-
-`tblgen-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project)
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/teal_ls.lua b/lua/lspconfig/server_configurations/teal_ls.lua
deleted file mode 100644
index 04ba9381..00000000
--- a/lua/lspconfig/server_configurations/teal_ls.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = {
- 'teal-language-server',
- },
- filetypes = {
- 'teal',
- },
- root_dir = util.root_pattern 'tlconfig.lua',
- },
- docs = {
- description = [[
-https://github.com/teal-language/teal-language-server
-
-Install with:
-```
-luarocks install teal-language-server
-```
-
-Optional Command Args:
-* "--log-mode=by_date" - Enable logging in $HOME/.cache/teal-language-server. Log name will be date + pid of process
-* "--log-mode=by_proj_path" - Enable logging in $HOME/.cache/teal-language-server. Log name will be project path + pid of process
-* "--verbose=true" - Increases log level. Does nothing unless log-mode is set
-]],
- default_config = {
- root_dir = [[root_pattern("tlconfig.lua")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/templ.lua b/lua/lspconfig/server_configurations/templ.lua
deleted file mode 100644
index 99a4ada6..00000000
--- a/lua/lspconfig/server_configurations/templ.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'templ', 'lsp' },
- filetypes = { 'templ' },
- root_dir = function(fname)
- return util.root_pattern('go.work', 'go.mod', '.git')(fname)
- end,
- },
- docs = {
- description = [[
-https://templ.guide
-
-The official language server for the templ HTML templating language.
-]],
- default_config = {
- root_dir = [[root_pattern('go.work', 'go.mod', '.git')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/terraform_lsp.lua b/lua/lspconfig/server_configurations/terraform_lsp.lua
deleted file mode 100644
index 48a6fc58..00000000
--- a/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/lua/lspconfig/server_configurations/terraformls.lua b/lua/lspconfig/server_configurations/terraformls.lua
deleted file mode 100644
index 9326b9b1..00000000
--- a/lua/lspconfig/server_configurations/terraformls.lua
+++ /dev/null
@@ -1,47 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'terraform-ls', 'serve' },
- filetypes = { 'terraform', 'terraform-vars' },
- 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)
-
-Note, that the `settings` configuration option uses the `workspace/didChangeConfiguration` event,
-[which is not supported by terraform-ls](https://github.com/hashicorp/terraform-ls/blob/main/docs/features.md).
-Instead you should use `init_options` which passes the settings as part of the LSP initialize call
-[as is required by terraform-ls](https://github.com/hashicorp/terraform-ls/blob/main/docs/SETTINGS.md#how-to-pass-settings).
-]],
- default_config = {
- root_dir = [[root_pattern(".terraform", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/texlab.lua b/lua/lspconfig/server_configurations/texlab.lua
deleted file mode 100644
index 7f039f52..00000000
--- a/lua/lspconfig/server_configurations/texlab.lua
+++ /dev/null
@@ -1,249 +0,0 @@
-local util = require 'lspconfig.util'
-
-local texlab_build_status = {
- [0] = 'Success',
- [1] = 'Error',
- [2] = 'Failure',
- [3] = 'Cancelled',
-}
-
-local texlab_forward_status = {
- [0] = 'Success',
- [1] = 'Error',
- [2] = 'Failure',
- [3] = 'Unconfigured',
-}
-
-local function buf_build()
- local bufnr = vim.api.nvim_get_current_buf()
- local texlab_client = util.get_active_client_by_name(bufnr, 'texlab')
- if texlab_client then
- texlab_client.request('textDocument/build', vim.lsp.util.make_position_params(), function(err, result)
- if err then
- error(tostring(err))
- end
- vim.notify('Build ' .. texlab_build_status[result.status], vim.log.levels.INFO)
- end, bufnr)
- else
- vim.notify(
- 'method textDocument/build is not supported by any servers active on the current buffer',
- vim.log.levels.WARN
- )
- end
-end
-
-local function buf_search()
- local bufnr = vim.api.nvim_get_current_buf()
- local texlab_client = util.get_active_client_by_name(bufnr, 'texlab')
- if texlab_client then
- texlab_client.request('textDocument/forwardSearch', vim.lsp.util.make_position_params(), function(err, result)
- if err then
- error(tostring(err))
- end
- vim.notify('Search ' .. texlab_forward_status[result.status], vim.log.levels.INFO)
- end, bufnr)
- else
- vim.notify(
- 'method textDocument/forwardSearch is not supported by any servers active on the current buffer',
- vim.log.levels.WARN
- )
- end
-end
-
-local function buf_cancel_build()
- local bufnr = vim.api.nvim_get_current_buf()
- if not util.get_active_client_by_name(bufnr, 'texlab') then
- return vim.notify('Texlab client not found', vim.log.levels.ERROR)
- end
- vim.lsp.buf.execute_command { command = 'texlab.cancelBuild' }
- vim.notify('Build cancelled', vim.log.levels.INFO)
-end
-
-local function dependency_graph()
- local bufnr = vim.api.nvim_get_current_buf()
- local texlab_client = util.get_active_client_by_name(bufnr, 'texlab')
- if not texlab_client then
- return vim.notify('Texlab client not found', vim.log.levels.ERROR)
- end
- texlab_client.request('workspace/executeCommand', { command = 'texlab.showDependencyGraph' }, function(err, result)
- if err then
- return vim.notify(err.code .. ': ' .. err.message, vim.log.levels.ERROR)
- end
- vim.notify('The dependency graph has been generated:\n' .. result, vim.log.levels.INFO)
- end, 0)
-end
-
-local function cleanArtifacts()
- local bufnr = vim.api.nvim_get_current_buf()
- if not util.get_active_client_by_name(bufnr, 'texlab') then
- return vim.notify('Texlab client not found', vim.log.levels.ERROR)
- end
- vim.lsp.buf.execute_command {
- command = 'texlab.cleanArtifacts',
- arguments = { { uri = vim.uri_from_bufnr(bufnr) } },
- }
- vim.notify('Artifacts cleaned successfully', vim.log.levels.INFO)
-end
-
-local function cleanAuxiliary()
- local bufnr = vim.api.nvim_get_current_buf()
- if not util.get_active_client_by_name(bufnr, 'texlab') then
- return vim.notify('Texlab client not found', vim.log.levels.ERROR)
- end
- vim.lsp.buf.execute_command {
- command = 'texlab.cleanAuxiliary',
- arguments = { { uri = vim.uri_from_bufnr(bufnr) } },
- }
- vim.notify('Auxiliary files cleaned successfully', vim.log.levels.INFO)
-end
-
-local function buf_find_envs()
- local bufnr = vim.api.nvim_get_current_buf()
- local texlab_client = util.get_active_client_by_name(bufnr, 'texlab')
- if not texlab_client then
- return vim.notify('Texlab client not found', vim.log.levels.ERROR)
- end
- texlab_client.request('workspace/executeCommand', {
- command = 'texlab.findEnvironments',
- arguments = { vim.lsp.util.make_position_params() },
- }, function(err, result)
- if err then
- return vim.notify(err.code .. ': ' .. err.message, vim.log.levels.ERROR)
- end
- local env_names = {}
- local max_length = 1
- for _, env in ipairs(result) do
- table.insert(env_names, env.name.text)
- max_length = math.max(max_length, string.len(env.name.text))
- end
- for i, name in ipairs(env_names) do
- env_names[i] = string.rep(' ', i - 1) .. name
- end
- vim.lsp.util.open_floating_preview(env_names, '', {
- height = #env_names,
- width = math.max((max_length + #env_names - 1), (string.len 'Environments')),
- focusable = false,
- focus = false,
- border = require('lspconfig.ui.windows').default_options.border or 'single',
- title = 'Environments',
- })
- end, bufnr)
-end
-
-local function buf_change_env()
- local bufnr = vim.api.nvim_get_current_buf()
- if not util.get_active_client_by_name(bufnr, 'texlab') then
- return vim.notify('Texlab client not found', vim.log.levels.ERROR)
- end
- local new = vim.fn.input 'Enter the new environment name: '
- if not new or new == '' then
- return vim.notify('No environment name provided', vim.log.levels.WARN)
- end
- local pos = vim.api.nvim_win_get_cursor(0)
- vim.lsp.buf.execute_command {
- command = 'texlab.changeEnvironment',
- arguments = {
- {
- textDocument = { uri = vim.uri_from_bufnr(bufnr) },
- position = { line = pos[1] - 1, character = pos[2] },
- newName = tostring(new),
- },
- },
- }
-end
-
-return {
- default_config = {
- cmd = { 'texlab' },
- filetypes = { 'tex', 'plaintex', 'bib' },
- root_dir = util.root_pattern('.git', '.latexmkrc', '.texlabroot', 'texlabroot', 'Tectonic.toml'),
- 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()
- end,
- description = 'Build the current buffer',
- },
- TexlabForward = {
- function()
- buf_search()
- end,
- description = 'Forward search from current position',
- },
- TexlabCancelBuild = {
- function()
- buf_cancel_build()
- end,
- description = 'Cancel the current build',
- },
- TexlabDependencyGraph = {
- function()
- dependency_graph()
- end,
- description = 'Show the dependency graph',
- },
- TexlabCleanArtifacts = {
- function()
- cleanArtifacts()
- end,
- description = 'Clean the artifacts',
- },
- TexlabCleanAuxiliary = {
- function()
- cleanAuxiliary()
- end,
- description = 'Clean the auxiliary files',
- },
- TexlabFindEnvironments = {
- function()
- buf_find_envs()
- end,
- description = 'Find the environments at current position',
- },
- TexlabChangeEnvironment = {
- function()
- buf_change_env()
- end,
- description = 'Change the environment at 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/wiki/Configuration for configuration options.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/textlsp.lua b/lua/lspconfig/server_configurations/textlsp.lua
deleted file mode 100644
index e4f7a91a..00000000
--- a/lua/lspconfig/server_configurations/textlsp.lua
+++ /dev/null
@@ -1,50 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'textlsp' },
- filetypes = { 'text', 'tex', 'org' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- settings = {
- textLSP = {
- analysers = {
- -- by default all analysers are disabled in textLSP, since many of them
- -- need custom settings. See github page. LanguageTool is enaled here
- -- only for a quick test.
- languagetool = {
- enabled = true,
- check_text = {
- on_open = true,
- on_save = true,
- on_change = false,
- },
- },
- },
- documents = {
- org = {
- org_todo_keywords = {
- 'TODO',
- 'IN_PROGRESS',
- 'DONE',
- },
- },
- },
- },
- },
- },
- docs = {
- description = [[
-https://github.com/hangyav/textLSP
-
-`textLSP` is an LSP server for text spell and grammar checking with various AI tools.
-It supports multiple text file formats, such as LaTeX, Org or txt.
-
-For the available text analyzer tools and their configuration, see the [GitHub](https://github.com/hangyav/textLSP) page.
-By default, all analyzers are disabled in textLSP, since most of them need special settings.
-For quick testing, LanguageTool is enabled in the default `nvim-lspconfig` configuration.
-
-To install run: `pip install textLSP`
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/tflint.lua b/lua/lspconfig/server_configurations/tflint.lua
deleted file mode 100644
index de2a1d8c..00000000
--- a/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/lua/lspconfig/server_configurations/theme_check.lua b/lua/lspconfig/server_configurations/theme_check.lua
deleted file mode 100644
index 94d67740..00000000
--- a/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/lua/lspconfig/server_configurations/thriftls.lua b/lua/lspconfig/server_configurations/thriftls.lua
deleted file mode 100644
index eaf807a7..00000000
--- a/lua/lspconfig/server_configurations/thriftls.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'thriftls' },
- filetypes = { 'thrift' },
- root_dir = util.root_pattern '.thrift',
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/joyme123/thrift-ls
-
-you can install thriftls by mason or download binary here: https://github.com/joyme123/thrift-ls/releases
-]],
- default_config = {
- root_dir = [[root_pattern(".thrift")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/tilt_ls.lua b/lua/lspconfig/server_configurations/tilt_ls.lua
deleted file mode 100644
index c6656513..00000000
--- a/lua/lspconfig/server_configurations/tilt_ls.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'tilt', 'lsp', 'start' },
- filetypes = { 'tiltfile' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/tilt-dev/tilt
-
-Tilt language server.
-
-You might need to add filetype detection manually:
-
-```vim
-autocmd BufRead Tiltfile setf=tiltfile
-```
-]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/tinymist.lua b/lua/lspconfig/server_configurations/tinymist.lua
deleted file mode 100644
index c2559720..00000000
--- a/lua/lspconfig/server_configurations/tinymist.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'tinymist' },
- filetypes = { 'typst' },
- root_dir = util.find_git_ancestor,
- single_file_support = false,
- },
- docs = {
- description = [[
-https://github.com/Myriad-Dreamin/tinymist
-An integrated language service for Typst [taɪpst]. You can also call it "微霭" [wēi ǎi] in Chinese.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ts_ls.lua b/lua/lspconfig/server_configurations/ts_ls.lua
deleted file mode 100644
index 38a7c800..00000000
--- a/lua/lspconfig/server_configurations/ts_ls.lua
+++ /dev/null
@@ -1,90 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- init_options = { hostInfo = 'neovim' },
- cmd = { 'typescript-language-server', '--stdio' },
- filetypes = {
- 'javascript',
- 'javascriptreact',
- 'javascript.jsx',
- 'typescript',
- 'typescriptreact',
- 'typescript.tsx',
- },
- root_dir = util.root_pattern('tsconfig.json', 'jsconfig.json', 'package.json', '.git'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/typescript-language-server/typescript-language-server
-
-`ts_ls`, aka `typescript-language-server`, is a Language Server Protocol implementation for TypeScript wrapping `tsserver`. Note that `ts_ls` is not `tsserver`.
-
-`typescript-language-server` depends on `typescript`. Both packages can be installed via `npm`:
-```sh
-npm install -g typescript typescript-language-server
-```
-
-To configure typescript 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"
- ]
-}
-```
-
-### Vue support
-
-As of 2.0.0, Volar no longer supports TypeScript itself. Instead, a plugin
-adds Vue support to this language server.
-
-*IMPORTANT*: It is crucial to ensure that `@vue/typescript-plugin` and `volar `are of identical versions.
-
-```lua
-require'lspconfig'.ts_ls.setup{
- init_options = {
- plugins = {
- {
- name = "@vue/typescript-plugin",
- location = "/usr/local/lib/node_modules/@vue/typescript-plugin",
- languages = {"javascript", "typescript", "vue"},
- },
- },
- },
- filetypes = {
- "javascript",
- "typescript",
- "vue",
- },
-}
-
--- You must make sure volar is setup
--- e.g. require'lspconfig'.volar.setup{}
--- See volar's section for more information
-```
-
-`location` MUST be defined. If the plugin is installed in `node_modules`,
-`location` can have any value.
-
-`languages` must include `vue` even if it is listed in `filetypes`.
-
-`filetypes` is extended here to include Vue SFC.
-]],
- default_config = {
- root_dir = [[root_pattern("tsconfig.json", "jsconfig.json", "package.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/tsp_server.lua b/lua/lspconfig/server_configurations/tsp_server.lua
deleted file mode 100644
index 3cb7e420..00000000
--- a/lua/lspconfig/server_configurations/tsp_server.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'tsp-server', '--stdio' },
- filetypes = { 'typespec' },
- root_dir = util.root_pattern('tspconfig.yaml', '.git'),
- },
- docs = {
- description = [[
-https://github.com/microsoft/typespec
-
-The language server for TypeSpec, a language for defining cloud service APIs and shapes.
-
-`tsp-server` can be installed together with the typespec compiler via `npm`:
-```sh
-npm install -g @typespec/compiler
-```
-]],
- default_config = {
- root_dir = [[util.root_pattern("tspconfig.yaml", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ttags.lua b/lua/lspconfig/server_configurations/ttags.lua
deleted file mode 100644
index d57a7967..00000000
--- a/lua/lspconfig/server_configurations/ttags.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ttags', 'lsp' },
- filetypes = { 'ruby', 'rust', 'javascript', 'haskell' },
- root_dir = util.root_pattern '.git',
- },
- docs = {
- description = [[
-https://github.com/npezza93/ttags
- ]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/turtle_ls.lua b/lua/lspconfig/server_configurations/turtle_ls.lua
deleted file mode 100644
index 21624a82..00000000
--- a/lua/lspconfig/server_configurations/turtle_ls.lua
+++ /dev/null
@@ -1,45 +0,0 @@
-local util = require 'lspconfig.util'
-
-local bin_name = 'turtle-language-server'
-local bin_path = os.getenv 'NVM_BIN'
-local full_path
-if bin_path == nil then
- local paths = {}
- local sep = ':'
- if vim.fn.has 'win32' == 1 then
- sep = ';'
- end
- local path = os.getenv 'PATH'
- if path ~= nil then
- for str in string.gmatch(path, '([^' .. sep .. ']+)') do
- paths[#paths + 1] = str
- end
- end
- for _, p in ipairs(paths) do
- local candidate = util.path.join(p, bin_name)
- if util.path.is_file(candidate) then
- full_path = candidate
- break
- end
- end
-else
- full_path = util.path.join(bin_path, bin_name)
-end
-
-return {
- default_config = {
- cmd = { 'node', full_path, '--stdio' },
- filetypes = { 'turtle', 'ttl' },
- root_dir = function(fname)
- return util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server
-`turtle-language-server`, An editor-agnostic server providing language intelligence (diagnostics, hover tooltips, etc.) for the W3C standard Turtle RDF syntax via the Language Server Protocol.
-installable via npm install -g turtle-language-server or yarn global add turtle-language-server.
-requires node.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/tvm_ffi_navigator.lua b/lua/lspconfig/server_configurations/tvm_ffi_navigator.lua
deleted file mode 100644
index 6abd3b8d..00000000
--- a/lua/lspconfig/server_configurations/tvm_ffi_navigator.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'python', '-m', 'ffi_navigator.langserver' },
- filetypes = { 'python', 'cpp' },
- root_dir = util.root_pattern('pyproject.toml', '.git'),
- },
- docs = {
- description = [[
-https://github.com/tqchen/ffi-navigator
-
-The Language Server for FFI calls in TVM to be able jump between python and C++
-
-FFI navigator can be installed with `pip install ffi-navigator`, buf for more details, please see
-https://github.com/tqchen/ffi-navigator?tab=readme-ov-file#installation
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/twiggy_language_server.lua b/lua/lspconfig/server_configurations/twiggy_language_server.lua
deleted file mode 100644
index 3c949dd2..00000000
--- a/lua/lspconfig/server_configurations/twiggy_language_server.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'twiggy-language-server', '--stdio' },
- filetypes = { 'twig' },
- root_dir = util.root_pattern('composer.json', '.git'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/moetelo/twiggy
-
-`twiggy-language-server` can be installed via `npm`:
-```sh
-npm install -g twiggy-language-server
-```
-]],
- default_config = {
- root_dir = [[root_pattern("composer.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/typeprof.lua b/lua/lspconfig/server_configurations/typeprof.lua
deleted file mode 100644
index ab9dc8ef..00000000
--- a/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/lua/lspconfig/server_configurations/typos_lsp.lua b/lua/lspconfig/server_configurations/typos_lsp.lua
deleted file mode 100644
index 3fb58b25..00000000
--- a/lua/lspconfig/server_configurations/typos_lsp.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'typos-lsp' },
- root_dir = util.root_pattern('typos.toml', '_typos.toml', '.typos.toml'),
- single_file_support = true,
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/crate-ci/typos
-https://github.com/tekumara/typos-lsp
-
-A Language Server Protocol implementation for Typos, a low false-positive
-source code spell checker, written in Rust. Download it from the releases page
-on GitHub: https://github.com/tekumara/typos-lsp/releases
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/typst_lsp.lua b/lua/lspconfig/server_configurations/typst_lsp.lua
deleted file mode 100644
index 4d8ec17d..00000000
--- a/lua/lspconfig/server_configurations/typst_lsp.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'typst-lsp' },
- filetypes = { 'typst' },
- single_file_support = true,
- root_dir = function(fname)
- return util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/nvarner/typst-lsp
-
-Language server for Typst.
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/uiua.lua b/lua/lspconfig/server_configurations/uiua.lua
deleted file mode 100644
index b102f8c3..00000000
--- a/lua/lspconfig/server_configurations/uiua.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'uiua', 'lsp' },
- filetypes = { 'uiua' },
- root_dir = function(fname)
- return util.root_pattern('main.ua', '.fmt.ua')(fname) or util.find_git_ancestor(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/uiua-lang/uiua/
-
-The builtin language server of the Uiua interpreter.
-
-The Uiua interpreter can be installed with `cargo install uiua`
-]],
- default_config = {
- cmd = { 'uiua', 'lsp' },
- filetypes = { 'uiua' },
- root_dir = [[
- root_pattern(
- 'main.ua',
- 'fmt.ua',
- '.git'
- )
- ]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/unison.lua b/lua/lspconfig/server_configurations/unison.lua
deleted file mode 100644
index 7cc655f7..00000000
--- a/lua/lspconfig/server_configurations/unison.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'nc', 'localhost', os.getenv 'UNISON_LSP_PORT' or '5757' },
- filetypes = { 'unison' },
- root_dir = util.root_pattern '*.u',
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/unisonweb/unison/blob/trunk/docs/language-server.markdown
-
-
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/unocss.lua b/lua/lspconfig/server_configurations/unocss.lua
deleted file mode 100644
index 4b15513b..00000000
--- a/lua/lspconfig/server_configurations/unocss.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'unocss-language-server', '--stdio' },
- filetypes = {
- 'html',
- 'javascriptreact',
- 'rescript',
- 'typescriptreact',
- 'vue',
- 'svelte',
- },
- root_dir = function(fname)
- return util.root_pattern('unocss.config.js', 'unocss.config.ts', 'uno.config.js', 'uno.config.ts')(fname)
- end,
- },
- docs = {
- description = [[
-https://github.com/xna00/unocss-language-server
-
-UnoCSS Language Server can be installed via npm:
-```sh
-npm i unocss-language-server -g
-```
-]],
- default_config = {
- root_dir = [[root_pattern('unocss.config.js', 'unocss.config.ts', 'uno.config.js', 'uno.config.ts')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/uvls.lua b/lua/lspconfig/server_configurations/uvls.lua
deleted file mode 100644
index c8d75b1a..00000000
--- a/lua/lspconfig/server_configurations/uvls.lua
+++ /dev/null
@@ -1,29 +0,0 @@
-local util = require 'lspconfig.util'
-return {
- default_config = {
- cmd = { 'uvls' },
- filetypes = { 'uvl' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://codeberg.org/caradhras/uvls
-Language server for UVL, written using tree sitter and rust.
-You can install the server easily using cargo:
-```sh
-git clone https://codeberg.org/caradhras/uvls
-cd uvls
-cargo install --path .
-```
-Note: To activate properly nvim needs to know the uvl filetype.
-You can add it via:
-```lua
-vim.cmd(\[\[au BufRead,BufNewFile *.uvl setfiletype uvl\]\])
-```
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/v_analyzer.lua b/lua/lspconfig/server_configurations/v_analyzer.lua
deleted file mode 100644
index d6b7e273..00000000
--- a/lua/lspconfig/server_configurations/v_analyzer.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'v-analyzer' },
- filetypes = { 'v', 'vsh', 'vv' },
- root_dir = util.root_pattern('v.mod', '.git'),
- },
- docs = {
- description = [[
-https://github.com/vlang/v-analyzer
-
-V language server.
-
-`v-analyzer` can be installed by following the instructions [here](https://github.com/vlang/v-analyzer#installation).
-]],
- default_config = {
- root_dir = [[root_pattern("v.mod", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/vacuum.lua b/lua/lspconfig/server_configurations/vacuum.lua
deleted file mode 100644
index d0a6afcd..00000000
--- a/lua/lspconfig/server_configurations/vacuum.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vacuum', 'language-server' },
- filetypes = { 'yaml.openapi', 'json.openapi' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-Vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool.
-
-You can install vacuum using mason or follow the instructions here: https://github.com/daveshanley/vacuum
-
-The file types are not detected automatically, you can register them manually (see below) or override the filetypes:
-
-```lua
-vim.filetype.add {
- pattern = {
- ['openapi.*%.ya?ml'] = 'yaml.openapi',
- ['openapi.*%.json'] = 'json.openapi',
- },
-}
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/vala_ls.lua b/lua/lspconfig/server_configurations/vala_ls.lua
deleted file mode 100644
index 842c561d..00000000
--- a/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/lua/lspconfig/server_configurations/vale_ls.lua b/lua/lspconfig/server_configurations/vale_ls.lua
deleted file mode 100644
index 615b18b7..00000000
--- a/lua/lspconfig/server_configurations/vale_ls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vale-ls' },
- filetypes = { 'markdown', 'text', 'tex' },
- root_dir = util.root_pattern '.vale.ini',
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/errata-ai/vale-ls
-
-An implementation of the Language Server Protocol (LSP) for the Vale command-line tool.
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/vdmj.lua b/lua/lspconfig/server_configurations/vdmj.lua
deleted file mode 100644
index 865e263f..00000000
--- a/lua/lspconfig/server_configurations/vdmj.lua
+++ /dev/null
@@ -1,134 +0,0 @@
-local util = require 'lspconfig.util'
-
-local function get_default_mavenrepo()
- local repo = util.path.join(vim.env.HOME, '.m2', 'repository', 'dk', 'au', 'ece', 'vdmj')
- if util.path.exists(repo) then
- return repo
- else
- return util.path.join(vim.env.HOME, '.m2', 'repository', 'com', 'fujitsu')
- end
-end
-
-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 = get_default_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/dk/au/ece/vdmj',
- 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 = util.tbl_flatten { java_cmd, vdmj_cmd }
- end,
-}
diff --git a/lua/lspconfig/server_configurations/verible.lua b/lua/lspconfig/server_configurations/verible.lua
deleted file mode 100644
index 3c4823a8..00000000
--- a/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/lua/lspconfig/server_configurations/veridian.lua b/lua/lspconfig/server_configurations/veridian.lua
deleted file mode 100644
index 231d0c05..00000000
--- a/lua/lspconfig/server_configurations/veridian.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'veridian' },
- filetypes = { 'systemverilog', 'verilog' },
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-https://github.com/vivekmalneedi/veridian
-
-A SystemVerilog LanguageServer.
-
-Download the latest release for your OS from the releases page
-
-# install with slang feature, if C++17 compiler is available
-cargo install --git https://github.com/vivekmalneedi/veridian.git --all-features
-# install if C++17 compiler is not available
-cargo install --git https://github.com/vivekmalneedi/veridian.git
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/veryl_ls.lua b/lua/lspconfig/server_configurations/veryl_ls.lua
deleted file mode 100644
index 588e36e1..00000000
--- a/lua/lspconfig/server_configurations/veryl_ls.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'veryl-ls' },
- filetypes = { 'veryl' },
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-https://github.com/veryl-lang/veryl
-
-Language server for Veryl
-
-`veryl-ls` can be installed via `cargo`:
- ```sh
- cargo install veryl-ls
- ```
- ]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/vhdl_ls.lua b/lua/lspconfig/server_configurations/vhdl_ls.lua
deleted file mode 100644
index 46db3c8c..00000000
--- a/lua/lspconfig/server_configurations/vhdl_ls.lua
+++ /dev/null
@@ -1,45 +0,0 @@
-local util = require 'lspconfig.util'
-
-local root_files = {
- 'vhdl_ls.toml',
- '.vhdl_ls.toml',
-}
-
-return {
- default_config = {
- cmd = { 'vhdl_ls' },
- filetypes = { 'vhd', 'vhdl' },
- root_dir = util.root_pattern(unpack(root_files)),
- single_file_support = true,
- },
- docs = {
- description = [[
-Install vhdl_ls from https://github.com/VHDL-LS/rust_hdl and add it to path
-
-Configuration
-
-The language server needs to know your library mapping to perform full analysis of the code. For this it uses a configuration file in the TOML format named vhdl_ls.toml.
-
-vhdl_ls will load configuration files in the following order of priority (first to last):
-
- A file named .vhdl_ls.toml in the user home folder.
- A file name from the VHDL_LS_CONFIG environment variable.
- A file named vhdl_ls.toml in the workspace root.
-
-Settings in a later files overwrites those from previously loaded files.
-
-Example vhdl_ls.toml
-```
-# File names are either absolute or relative to the parent folder of the vhdl_ls.toml file
-[libraries]
-lib2.files = [
- 'pkg2.vhd',
-]
-lib1.files = [
- 'pkg1.vhd',
- 'tb_ent.vhd'
-]
-```
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/vimls.lua b/lua/lspconfig/server_configurations/vimls.lua
deleted file mode 100644
index bcee4cca..00000000
--- a/lua/lspconfig/server_configurations/vimls.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vim-language-server', '--stdio' },
- filetypes = { 'vim' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- init_options = {
- isNeovim = true,
- 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/lua/lspconfig/server_configurations/visualforce_ls.lua b/lua/lspconfig/server_configurations/visualforce_ls.lua
deleted file mode 100644
index c48bcaa2..00000000
--- a/lua/lspconfig/server_configurations/visualforce_ls.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- filetypes = { 'visualforce' },
- root_dir = util.root_pattern 'sfdx-project.json',
- init_options = {
- embeddedLanguages = {
- css = true,
- javascript = true,
- },
- },
- },
- docs = {
- description = [[
-https://github.com/forcedotcom/salesforcedx-vscode
-
-Language server for Visualforce.
-
-For manual installation, download the .vsix archive file from the
-[forcedotcom/salesforcedx-vscode](https://github.com/forcedotcom/salesforcedx-vscode)
-GitHub releases. Then, configure `cmd` to run the Node script at the unpacked location:
-
-```lua
-require'lspconfig'.visualforce_ls.setup {
- cmd = {
- 'node',
- '/path/to/unpacked/archive/extension/node_modules/@salesforce/salesforcedx-visualforce-language-server/out/src/visualforceServer.js',
- '--stdio'
- }
-}
-```
-]],
- default_config = {
- root_dir = [[root_pattern('sfdx-project.json')]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/vls.lua b/lua/lspconfig/server_configurations/vls.lua
deleted file mode 100644
index a6a5ac4b..00000000
--- a/lua/lspconfig/server_configurations/vls.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'v', 'ls' },
- filetypes = { 'v', '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).
-]],
- default_config = {
- root_dir = [[root_pattern("v.mod", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/volar.lua b/lua/lspconfig/server_configurations/volar.lua
deleted file mode 100644
index 888cd165..00000000
--- a/lua/lspconfig/server_configurations/volar.lua
+++ /dev/null
@@ -1,113 +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')) or ''
-end
-
--- https://github.com/johnsoncodehk/volar/blob/20d713b/packages/shared/src/types.ts
-local volar_init_options = {
- typescript = {
- tsdk = '',
- },
-}
-
-return {
- default_config = {
- cmd = { 'vue-language-server', '--stdio' },
- 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.tsdk == ''
- then
- new_config.init_options.typescript.tsdk = get_typescript_server_path(new_root_dir)
- end
- end,
- },
- docs = {
- description = [[
-https://github.com/johnsoncodehk/volar/tree/20d713b/packages/vue-language-server
-
-Volar language server for Vue
-
-Volar can be installed via npm:
-
-```sh
-npm install -g @vue/language-server
-```
-
-Volar by default supports Vue 3 projects. Vue 2 projects need
-[additional configuration](https://github.com/vuejs/language-tools/tree/master/packages/vscode-vue#usage).
-
-**TypeScript support**
-As of release 2.0.0, Volar no longer wraps around ts_ls. For typescript
-support, `ts_ls` needs to be configured with the `@vue/typescript-plugin`
-plugin.
-
-**Take Over Mode**
-
-Volar (prior to 2.0.0), 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`. This can lead to issues
-e.g. when working on a [monorepo](https://monorepo.tools/). The alternatives are:
-
-- use a global TypeScript Server installation
-
-```lua
-require'lspconfig'.volar.setup{
- init_options = {
- typescript = {
- tsdk = '/path/to/.npm/lib/node_modules/typescript/lib'
- -- Alternative location if installed as root:
- -- tsdk = '/usr/local/lib/node_modules/typescript/lib'
- }
- }
-}
-```
-
-- use a local server and fall back to a global TypeScript Server installation
-
-```lua
-local util = require 'lspconfig.util'
-local function get_typescript_server_path(root_dir)
-
- local global_ts = '/home/[yourusernamehere]/.npm/lib/node_modules/typescript/lib'
- -- Alternative location if installed as root:
- -- local global_ts = '/usr/local/lib/node_modules/typescript/lib'
- local found_ts = ''
- local function check_dir(path)
- found_ts = util.path.join(path, 'node_modules', 'typescript', 'lib')
- if util.path.exists(found_ts) then
- return path
- end
- end
- if util.search_ancestors(root_dir, check_dir) then
- return found_ts
- else
- return global_ts
- end
-end
-
-require'lspconfig'.volar.setup{
- on_new_config = function(new_config, new_root_dir)
- new_config.init_options.typescript.tsdk = get_typescript_server_path(new_root_dir)
- end,
-}
-```
- ]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/vtsls.lua b/lua/lspconfig/server_configurations/vtsls.lua
deleted file mode 100644
index 050052f7..00000000
--- a/lua/lspconfig/server_configurations/vtsls.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vtsls', '--stdio' },
- filetypes = {
- 'javascript',
- 'javascriptreact',
- 'javascript.jsx',
- 'typescript',
- 'typescriptreact',
- 'typescript.tsx',
- },
- root_dir = util.root_pattern('tsconfig.json', 'package.json', 'jsconfig.json', '.git'),
- single_file_support = true,
- },
- docs = {
- description = [[
-https://github.com/yioneko/vtsls
-
-`vtsls` can be installed with npm:
-```sh
-npm install -g @vtsls/language-server
-```
-
-To configure a TypeScript project, 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.
-]],
- default_config = {
- root_dir = [[root_pattern("tsconfig.json", "package.json", "jsconfig.json", ".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/vuels.lua b/lua/lspconfig/server_configurations/vuels.lua
deleted file mode 100644
index 34d0f28f..00000000
--- a/lua/lspconfig/server_configurations/vuels.lua
+++ /dev/null
@@ -1,61 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'vls' },
- 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/lua/lspconfig/server_configurations/wgsl_analyzer.lua b/lua/lspconfig/server_configurations/wgsl_analyzer.lua
deleted file mode 100644
index 2325cc6e..00000000
--- a/lua/lspconfig/server_configurations/wgsl_analyzer.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'wgsl_analyzer' },
- filetypes = { 'wgsl' },
- root_dir = util.root_pattern '.git',
- settings = {},
- },
- docs = {
- description = [[
-https://github.com/wgsl-analyzer/wgsl-analyzer
-
-`wgsl_analyzer` can be installed via `cargo`:
-```sh
-cargo install --git https://github.com/wgsl-analyzer/wgsl-analyzer wgsl_analyzer
-```
-]],
- default_config = {
- root_dir = [[root_pattern(".git")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/yamlls.lua b/lua/lspconfig/server_configurations/yamlls.lua
deleted file mode 100644
index 3756e620..00000000
--- a/lua/lspconfig/server_configurations/yamlls.lua
+++ /dev/null
@@ -1,80 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'yaml-language-server', '--stdio' },
- filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab' },
- 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=<urlToTheSchema|relativeFilePath|absoluteFilePath}>
-```
-
-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/lua/lspconfig/server_configurations/yang_lsp.lua b/lua/lspconfig/server_configurations/yang_lsp.lua
deleted file mode 100644
index d4c9b8b6..00000000
--- a/lua/lspconfig/server_configurations/yang_lsp.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'yang-language-server' },
- filetypes = { 'yang' },
- root_dir = util.find_git_ancestor,
- },
- docs = {
- description = [[
-https://github.com/TypeFox/yang-lsp
-
-A Language Server for the YANG data modeling language.
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/yls.lua b/lua/lspconfig/server_configurations/yls.lua
deleted file mode 100644
index 86cb3377..00000000
--- a/lua/lspconfig/server_configurations/yls.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'yls', '-vv' },
- filetypes = { 'yar', 'yara' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://pypi.org/project/yls-yara/
-
-An YLS plugin adding YARA linting capabilities.
-
-This plugin runs yara.compile on every save, parses the errors, and returns list of diagnostic messages.
-
-Language Server: https://github.com/avast/yls
-]],
- },
-}
diff --git a/lua/lspconfig/server_configurations/ziggy.lua b/lua/lspconfig/server_configurations/ziggy.lua
deleted file mode 100644
index 4ca58fb3..00000000
--- a/lua/lspconfig/server_configurations/ziggy.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ziggy', 'lsp' },
- filetypes = { 'ziggy' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://ziggy-lang.io/documentation/ziggy-lsp/
-
-Language server for the Ziggy data serialization format
-
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/ziggy_schema.lua b/lua/lspconfig/server_configurations/ziggy_schema.lua
deleted file mode 100644
index 2bd01cc8..00000000
--- a/lua/lspconfig/server_configurations/ziggy_schema.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local util = require 'lspconfig.util'
-
-return {
- default_config = {
- cmd = { 'ziggy', 'lsp', '--schema' },
- filetypes = { 'ziggy_schema' },
- root_dir = util.find_git_ancestor,
- single_file_support = true,
- },
- docs = {
- description = [[
-https://ziggy-lang.io/documentation/ziggy-lsp/
-
-Language server for schema files of the Ziggy data serialization format
-
-]],
- default_config = {
- root_dir = [[util.find_git_ancestor]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/zk.lua b/lua/lspconfig/server_configurations/zk.lua
deleted file mode 100644
index 57a1ea1a..00000000
--- a/lua/lspconfig/server_configurations/zk.lua
+++ /dev/null
@@ -1,79 +0,0 @@
-local util = require 'lspconfig.util'
-
-local function find_zk_root(startpath)
- for dir in vim.fs.parents(startpath) do
- if vim.fn.isdirectory(vim.fs.joinpath(dir, '.zk')) == 1 then
- return dir
- end
- end
-end
-
-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 = 'ZkIndex',
- },
- ZkList = {
- function()
- local bufpath = vim.api.nvim_buf_get_name(0)
- local root = find_zk_root(bufpath)
-
- vim.lsp.buf_request(0, 'workspace/executeCommand', {
- command = 'zk.list',
- arguments = { root, { select = { 'path' } } },
- }, function(_, result, _, _)
- if not result then
- return
- end
- local paths = vim.tbl_map(function(item)
- return item.path
- end, result)
- vim.ui.select(paths, {}, function(choice)
- vim.cmd('edit ' .. choice)
- end)
- end)
- end,
-
- description = 'ZkList',
- },
- 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 = [[
-https://github.com/mickael-menu/zk
-
-A plain text note-taking assistant
-]],
- default_config = {
- root_dir = [[root_pattern(".zk")]],
- },
- },
-}
diff --git a/lua/lspconfig/server_configurations/zls.lua b/lua/lspconfig/server_configurations/zls.lua
deleted file mode 100644
index d92a797d..00000000
--- a/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', 'build.zig', '.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", "build.zig", ".git")]],
- },
- },
-}