Skip to content

joselo/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My NVIM config

git clone [email protected]:joselo/nvim.git ~/.config/nvim

Create symbolic links to fonts and kitty

ln -s ~/.config/nvim/fonts  ~/.local/share
ln -s ~/.config/nvim/kitty  ~/.config

Dependencies

Install dependencies in Debian

  • Install ripgrep

      sudo apt install ripgrep
    
  • Install zf

      $ mkdir -p ~/.local/bin
    

Add the ~/.local/bin path directory to the ~/.zshrc file.

    export PATH="$PATH:$HOME/.local/bin"

Light/Dark themes in kitty

Add this function to the .zhrc

# Toggle kitty theme

light_theme() {
  # Set an environment variable
  export THEME="light"
  # Apply the kitty color scheme
  kitty @ set-colors -a "$HOME/.config/nvim/kitty/themes/papercolor-light.conf" 
  kitty @ set-font-size 12
}

dark_theme() {
  # Set an environment variable
  export THEME="dark"
  # Apply the kitty color scheme
  kitty @ set-colors -a "$HOME/.config/nvim/kitty/themes/papercolor-dark.conf" 
  kitty @ set-font-size 12
}

if [[ -z "$THEME" ]]; then
  dark_theme
fi

alias set-dark="dark_theme"
alias set-light="light_theme"

Then in your terminal:

    $ light_theme
    $ dark_theme

About

My nvim config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages