1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-17 16:02:48 +01:00
nixvim/ci/nvim-lspconfig/unsupported.nix
saygo-png c89994b0ac treewide: generate JSON instead of Nix
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-10-19 00:31:33 +00:00

24 lines
623 B
Nix

{
runCommand,
jq,
vimPlugins,
}:
/**
Produces a JSON array of all nvim-lspconfig server configs that don't yet
support the new system.
I.e., files in the old `lua/lspconfig/configs/` directory, that aren't
present in the new `lsp/` directory.
*/
runCommand "unsupported-lspconfig-servers.json"
{
nativeBuildInputs = [ jq ];
lspconfig = vimPlugins.nvim-lspconfig;
}
''
for file in "$lspconfig"/lua/lspconfig/configs/*.lua
do
name=$(basename --suffix=.lua "$file")
[ -f "$lspconfig"/lsp/"$name".lua ] || echo "$name"
done | jq --raw-input . | jq --slurp [.] > "$out"
''