home config migration
This commit is contained in:
parent
64f4c4f5b0
commit
4bba4871b4
25 changed files with 1296 additions and 16 deletions
50
modules/home/core/zed.nix
Normal file
50
modules/home/core/zed.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
package = pkgs.zed-editor;
|
||||
extensions = [ "nix" ];
|
||||
userSettings = {
|
||||
format_on_save = "off";
|
||||
features.edit_prediction_provider = "copilot";
|
||||
vim_mode = true;
|
||||
git.inline_blame.enabled = true;
|
||||
gutter.line_numbers = true;
|
||||
relative_line_numbers = "enabled";
|
||||
minimap.show = "never";
|
||||
autosave.after_delay.milliseconds = 1000;
|
||||
tab_size = 2;
|
||||
ui_font_size = 16;
|
||||
buffer_font_size = 15;
|
||||
base_keymap = "VSCode";
|
||||
file_types.tailwindcss = [ "*.css" ];
|
||||
auto_install_extensions.catppuccin-icons = true;
|
||||
icon_theme = "Catppuccin Mocha";
|
||||
theme = {
|
||||
mode = "dark";
|
||||
light = "Catppuccin Mocha (sapphire)";
|
||||
dark = "Catppuccin Mocha (sapphire)";
|
||||
};
|
||||
lsp.discord_presence.initialization_options = {
|
||||
application_id = "1263505205522337886";
|
||||
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
||||
state = "Working on {filename}";
|
||||
details = "In {workspace}";
|
||||
large_image = "{base_icons_url}/{language:lo}.png";
|
||||
large_text = "{language:u}";
|
||||
small_image = "{base_icons_url}/zed.png";
|
||||
small_text = "Zed";
|
||||
git_integration = true;
|
||||
idle = {
|
||||
timeout = 300;
|
||||
action = "change_activity";
|
||||
state = "Idling";
|
||||
details = "In Zed";
|
||||
large_image = "{base_icons_url}/zed.png";
|
||||
large_text = "Zed";
|
||||
small_image = "{base_icons_url}/idle.png";
|
||||
small_text = "Idle";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue