plugins/rust-tools: Add a plugins for LSP extensions for rust-analyzer (#132)

This commit is contained in:
traxys 2023-01-21 19:52:56 +01:00 committed by GitHub
parent a1af9214e1
commit 23327700e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
-- }}}
'';