Added home-manager/modules/tmux
This commit is contained in:
parent
b7ba7391c1
commit
59bab9db3f
3 changed files with 130 additions and 4 deletions
|
@ -138,10 +138,6 @@
|
|||
" neoformat
|
||||
let g:neoformat_python_black = { 'args': ['-l 120'] }
|
||||
|
||||
" Set name of tmux pane
|
||||
autocmd BufReadPost,FileReadPost,BufNewFile,BufEnter * call system("tmux rename-window 'vim " . expand("%:t") . "'")
|
||||
autocmd VimLeave * call system("tmux rename-window 'tmux'")
|
||||
|
||||
" Enter goyo mode
|
||||
nmap <Leader>gy :Goyo 50%x100%<CR>
|
||||
|
||||
|
|
16
home-manager/modules/tmux.nix
Normal file
16
home-manager/modules/tmux.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
escapeTime = 0;
|
||||
plugins = [
|
||||
pkgs.tmuxPlugins.gruvbox
|
||||
];
|
||||
shell = "/home/felix/.nix-profile/bin/zsh";
|
||||
terminal = "xterm-256color";
|
||||
extraConfig = ''
|
||||
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue