Skip to content

Commit

Permalink
update codecompanion, fix lvim tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishrb committed Sep 30, 2024
1 parent adc10dc commit 6fb4f00
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ which_key.add({
{ "<leader>cc", "<cmd>CodeCompanion<CR>", desc = "Quick chat", nowait = true, remap = false },
{ "<leader>ca", "<cmd>CodeCompanionActions<CR>", desc = "Actions", nowait = true, remap = false },
{ "<leader>co", "<cmd>CodeCompanionChat<CR>", desc = "New Chat", nowait = true, remap = false },
{ "<leader>ct", "<cmd>CodeCompanionToggle<CR>", desc = "Toggle chat", nowait = true, remap = false },
{ "<leader>ct", "<cmd>CodeCompanionChat Toggle<CR>", desc = "Toggle chat", nowait = true, remap = false },
{
mode = { "v" },
{ "<leader>c", group = "CodeCompanion (" .. adapter .. ")", nowait = true, remap = false },
Expand Down
2 changes: 1 addition & 1 deletion modules/common/shell/tmux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
# Smart pane switching with awareness of Vim splits.
# This is copy paste from https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?|vim-no-ai)(diff)?$'"
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?l?)(diff)?$'"
bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
Expand Down

0 comments on commit 6fb4f00

Please sign in to comment.