修改mimeapps.list的配置方式
This commit is contained in:
@@ -49,11 +49,9 @@
|
||||
"augment.chat.userGuidelines": "Always response in 中文",
|
||||
"augment.completions.enableAutomaticCompletions": true,
|
||||
"editor.fontFamily": "'Source Code Pro', 'JetBrainsMono Nerd Font'",
|
||||
"github.copilot.enable": {
|
||||
"*": true,
|
||||
"plaintext": false,
|
||||
"markdown": false,
|
||||
"scminput": false,
|
||||
"nix": true
|
||||
}
|
||||
"github.copilot.nextEditSuggestions.enabled": true,
|
||||
"update.mode": "none",
|
||||
"github.copilot.chat.localeOverride": "zh-CN",
|
||||
"github.copilot.selectedCompletionModel": "GPT-4.1",
|
||||
"diffEditor.ignoreTrimWhitespace": false
|
||||
}
|
||||
@@ -25,12 +25,15 @@ in
|
||||
});
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"Code/User/keybindings.json" = {
|
||||
source = config.home-libs.mkOutOfStoreSymlink "modules/home/vscode/keybindings.json";
|
||||
};
|
||||
"Code/User/settings.json" = {
|
||||
source = config.home-libs.mkOutOfStoreSymlink "modules/home/vscode/settings.json";
|
||||
};
|
||||
};
|
||||
# 使用map函数循环 conf 变量,动态的生成 home.file.<user>.config.${i}
|
||||
xdg.configFile = builtins.listToAttrs
|
||||
(builtins.map
|
||||
(name: {
|
||||
name = "Code/User/${name}";
|
||||
value = {
|
||||
source = config.home-libs.mkOutOfStoreSymlink "modules/home/vscode/conf/${name}";
|
||||
};
|
||||
})
|
||||
(builtins.attrNames (builtins.readDir ./conf))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user