update some tmux and vim config
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
-- Make sure to update packer with `:PackerInstall` and `:PackerSync`
|
-- Make sure to update packer with `:PackerInstall` and `:PackerSync`
|
||||||
-- Treesitter with `:TSUpdate`
|
-- Treesitter with `:TSUpdate`
|
||||||
-- LSP with `:LSPInstall`, log with `:LSPInfo`
|
-- LSP with `:LSPInstall`, log with `:LSPInfo`
|
||||||
|
--
|
||||||
|
-- Rollback possible with packer.nvim
|
||||||
|
-- `:PackerSnapshot <DATE><MONTH DIGIT><YEAR>`
|
||||||
|
-- Location: ~/.cache/nvim/packer.nvim
|
||||||
|
|
||||||
-- This must be loaded first
|
-- This must be loaded first
|
||||||
vim.cmd("set termguicolors")
|
vim.cmd("set termguicolors")
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ bind-key -n M-l select-pane -R
|
|||||||
# pane / window modifications
|
# pane / window modifications
|
||||||
bind-key -n M-z resize-pane -Z
|
bind-key -n M-z resize-pane -Z
|
||||||
# use `set automatic-rename on` to reset
|
# use `set automatic-rename on` to reset
|
||||||
bind-key -n M-, command-prompt "rename-window '%%'"
|
bind-key -n M-, command-prompt -p "Rename window:" "rename-window '%%'"
|
||||||
|
bind-key -n M-< set automatic-rename on
|
||||||
|
|
||||||
# new windows
|
# new windows
|
||||||
bind-key -n M-c new-window -c "#{pane_current_path}"
|
bind-key -n M-c new-window -c "#{pane_current_path}"
|
||||||
@@ -36,8 +37,13 @@ bind-key -n M-8 select-window -t 8
|
|||||||
bind-key -n M-9 select-window -t 9
|
bind-key -n M-9 select-window -t 9
|
||||||
|
|
||||||
# swap panes
|
# swap panes
|
||||||
bind-key -n 'M-{' swap-pane -D
|
bind-key -n 'M-[' swap-pane -D
|
||||||
bind-key -n 'M-}' swap-pane -U
|
bind-key -n 'M-]' swap-pane -U
|
||||||
|
|
||||||
|
# move panes to and from windows
|
||||||
|
bind-key -n 'M-t' command-prompt -p "Send pane to:" "join-pane -t :'%%'"
|
||||||
|
bind-key -n 'M-#' select-layout even-horizontal
|
||||||
|
bind-key -n 'M-$' select-layout even-vertical
|
||||||
|
|
||||||
# resize panes
|
# resize panes
|
||||||
bind-key -n 'M-Left' resize-pane -L
|
bind-key -n 'M-Left' resize-pane -L
|
||||||
@@ -59,7 +65,7 @@ set -g base-index 1
|
|||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
# styling
|
# styling
|
||||||
set -g status-position top
|
set -g status-position bottom
|
||||||
|
|
||||||
# using https://github.com/edkolev/tmuxline.vim
|
# using https://github.com/edkolev/tmuxline.vim
|
||||||
# open vim, `:TmuxLineSnapshot`, save to ~/.tmux.theme
|
# open vim, `:TmuxLineSnapshot`, save to ~/.tmux.theme
|
||||||
|
|||||||
@@ -63,6 +63,14 @@ set laststatus=1 " 1: only if there are at least two windows
|
|||||||
set showtabline=1 " 1: only if there are at least two tab pages
|
set showtabline=1 " 1: only if there are at least two tab pages
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
|
|
||||||
|
let g:tmuxline_preset = {
|
||||||
|
\'a' : ['#H'],
|
||||||
|
\'win' : ['#I', '#W'],
|
||||||
|
\'cwin' : ['#[fg=default,bold]#I', '#W'],
|
||||||
|
\'y' : ['%R'],
|
||||||
|
\'z' : ['#S']}
|
||||||
|
let g:tmuxline_status_justify = 'left'
|
||||||
|
|
||||||
" ============================== Indents and Whitespaces
|
" ============================== Indents and Whitespaces
|
||||||
set list
|
set list
|
||||||
set listchars=tab:──\ ,extends:›,precedes:‹,nbsp:·,trail:· " show chars for whitespaces
|
set listchars=tab:──\ ,extends:›,precedes:‹,nbsp:·,trail:· " show chars for whitespaces
|
||||||
|
|||||||
Reference in New Issue
Block a user