nix-community.nixvim/ci/nvim-lspconfig/default.nix
Matt Sturgeon 2b2b1e6d8f ci: rename update-scriptsci
This changes how we think about this directory; it does not need to be
exclusively for scripts related to updates, but should be a place for
any scripts intended to be run by CI workflows.

This mindset should make it easier to develop and test the business
logic of workflows, without always needing to test "in production" on
the nixvim repo or a fork.
2025-06-15 21:23:58 +00:00

37 lines
749 B
Nix

{
lib,
vimPlugins,
neovimUtils,
wrapNeovimUnstable,
neovim-unwrapped,
runCommand,
pandoc,
python3,
}:
let
nvimConfig = neovimUtils.makeNeovimConfig {
plugins = [
{
plugin = vimPlugins.nvim-lspconfig;
config = null;
optional = false;
}
];
};
nvim = wrapNeovimUnstable neovim-unwrapped nvimConfig;
in
runCommand "lspconfig-servers"
{
lspconfig = "${vimPlugins.nvim-lspconfig}";
nativeBuildInputs = [
pandoc
python3
];
}
''
export HOME=$(realpath .)
# Generates `lsp.json`
${lib.getExe nvim} -u NONE -E -R --headless +'luafile ${./lspconfig-servers.lua}' +q
LUA_FILTER=${./desc-filter.lua} python3 ${./clean-desc.py} "lsp.json" >$out
''