My dotfiles.
Since I use two laptops (+ homelab servers) daily and jump between environments all the time, I had to ensure my setup is fully compatible with both:
- Debian/GNOME (personal laptop)
- OSX (work laptop).
My recommendation is to not use the config as is and just use this to learn and pick up what you like. It is configured to be used for Go, Rust and JavaScript.
- Have Alacritty, Starship, (Neo)Vim and Git installed of course.
- Install
tmux
and the plugins manager. - Install
zsh
: Oh My ZSH, pwerlevel10k theme, zsh-autosuggestions and szsh-syntax-highlighting. - Install
Inconsolata font
and Knack Nerd Font. - Install some cool binaries like ripgrep, lf, bat, fd, exa and delta.
- If you're on OSX install reattach-to-user-namespace.
- Remove cache (or backup) first:
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim
- Clone the repo and copy the nvim config.
git clone git@github.com:sourcesoft/dotfiles.git
cd dotfiles
mv nvim ~/.config/nvim
- Start tmux by running
tmux
and install tmux plugins withPrefix + I
- Open neovim and let the installer take its time to install all plugins. You may need to reopen neovim a few times to get everything installed.
- run
:Mason
and install LSP and formatters you're interested in. - Optionally check out config files in the repository like
.bash_profile
,.alacritty.yml
,.gitconfig
,.tmux.conf
,.zshrc
,.eslintrc.js
,prettierrc
,.gitignore
,.prettierignore
and more.
It's much easier to use right CMD or Alt instead of reaching out to escape. I also use Caps Lock for Control, since it's closer and easier to hit.
- Escape -> Right CMD or Right Alt
- Control -> Caps Lock
Tools to setup the key bindings:
- OSX: Use Karabiner to map
- Ubuntu: Install xcape (https://github.com/alols/xcape)
- Use the following command:
xcape -e 'Alt_R=Escape;ISO_Level3_Shift=Escape'
- Use the following command: