From fdb48e750a6a2d425d9727134b835c0ee343caba Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Sun, 10 Sep 2023 18:37:42 +0200 Subject: [PATCH] feat: changes and such --- git/gitconfig | 2 ++ kitty/kitty.conf | 3 +++ nvim/init.vim | 23 ++++++----------------- zsh/zshrc | 15 ++++++++++----- 4 files changed, 21 insertions(+), 22 deletions(-) diff --git a/git/gitconfig b/git/gitconfig index 269a896..a700c63 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -30,3 +30,5 @@ process = git-lfs filter-process required = true +[http] + postBuffer = 3221225472 diff --git a/kitty/kitty.conf b/kitty/kitty.conf index e311d47..25db8fd 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -79,3 +79,6 @@ map ctrl+shift+[ previous_tab map ctrl+shift+enter launch --cwd=current map ctrl+shift+t new_tab_with_cwd + +# Misc +term xterm-256color diff --git a/nvim/init.vim b/nvim/init.vim index 1761e21..66b481c 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -17,6 +17,7 @@ Plug 'vim-airline/vim-airline' Plug 'sainnhe/edge' Plug 'Yggdroot/indentLine' Plug 'koenverburg/peepsight.nvim' +Plug 'norcalli/nvim-colorizer.lua' " Git Plug 'airblade/vim-gitgutter' " Search/Files @@ -278,6 +279,11 @@ nmap [s (coc-typos-prev) " Fix typo at cursor position nmap z= (coc-typos-fix) +""""" +"--- Colorizer +set termguicolors +lua require'colorizer'.setup() + """"" "- Visuals set noshowmode @@ -285,23 +291,6 @@ set number set cursorline set hlsearch " highlight all results set signcolumn=number " always show git diff column - -"Credit joshdick -"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. -"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support -"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) -if (empty($TMUX)) - if (has("nvim")) - "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > - let $NVIM_TUI_ENABLE_TRUE_COLOR=1 - endif - "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > - "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > - " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > - if (has("termguicolors")) - set termguicolors - endif -endif set background=light let g:edge_enable_italic = 1 let g:edge_background = 'hard' diff --git a/zsh/zshrc b/zsh/zshrc index e5871c6..c516c18 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -41,6 +41,8 @@ alias gic="git checkout" alias difft="difftastic" alias vim="nvim" +alias kssh="kitty +kitten ssh" + # PATH export PATH=$PATH:$HOME/.bin:$HOME/go/bin:/snap/bin @@ -50,11 +52,14 @@ export EDITOR=vim # Nix fix export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive -# Tmux nicer window name -tmux-window-name() { - ($TMUX_PLUGIN_MANAGER_PATH/tmux-window-name/scripts/rename_session_windows.py &) -} -add-zsh-hook chpwd tmux-window-name +if [ "${ZSH_TMUX_AUTOSTART}" = "true" ] +then + # Tmux nicer window name + tmux-window-name() { + ($TMUX_PLUGIN_MANAGER_PATH/tmux-window-name/scripts/rename_session_windows.py &) + } + add-zsh-hook chpwd tmux-window-name +fi # Starship export STARSHIP_CONFIG=~/.starship.toml