mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
update-scripts: Extract the list of all servers from nvim-lspconfig
This commit is contained in:
parent
cab6b0c9fe
commit
aa24b3f9d8
8 changed files with 1832 additions and 1 deletions
|
@ -3,12 +3,17 @@
|
|||
rust-analyzer-options,
|
||||
efmls-configs-sources,
|
||||
none-ls-builtins,
|
||||
lspconfig-servers,
|
||||
nixfmt-rfc-style,
|
||||
nodePackages,
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "generate";
|
||||
|
||||
runtimeInputs = [ nixfmt-rfc-style ];
|
||||
runtimeInputs = [
|
||||
nixfmt-rfc-style
|
||||
nodePackages.prettier
|
||||
];
|
||||
|
||||
text = ''
|
||||
repo_root=$(git rev-parse --show-toplevel)
|
||||
|
@ -37,6 +42,8 @@ writeShellApplication {
|
|||
generate "${rust-analyzer-options}" "rust-analyzer"
|
||||
generate "${efmls-configs-sources}" "efmls-configs"
|
||||
generate "${none-ls-builtins}" "none-ls"
|
||||
echo "lspconfig servers"
|
||||
prettier --parser=json "${lspconfig-servers}" >"$generated_dir/lspconfig-servers.json"
|
||||
|
||||
if [ -n "$commit" ]; then
|
||||
cd "$generated_dir"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue