Skip to content

Jacobus-afk/dotfiles

Repository files navigation

DotFiles and other general workflow improvements

Installing dotfiles on new workstation

Clone the repo:

git clone https://github.com/Jacobus-afk/dotfiles.git

Requirements

Stow

sudo apt install stow

Applying new config

For example nvim

stow -S nvim

Handling Python env files

Automatically applying python env files is a bit of a headache. There are some nvim plugins that attempt to attach a venv(swenv.nvim is one) but they're not fully realised. The cleanest solution I could find is to use direnv

Installation

  • Ubuntu

    sudo apt  install direnv
  • Add the following to the end of .zshrc

    eval "$(direnv hook zsh)"

Configuring a python project

To allow direnv to automatically enable the virtual environtment, add a .envrc file to your project that contains the following:

source <VENV_NAME>/bin/activate
unset PS1

Better git diffs with delta

Delta Installation

Follow the delta installation instructions. For Ubuntu, use the latest .deb package on the releases page.

wget https://github.com/dandavison/delta/releases/download/0.17.0/git-delta-musl_0.17.0_amd64.deb
sudo dpkg -i git-delta-musl_0.17.0_amd64.deb

Configuration

Edit ~/.gitconfig and add the following

[core]
    pager = delta

[interactive]
    diffFilter = delta --color-only

[delta]
    navigate = true    # use n and N to move between diff sections
    line-numbers = true


    # delta detects terminal colors automatically; set one of these to disable auto-detection
    # dark = true
    # light = true

[merge]
    conflictstyle = diff3

[diff]
    colorMoved = default

Better syntax highlighting with semshi

Semshi provides semantic highlighting for python in neovim. It results in things like functions not having the same default highlighting as variables. One caveat, though is that it ⚠️requires pynvim in each venv⚠️

Better directory traversal with zoxide

Search with fzf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors