generated: Update

- Updated lspconfig-servers.json
- Updated none-ls.nix
This commit is contained in:
github-actions[bot] 2024-12-06 08:05:10 +00:00
parent 4502cf3c0b
commit c6e8f4dd52
2 changed files with 8 additions and 4 deletions

View file

@ -406,7 +406,7 @@
"name": "efm"
},
{
"desc": "https://github.com/elixir-lsp/elixir-ls\n\n`elixir-ls` can be installed by following the instructions\n[here](https://github.com/elixir-lsp/elixir-ls#building-and-running).\n\n``` bash\ncurl -fLO https://github.com/elixir-lsp/elixir-ls/releases/latest/download/elixir-ls.zip\nunzip elixir-ls.zip -d /path/to/elixir-ls\n# Unix\nchmod +x /path/to/elixir-ls/language_server.sh\n```\n\n**By default, elixir-ls doesn't have a `cmd` set.** This is because\nnvim-lspconfig does not make assumptions about your path. You must add\nthe following to your init.vim or init.lua to set `cmd` to the absolute\npath (\\$HOME and \\~ are not expanded) of your unzipped elixir-ls.\n\n``` lua\nrequire'lspconfig'.elixirls.setup{\n -- Unix\n cmd = { \"/path/to/elixir-ls/language_server.sh\" };\n -- Windows\n cmd = { \"/path/to/elixir-ls/language_server.bat\" };\n ...\n}\n```\n\n'root_dir' is chosen like this: if two or more directories containing\n`mix.exs` were found when searching directories upward, the second one\n(higher up) is chosen, with the assumption that it is the root of an\numbrella app. Otherwise the directory containing the single mix.exs that\nwas found is chosen.\n",
"desc": "https://github.com/elixir-lsp/elixir-ls\n\n`elixir-ls` can be installed by following the instructions\n[here](https://github.com/elixir-lsp/elixir-ls#building-and-running).\n\n1. Download the zip from\n https://github.com/elixir-lsp/elixir-ls/releases/latest/\n\n2. Unzip it and make it executable.\n\n ``` bash\n unzip elixir-ls.zip -d /path/to/elixir-ls\n # Unix\n chmod +x /path/to/elixir-ls/language_server.sh\n ```\n\n**By default, elixir-ls doesn't have a `cmd` set.** This is because\nnvim-lspconfig does not make assumptions about your path. You must add\nthe following to your init.vim or init.lua to set `cmd` to the absolute\npath (\\$HOME and \\~ are not expanded) of your unzipped elixir-ls.\n\n``` lua\nrequire'lspconfig'.elixirls.setup{\n -- Unix\n cmd = { \"/path/to/elixir-ls/language_server.sh\" };\n -- Windows\n cmd = { \"/path/to/elixir-ls/language_server.bat\" };\n ...\n}\n```\n\n'root_dir' is chosen like this: if two or more directories containing\n`mix.exs` were found when searching directories upward, the second one\n(higher up) is chosen, with the assumption that it is the root of an\numbrella app. Otherwise the directory containing the single mix.exs that\nwas found is chosen.\n",
"name": "elixirls"
},
{
@ -805,7 +805,7 @@
},
{
"cmd": ["lua-language-server"],
"desc": "https://github.com/luals/lua-language-server\n\nLua language server.\n\n`lua-language-server` can be installed by following the instructions\n[here](https://luals.github.io/#neovim-install).\n\nThe default `cmd` assumes that the `lua-language-server` binary can be\nfound in `$PATH`.\n\nIf you primarily use `lua-language-server` for Neovim, and want to\nprovide completions, analysis, and location handling for plugins on\nruntime path, you can use the following settings.\n\n``` lua\nrequire'lspconfig'.lua_ls.setup {\n on_init = function(client)\n if client.workspace_folders then\n local path = client.workspace_folders[1].name\n if vim.uv.fs_stat(path..'/.luarc.json') or vim.uv.fs_stat(path..'/.luarc.jsonc') then\n return\n end\n end\n\n client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {\n runtime = {\n -- Tell the language server which version of Lua you're using\n -- (most likely LuaJIT in the case of Neovim)\n version = 'LuaJIT'\n },\n -- Make the server aware of Neovim runtime files\n workspace = {\n checkThirdParty = false,\n library = {\n vim.env.VIMRUNTIME\n -- Depending on the usage, you might want to add additional paths here.\n -- \"${3rd}/luv/library\"\n -- \"${3rd}/busted/library\",\n }\n -- or pull in all of 'runtimepath'. NOTE: this is a lot slower and will cause issues when working on your own configuration (see https://github.com/neovim/nvim-lspconfig/issues/3189)\n -- library = vim.api.nvim_get_runtime_file(\"\", true)\n }\n })\n end,\n settings = {\n Lua = {}\n }\n}\n```\n\nSee `lua-language-server`'s\n[documentation](https://luals.github.io/wiki/settings/) for an\nexplanation of the above fields: \\*\n[Lua.runtime.path](https://luals.github.io/wiki/settings/#runtimepath)\n\\*\n[Lua.workspace.library](https://luals.github.io/wiki/settings/#workspacelibrary)\n",
"desc": "https://github.com/luals/lua-language-server\n\nLua language server.\n\n`lua-language-server` can be installed by following the instructions\n[here](https://luals.github.io/#neovim-install).\n\nThe default `cmd` assumes that the `lua-language-server` binary can be\nfound in `$PATH`.\n\nIf you primarily use `lua-language-server` for Neovim, and want to\nprovide completions, analysis, and location handling for plugins on\nruntime path, you can use the following settings.\n\n``` lua\nrequire'lspconfig'.lua_ls.setup {\n on_init = function(client)\n if client.workspace_folders then\n local path = client.workspace_folders[1].name\n if vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc') then\n return\n end\n end\n\n client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {\n runtime = {\n -- Tell the language server which version of Lua you're using\n -- (most likely LuaJIT in the case of Neovim)\n version = 'LuaJIT'\n },\n -- Make the server aware of Neovim runtime files\n workspace = {\n checkThirdParty = false,\n library = {\n vim.env.VIMRUNTIME\n -- Depending on the usage, you might want to add additional paths here.\n -- \"${3rd}/luv/library\"\n -- \"${3rd}/busted/library\",\n }\n -- or pull in all of 'runtimepath'. NOTE: this is a lot slower and will cause issues when working on your own configuration (see https://github.com/neovim/nvim-lspconfig/issues/3189)\n -- library = vim.api.nvim_get_runtime_file(\"\", true)\n }\n })\n end,\n settings = {\n Lua = {}\n }\n}\n```\n\nSee `lua-language-server`'s\n[documentation](https://luals.github.io/wiki/settings/) for an\nexplanation of the above fields: \\*\n[Lua.runtime.path](https://luals.github.io/wiki/settings/#runtimepath)\n\\*\n[Lua.workspace.library](https://luals.github.io/wiki/settings/#workspacelibrary)\n",
"name": "lua_ls"
},
{ "cmd": ["luau-lsp", "lsp"], "name": "luau_lsp" },
@ -1444,7 +1444,7 @@
"name": "starpls"
},
{
"cmd": ["statix"],
"cmd": ["statix", "check", "--stdin"],
"desc": "https://github.com/nerdypepper/statix\n\nlints and suggestions for the nix programming language\n ",
"name": "statix"
},
@ -1704,7 +1704,7 @@
},
{
"cmd": ["vue-language-server", "--stdio"],
"desc": "https://github.com/johnsoncodehk/volar/tree/20d713b/packages/vue-language-server\n\nVolar language server for Vue\n\nVolar can be installed via npm:\n\n``` sh\nnpm install -g @vue/language-server\n```\n\nVolar by default supports Vue 3 projects. Vue 2 projects need\n[additional\nconfiguration](https://github.com/vuejs/language-tools/tree/master/packages/vscode-vue#usage).\n\n**TypeScript support** As of release 2.0.0, Volar no longer wraps around\nts_ls. For typescript support, `ts_ls` needs to be configured with the\n`@vue/typescript-plugin` plugin.\n\n**Take Over Mode**\n\nVolar (prior to 2.0.0), can serve as a language server for both Vue and\nTypeScript via [Take Over\nMode](https://github.com/johnsoncodehk/volar/discussions/471).\n\nTo enable Take Over Mode, override the default filetypes in `setup{}` as\nfollows:\n\n``` lua\nrequire'lspconfig'.volar.setup{\n filetypes = {'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json'}\n}\n```\n\n**Overriding the default TypeScript Server used by Volar**\n\nThe default config looks for TS in the local `node_modules`. This can\nlead to issues e.g.\u00a0when working on a\n[monorepo](https://monorepo.tools/). The alternatives are:\n\n- use a global TypeScript Server installation\n\n``` lua\nrequire'lspconfig'.volar.setup{\n init_options = {\n typescript = {\n tsdk = '/path/to/.npm/lib/node_modules/typescript/lib'\n -- Alternative location if installed as root:\n -- tsdk = '/usr/local/lib/node_modules/typescript/lib'\n }\n }\n}\n```\n\n- use a local server and fall back to a global TypeScript Server\n installation\n\n``` lua\nlocal util = require 'lspconfig.util'\nlocal function get_typescript_server_path(root_dir)\n\n local global_ts = '/home/[yourusernamehere]/.npm/lib/node_modules/typescript/lib'\n -- Alternative location if installed as root:\n -- local global_ts = '/usr/local/lib/node_modules/typescript/lib'\n local found_ts = ''\n local function check_dir(path)\n found_ts = util.path.join(path, 'node_modules', 'typescript', 'lib')\n if util.path.exists(found_ts) then\n return path\n end\n end\n if util.search_ancestors(root_dir, check_dir) then\n return found_ts\n else\n return global_ts\n end\nend\n\nrequire'lspconfig'.volar.setup{\n on_new_config = function(new_config, new_root_dir)\n new_config.init_options.typescript.tsdk = get_typescript_server_path(new_root_dir)\n end,\n}\n```\n",
"desc": "https://github.com/johnsoncodehk/volar/tree/20d713b/packages/vue-language-server\n\nVolar language server for Vue\n\nVolar can be installed via npm:\n\n``` sh\nnpm install -g @vue/language-server\n```\n\nVolar by default supports Vue 3 projects. Vue 2 projects need\n[additional\nconfiguration](https://github.com/vuejs/language-tools/tree/master/packages/vscode-vue#usage).\n\n**TypeScript support** As of release 2.0.0, Volar no longer wraps around\nts_ls. For typescript support, `ts_ls` needs to be configured with the\n`@vue/typescript-plugin` plugin.\n\n**Take Over Mode**\n\nVolar (prior to 2.0.0), can serve as a language server for both Vue and\nTypeScript via [Take Over\nMode](https://github.com/johnsoncodehk/volar/discussions/471).\n\nTo enable Take Over Mode, override the default filetypes in `setup{}` as\nfollows:\n\n``` lua\nrequire'lspconfig'.volar.setup{\n filetypes = {'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json'}\n}\n```\n\n**Overriding the default TypeScript Server used by Volar**\n\nThe default config looks for TS in the local `node_modules`. This can\nlead to issues e.g.\u00a0when working on a\n[monorepo](https://monorepo.tools/). The alternatives are:\n\n- use a global TypeScript Server installation\n\n``` lua\nrequire'lspconfig'.volar.setup{\n init_options = {\n typescript = {\n tsdk = '/path/to/.npm/lib/node_modules/typescript/lib'\n -- Alternative location if installed as root:\n -- tsdk = '/usr/local/lib/node_modules/typescript/lib'\n }\n }\n}\n```\n\n- use a local server and fall back to a global TypeScript Server\n installation\n\n``` lua\nlocal util = require 'lspconfig.util'\nlocal function get_typescript_server_path(root_dir)\n\n local global_ts = '/home/[yourusernamehere]/.npm/lib/node_modules/typescript/lib'\n -- Alternative location if installed as root:\n -- local global_ts = '/usr/local/lib/node_modules/typescript/lib'\n local found_ts = ''\n local function check_dir(path)\n found_ts = util.path.join(path, 'node_modules', 'typescript', 'lib')\n if vim.loop.fs_stat(found_ts) then\n return path\n end\n end\n if util.search_ancestors(root_dir, check_dir) then\n return found_ts\n else\n return global_ts\n end\nend\n\nrequire'lspconfig'.volar.setup{\n on_new_config = function(new_config, new_root_dir)\n new_config.init_options.typescript.tsdk = get_typescript_server_path(new_root_dir)\n end,\n}\n```\n",
"name": "volar"
},
{

View file

@ -15,6 +15,7 @@
];
completion = [
"luasnip"
"nvim_snippets"
"spell"
"tags"
"vsnip"
@ -83,6 +84,7 @@
"solhint"
"spectral"
"sqlfluff"
"sqruff"
"staticcheck"
"statix"
"stylelint"
@ -134,6 +136,7 @@
"dfmt"
"djhtml"
"djlint"
"duster"
"dxfmt"
"elm_format"
"emacs_scheme_mode"
@ -210,6 +213,7 @@
"sqlfluff"
"sqlfmt"
"sqlformat"
"sqruff"
"stylelint"
"styler"
"stylua"