mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
|
{
|
||
|
# Empty configuration
|
||
|
empty = {
|
||
|
plugins.rust-tools.enable = true;
|
||
|
};
|
||
|
|
||
|
# All the upstream default options of rust-tools
|
||
|
defaults = {
|
||
|
plugins.rust-tools = {
|
||
|
enable = true;
|
||
|
executor = "termopen";
|
||
|
onInitialized = null;
|
||
|
reloadWorkspaceFromCargoToml = true;
|
||
|
inlayHints = {
|
||
|
auto = true;
|
||
|
onlyCurrentLine = false;
|
||
|
showParameterHints = true;
|
||
|
parameterHintsPrefix = "<- ";
|
||
|
otherHintsPrefix = "=> ";
|
||
|
maxLenAlign = false;
|
||
|
maxLenAlignPadding = 1;
|
||
|
rightAlign = false;
|
||
|
rightAlignPadding = 7;
|
||
|
highlight = "Comment";
|
||
|
};
|
||
|
hoverActions = {
|
||
|
border = [
|
||
|
["╭" "FloatBorder"]
|
||
|
["─" "FloatBorder"]
|
||
|
["╮" "FloatBorder"]
|
||
|
["│" "FloatBorder"]
|
||
|
["╯" "FloatBorder"]
|
||
|
["─" "FloatBorder"]
|
||
|
["╰" "FloatBorder"]
|
||
|
["│" "FloatBorder"]
|
||
|
];
|
||
|
maxWidth = null;
|
||
|
maxHeight = null;
|
||
|
autoFocus = false;
|
||
|
};
|
||
|
crateGraph = {
|
||
|
backend = "x11";
|
||
|
output = null;
|
||
|
full = true;
|
||
|
enabledGraphvizBackends = null;
|
||
|
};
|
||
|
server = {
|
||
|
standalone = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|