From 108f1608206d0cc3a9c4ad87ea381aa196524881 Mon Sep 17 00:00:00 2001 From: Harri Lahtinen Date: Sat, 15 Feb 2020 16:39:17 +0200 Subject: [PATCH] nvim colors and p10k stuff --- .config/nvim/config/main.vim | 4 +--- .config/nvim/config/plugin-settings.vim | 1 + .config/nvim/config/plugins.vim | 2 +- .p10k.zsh | 13 +++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.config/nvim/config/main.vim b/.config/nvim/config/main.vim index 1fe3c20..10b7b69 100644 --- a/.config/nvim/config/main.vim +++ b/.config/nvim/config/main.vim @@ -11,9 +11,7 @@ " Enable true colors support. Do not use this option if your terminal does not " support true colors! For a comprehensive list of terminals supporting true " colors, see https://github.com/termstandard/colors and https://bit.ly/2InF97t. -if $TERM == "xterm-256color" || exists('g:started_by_firenvim') - set termguicolors -endif +set termguicolors " Use dark background set background=dark diff --git a/.config/nvim/config/plugin-settings.vim b/.config/nvim/config/plugin-settings.vim index 0d59885..ff865f8 100644 --- a/.config/nvim/config/plugin-settings.vim +++ b/.config/nvim/config/plugin-settings.vim @@ -246,6 +246,7 @@ let s:header= [ let g:startify_change_to_dir = 1 let g:startify_custom_header = s:center(s:header) +let g:startify_session_dir = '~/.local/share/nvim/session' " Optionally create and use footer "let s:header= [] "let g:startify_custom_footer = s:center(s:footer) diff --git a/.config/nvim/config/plugins.vim b/.config/nvim/config/plugins.vim index 83d9cfc..117ea44 100644 --- a/.config/nvim/config/plugins.vim +++ b/.config/nvim/config/plugins.vim @@ -14,7 +14,7 @@ if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif -call plug#begin('~/.vim/plugged') +call plug#begin('~/.local/share/nvim/plugins') " Intellisense engine for neovim Plug 'neoclide/coc.nvim', {'branch': 'release'} diff --git a/.p10k.zsh b/.p10k.zsh index 5be73c5..8082953 100644 --- a/.p10k.zsh +++ b/.p10k.zsh @@ -83,12 +83,12 @@ vim_shell # vim shell indicator (:sh) midnight_commander # midnight commander shell (https://midnight-commander.org/) vi_mode # vi mode (you don't need this if you've enabled prompt_char) - # vpn_ip # virtual private network indicator + vpn_ip # virtual private network indicator # ram # free RAM # load # CPU load todo # todo items (https://github.com/todotxt/todo.txt-cli) # time # current time - # public_ip # public IP address + public_ip # public IP address # proxy # system-wide http/https/ftp proxy battery # internal battery # example # example user-defined segment (see prompt_example function below) @@ -1024,15 +1024,16 @@ ###############################[ public_ip: public IP address ]############################### # Public IP color. - typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=94 + typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=004 # Custom icon. # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' ########################[ vpn_ip: virtual private network indicator ]######################### # VPN IP color. - typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=81 + typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=004 + typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND='' # When on VPN, show just an icon without the IP address. - typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION= + # typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION='' # Regular expression for the VPN network interface. Run ifconfig while on VPN to see the # name of the interface. typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(wg|(.*tun))[0-9]*' @@ -1048,7 +1049,7 @@ ################################[ battery: internal battery ]################################# # Show battery in red when it's below this level and not connected to power supply. typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20 - typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=001 + typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=160 # Show battery in green when it's charging or fully charged. typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=002 # Show battery in yellow when it's discharging.