From d07fca6ccc6b185e51168dc82f09957797ba51ba Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:47:48 +1000 Subject: [PATCH] user: add zed configs --- zed/keymap.json | 18 ++++++++++++++++++ zed/settings.json | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 zed/keymap.json create mode 100644 zed/settings.json diff --git a/zed/keymap.json b/zed/keymap.json new file mode 100644 index 0000000..83f202e --- /dev/null +++ b/zed/keymap.json @@ -0,0 +1,18 @@ +// Zed keymap +// +// For information on binding keys, see the Zed +// documentation: https://zed.dev/docs/key-bindings +// +// To see the default key bindings run `zed: open default keymap` +// from the command palette. +[ + { + "context": "Editor", + "bindings": { + "ctrl-shift-up": "editor::MoveLineUp", + "ctrl-shift-down": "editor::MoveLineDown", + "alt-down": ["editor::SelectNext", { "replace_newest": false }], + "alt-up": ["editor::SelectPrevious", { "replace_newest": false }] + } + } +] diff --git a/zed/settings.json b/zed/settings.json new file mode 100644 index 0000000..79bddd2 --- /dev/null +++ b/zed/settings.json @@ -0,0 +1,36 @@ +// Zed settings +// +// For information on how to configure Zed, see the Zed +// documentation: https://zed.dev/docs/configuring-zed +// +// To see all of Zed's default settings without changing your +// custom settings, run `zed: open default settings` from the +// command palette (cmd-shift-p / ctrl-shift-p) +{ + "ui_font_size": 16, + "buffer_font_size": 16, + "theme": { + "mode": "system", + "light": "One Light", + "dark": "One Dark" + }, + "buffer_font_family": "CaskaydiaCove Nerd Font", + "multi_cursor_modifier": "cmd_or_ctrl", + "languages": { + "Nix": { + "language_servers": ["nixd", "!nil"] + } + }, + "lsp": { + "nixd": { + "settings": { + "nixpkgs": { + "expr": "import (builtins.getFlake (builtins.toString ./.)).inputs.nixpkgs {}" + }, + "formatting": { + "command": ["alejandra"] + } + } + } + } +}