mirror of
https://github.com/fredrikr79/nixos.git
synced 2025-12-20 00:10:41 +01:00
toggleterm setup
This commit is contained in:
18
home.nix
18
home.nix
@@ -190,12 +190,6 @@ in {
|
||||
mode = [ "n" ];
|
||||
}
|
||||
|
||||
{
|
||||
key = "<leader>ot";
|
||||
action = ":ToggleTerm direction=float<cr>";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
|
||||
{
|
||||
key = "<leader>cc";
|
||||
action = ":CopilotChatToggle<cr>";
|
||||
@@ -553,9 +547,14 @@ in {
|
||||
|
||||
toggleterm = {
|
||||
enable = true;
|
||||
# keymaps = {
|
||||
# "<leader>ot" = "ToggleTerm shell=zsh";
|
||||
# };
|
||||
settings = {
|
||||
direction = "float";
|
||||
float_opts = {
|
||||
border = "curved";
|
||||
};
|
||||
open_mapping = "[[<leader>ot]]";
|
||||
close_on_exit = false;
|
||||
};
|
||||
};
|
||||
|
||||
autoclose.enable = true;
|
||||
@@ -817,5 +816,6 @@ in {
|
||||
];
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
newSession = true;
|
||||
terminal = "kitty";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user