feat: Update zed editor config
This commit is contained in:
@@ -9,38 +9,32 @@
|
|||||||
|
|
||||||
programs.zed-editor = {
|
programs.zed-editor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userKeymaps =
|
extensions = ["catppuccin" "toml" "json" "yaml" "markdown" "python" "javascript" "typescript"];
|
||||||
builtins.fromJSON
|
userKeymaps = [
|
||||||
/*
|
|
||||||
json
|
|
||||||
*/
|
|
||||||
''
|
|
||||||
[
|
|
||||||
{
|
{
|
||||||
"context": "Workspace",
|
context = "Workspace";
|
||||||
"bindings": {
|
bindings = {
|
||||||
"ctrl-\\": "workspace::ToggleBottomDock",
|
"ctrl-\\" = "workspace::ToggleBottomDock";
|
||||||
"ctrl-k": "editor::GoToDefinition"
|
"ctrl-k" = "editor::GoToDefinition";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"context": "Editor",
|
context = "Editor";
|
||||||
"use_key_equivalents": true,
|
use_key_equivalents = true;
|
||||||
"bindings": {
|
bindings = {
|
||||||
"ctrl-k": "editor::GoToDefinition",
|
"ctrl-k" = "editor::GoToDefinition";
|
||||||
"ctrl-t": "pane::GoBack",
|
"ctrl-t" = "pane::GoBack";
|
||||||
"ctrl-l": "editor::AcceptEditPrediction"
|
"ctrl-l" = "editor::AcceptEditPrediction";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"context": "vim_mode == insert",
|
context = "vim_mode == insert";
|
||||||
"bindings": {
|
bindings = {
|
||||||
"ctrl-k": "editor::GoToDefinition",
|
"ctrl-k" = "editor::GoToDefinition";
|
||||||
"ctrl-l": "editor::AcceptEditPrediction"
|
"ctrl-l" = "editor::AcceptEditPrediction";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
];
|
||||||
]
|
|
||||||
'';
|
|
||||||
userSettings = {
|
userSettings = {
|
||||||
features = {
|
features = {
|
||||||
edit_prediction_provider = "copilot";
|
edit_prediction_provider = "copilot";
|
||||||
@@ -78,6 +72,7 @@
|
|||||||
program = "${pkgs.fish}/bin/fish";
|
program = "${pkgs.fish}/bin/fish";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
theme = "Catppuccin Mocha";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user