/dotfiles

Primary LanguageJavaScript

Computer Setup

To be sorted

brew install ripgrep
npm i -g write-good
npm i -g eslint_d
brew install eslint
brew install lazydocker
brew install ctop
npm i -g dockly
brew install tokei
brew install bottom
brew install navi
brew install sketchybar
brew install kindavim
brew install hammerspoon

Basic Setup

Symlink a bunch of files and folders

ln -s ~/dotfiles/.zshrc ~
ln -s ~/dotfiles/.vimrc ~
ln -s ~/dotfiles/.exrc ~
ln -s ~/dotfiles/.inputrc ~
ln -s ~/dotfiles/.lesskey ~
ln -s ~/dotfiles/.tmux.conf ~
ln -s ~/dotfiles/.yabairc ~
ln -s ~/dotfiles/.skhdrc ~
ln -s ~/dotfiles/.wezterm.lua ~
ln -s ~/dotfiles/com.example.KeyRemapping.plist ~/Library/LaunchAgents/
ln -s ~/dotfiles/lazygit/ ~/.config/
ln -s ~/dotfiles/nvim/ ~/.config/
ln -s ~/dotfiles/nvimpager/ ~/.config/
ln -s ~/dotfiles/gitui/ ~/.config/
ln -s ~/dotfiles/alacritty/ ~/.config/
ln -s ~/dotfiles/yazi/ ~/.config/
ln -s ~/dotfiles/ubersicht/widgets/ ~/Library/Application\ Support/Übersicht/
ln -s ~/dotfiles/sketchybar ~/.config/
ln -s ~/dotfiles/hammerspoon ~/.hammerspoon

# scripts
ln -s ~/dotfiles/scripts/tmux-sessionizer ~/.local/bin/
ln -s ~/dotfiles/scripts/tmux-windowizer ~/.local/bin/

# start the services
yabai --start-service
brew services start sketchybar
brew services start hammerspoon

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install NeoVim

brew install neovim

Node is necessary for some plugins

brew install node

Antigen is the plugin manager for zsh

brew install antigen

Install a bunch of GUI apps using cask

brew install --cask alacritty
brew install --cask spacelauncher
brew install --cask topnotch
brew install --cask discord
brew install --cask github
brew install --cask ubersicht

Install a few commands

brew install fd
brew install fzf

Setup terminfo

# Clone alacritty
git clone https://github.com/alacritty/alacritty.git
cd alacritty
# setup terminfo
sudo tic -xe alacritty,alacritty-direct extra/alacritty.info
# cleanup
cd .. && rm -rf alacritty

Download a nerd font

brew tap homebrew/cask-fonts
brew install font-bitstream-vera-sans-mono-nerd-font

Enable font smoothing for Mac

defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

Set or create an environment variable NVIM_HOME in the 'rc' file to the location of the nvim directory. Currently, this is only referenced for the swap file directory.

set NVIM_HOME="/path/to/nvim/"

Java LSP Setup (configuration files are already setup)

Download eclipse.jdt.ls to /Library/Java/LanguageServers

  1. Install the various JDKs.
    brew install openjdk@11 # for example
    
  2. Link them to /Library/Java/JavaVirtualMachines.
    sudo ln -sfn ~/Documents/zulu-OpenJDK/openjdk-11.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
    
  3. Add Contents/Home to jenv. If an installation fails (for ARM or something), use zulu instead.
    jenv add /Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home
    

Clone and build in $HOME/Documents/GitHub/:

./mvnw clean install
npm install
npm run build-plugin

Plugin List

-- Lua Development

-- LSP

-- Completion

-- Snippets

-- Syntax/Treesitter

-- Marks

-- Fuzzy Finder/Telescope

-- Note Taking

-- Colorschemes

-- Utility

-- Icon

-- Debugging

-- Tabline

-- Statusline

-- Startup

-- Indent

-- File Explorer

-- Comment

-- Terminal

-- Git

-- Editing support

-- Keybinding

-- Java

-- Markdown