Skip to content

ckangnz/ckVim

Repository files navigation

Installation

Install Homebrew

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

Then source it depending on your environment.

# For Mac
eval "$(/usr/lib/bin/brew shellenv)"

# For Mac ARM
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> $HOME/.zprofile

# For WSL
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

Clone this project into ~/.vim

git clone https://github.com/chris542/ckVim ~/.vim

Installing CK-NVIM

Note

Pre-requisite for 🐧 Linux (WSL)

# You must install essential C Compilers

# Debian
sudo apt-get update && sudo apt-get install build-essential


# Archlinux (SteamOS especially)
sudo steamos-readoonly disable # enable once all packages are installed

sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate holo

sudo pacman -Syu
sudo pacman -S linux-api-headers # If you see an error regards to stdint.h

Run the script

Warning

This will override your .vimrc file

make vim

Installing CK-ZSH ⚡️

Note

Pre-requisite (only 🐧 For WSL/Linux)

Enabling Hyper V

  1. Open "Turn Windows features on or off"
  2. Find Hyper-V and enable it (This may require rebooting your computer)

Font Setup

  • Manually download the FiraCode.zip from here
  • Configure the Terminal configuration with the font

Run the script

Warning

This will override your .zshrc file

make zsh

Now you can restart your terminal!

Configure your Powerlevel10k

Run following command to configure your powerlevel10k theme. Avoid sourcing ~/.p10k.zsh as it is already imported in .zshrc

#alias p10
p10k configure

Setting up the working environment

Install extra software on MacOS

make others

Trouble-Shooting

  • zsh compinit: insecure directories, run compaudit for list, run :
compaudit | xargs chmod g-w
  • If you get node issue, install neovim via npm
npm install -g neovim
  • If you get python issue, install pynvim via pip
$(which python3) -m pip install pynvim
  • Update csharp_ls time to time
dotnet tool update -g csharp-ls
  • If you get FNM Error 13 permission denied
sudo chown -R $(whoami) /run/user/1000/
  • If you get "Cannot request projects v2, missing scope 'read:project'" message, it means the gh credential does not have read:project auth. Run this command:
gh auth refresh -s read:project
  • WSL Clipboards
choco install win32yank
  • Linux Clipboards
sudo pacman -S xsel
  • For WSL windows, when you get no such file or directory: /usr/share/zsh/vendor-completions/_docker error, run:
# Remove symlink
sudo rm -rf /usr/share/zsh/vendor-completions/_docker
#copy over wsl completions
sudo cp /mnt/wsl/docker-desktop/cli-tools/usr/share/zsh/vendor-completions/_docker /usr/share/zsh/vendor-completions/
#make it non-writable
sudo chattr +i /usr/share/zsh/vendor-completions/_docker

About

My personal Vim config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published