mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-08 00:04:33 +02:00
plugins/rust-tools: Add a plugins for LSP extensions for rust-analyzer (#132)
This commit is contained in:
parent
a1af9214e1
commit
23327700e2
3 changed files with 227 additions and 0 deletions
|
@ -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
|
||||
-- }}}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue