Updated kak config

This commit is contained in:
Steph 2022-08-04 10:17:02 +02:00
parent b5714fcae5
commit e945003c3a
2 changed files with 13 additions and 6 deletions

View File

@ -254,6 +254,7 @@ $NEW_PROMPT_COMMAND"
setw -g automatic-rename on
set -g renumber-windows on
set -g set-titles on
set -g set-titles-string "#T"
'';

View File

@ -23,6 +23,7 @@ let
set-option global kaktree_dir_icon_close ' 🗀 '
set-option global kaktree_file_icon '🖺'
remove-highlighter buffer/show-whitespaces
set window modelinefmt ' '
}
hook global WinSetOption filetype=(javascript|typescript) %{
@ -39,6 +40,10 @@ let
}
}
hook global WinCreate [^*]* %{
editorconfig-load
}
kaktree-enable
'';
@ -186,18 +191,19 @@ let
name = "edit";
runtimeInputs = [ myKakoune ];
text = ''
tmux -L editor new-session -d -s editor 'kak -e kaktree-toggle'
tmux -L editor set -g status off
tmux -L editor set -g pane-border-style fg=#0c0c0c
tmux -L editor set -g pane-active-border-style "bg=default fg=#0c0c0c"
tmux -L editor attach -t editor
BUFFER_NAME=''$(echo -n "''$PWD" | xxd -ps -c 200 | tr -d '\n')
tmux -L "$BUFFER_NAME" new-session -d -s "$BUFFER_NAME" 'kak -e kaktree-toggle'
tmux -L "$BUFFER_NAME" set -g status off
tmux -L "$BUFFER_NAME" set -g pane-border-style fg=#0c0c0c
tmux -L "$BUFFER_NAME" set -g pane-active-border-style "bg=default fg=#0c0c0c"
tmux -L "$BUFFER_NAME" attach -t "$BUFFER_NAME"
'';
});
myKakoune = kakoune.override {
plugins = with kakounePlugins; [ config lsp colors kak-crosshairs kaktree ];
plugins = with kakounePlugins; [ config lsp colors kak-crosshairs kaktree kakoune-state-save ];
};
in
{