mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +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
37
update-scripts/nvim-lspconfig/default.nix
Normal file
37
update-scripts/nvim-lspconfig/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
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
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue