plugins/rust-tools: Add a plugins for LSP extensions for rust-analyzer

This commit is contained in:
Quentin Boyer 2023-01-18 15:25:40 +01:00 committed by traxys
parent a1af9214e1
commit aa51f02e08
3 changed files with 227 additions and 0 deletions

View file

@ -51,6 +51,12 @@ in
description = "Code to be run before loading the LSP. Useful for requiring plugins";
default = "";
};
postConfig = mkOption {
type = types.lines;
description = "Code to be run after loading the LSP. This is an internal option";
default = "";
};
};
};
@ -92,6 +98,8 @@ in
require('lspconfig')[server.name].setup(options)
end
end
${cfg.postConfig}
end
-- }}}
'';