Skip to content

cb-g/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim configuration for Mac arm64

screenshots

features

  • goes well with Alacritty
  • plugin manager: lazy.nvim
  • LSP setup: Lua, LaTeX, R, Python, Julia, OCaml.

zsh

Finder

read current value:

defaults read com.apple.finder "AppleShowAllFiles"

0

reset to default value:

defaults delete com.apple.finder "AppleShowAllFiles" && killall Finder

do not show hidden files:

defaults write com.apple.finder "AppleShowAllFiles" -bool "false" && killall Finder

show hidden files:

defaults write com.apple.finder "AppleShowAllFiles" -bool "true" && killall Finder
defaults read com.apple.finder "AppleShowAllFiles"

1

Haskell

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

OCaml

bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"

opam init

opam install ocaml-lsp-server odoc ocamlformat utop

Julia

curl -fsSL https://install.julialang.org | sh

Homebrew

brew --version

Homebrew 4.3.1

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile

source ~/.zprofile
brew install git

brew list --versions git

git 2.45.2

brew install --cask git-credential-manager

brew list --cask --versions git-credential-manager

git-credential-manager 2.5.1

brew install neovim

brew list --versions neovim

neovim 0.10.0

brew install node

brew list --versions node

node 22.5.1

brew install ripgrep

brew list --versions ripgrep

ripgrep 14.1.0

brew install black

brew list --versions black

black 24.4.2

brew tap homebrew/cask-fonts

brew install --cask font-hasklug-nerd-font

brew list --cask --versions font-hasklug-nerd-font

font-hasklug-nerd-font 3.2.1

brew install --cask alacritty

brew list --cask --versions alacritty

alacritty 0.13.2

brew install zsh-autosuggestions

echo "source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc

brew list --versions zsh-autosuggestions

zsh-autosuggestions 0.7.0

brew install zsh-syntax-highlighting

echo "source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc

brew list --versions zsh-syntax-highlighting

zsh-syntax-highlighting 0.8.0

brew install tmux

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

brew list --versions tmux

tmux 3.4_1

brew install yq

brew list --versions yq

yq 4.44.2

neovim

echo "alias vim=nvim" >> ~/.zshrc

echo 'alias vimc='\''cd "$HOME/.config/nvim"'\''' >> ~/.zshrc

source ~/.zshrc
chmod +x rm_latex_aux.sh

echo "alias cleantex='\$HOME/.config/nvim/rm_latex_aux.sh'" >> ~/.zshrc

source ~/.zshrc
cd $HOME/.config

git clone https://github.com/cb-g/nvim
tmux

install tmux plugins with ctrl-s shift-i

launch:

vimc

vim .

reset:

rm -rf $HOME/.local/share/nvim
rm -rf $HOME/.local/state/nvim
rm -rf $HOME/.tmux

delete:

rm -rf $HOME/.config/nvim

~/.config/alacritty/alacritty.toml

[colors]
transparent_background_colors = true

[window]
startup_mode = "Maximized"
opacity = 0.75
blur = false
decorations = "Buttonless"

[window.padding]
x = 0
y = 0

# [window.dimensions]
# columns = 700
# lines = 90

[window.position]
x = 800
y = 150

[font]
size = 17

[font.normal]
family = "Hasklug Nerd Font"

[env]
TERM = "xterm-256color"

dotfiles

~/.tmux.conf

references