Skip to content

Latest commit

 

History

History
136 lines (94 loc) · 4.69 KB

README.md

File metadata and controls

136 lines (94 loc) · 4.69 KB

My Dotfiles

##########################################################
#                            ___                         #
#                           /\_ \                        #
#  __  __  __     __    ____\//\ \      __   __  __      #
# /\ \/\ \/\ \  /'__`\ /',__\ \ \ \   /'__`\/\ \/\ \     #
# \ \ \_/ \_/ \/\  __//\__, `\ \_\ \_/\  __/\ \ \_\ \    #
#  \ \___x___/'\ \____\/\____/ /\____\ \____\\/`____ \   #
#   \/__//__/   \/____/\/___/  \/____/\/____/ `/___/> \  #
#   __          __       ___      ___            /\___/  #
#  /\ \        /\ \__  /'___\ __ /\_ \           \/__/   #
#  \_\ \    ___\ \ ,_\/\ \__//\_\\//\ \      __    ____  #
#  /'_` \  / __`\ \ \/\ \ ,__\/\ \ \ \ \   /'__`\ /',__\ #
# /\ \_\ \/\ \_\ \ \ \_\ \ \_/\ \ \ \_\ \_/\  __//\__, `\#
# \ \___,_\ \____/\ \__\\ \_\  \ \_\/\____\ \____\/\____/#
#  \/__,_ /\/___/  \/__/ \/_/   \/_/\/____/\/____/\/___/ #
#                                                        #
##########################################################

My scripts and dotfiles for Zsh, Tmux, NeoVim, Git.

My Setup

  • Bash: I'm using Kitty + Oh-My-Zsh + Tmux.
  • Fonts: Microsoft Cascadia Code with ligatures on iTerm2, VS Code, so on.
  • Windows manager: Amethyst.

Aliases & Key mappings:

Instructions

First install Xcode: xcode-select --install

The folder macosx_setup contains the scripts to set the mac OS defaults and install the apps and tools.

sh ./macosx_setup/macos_setup_script.sh

Manual Installation

Git configuration

Copy the content of file .gitconfig to ~/.gitconfig.

Zsh

Install Zsh: brew install zsh

Install Oh-My-Zsh following this steps: sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Then install the plugin manager: sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zplugin/master/doc/install.sh)"

Copy the content of file .zshrc to ~/.zshrc.

Tmux

Install Tmux following this steps: brew install tmux

Copy the content of file tmux/.tmux.conf to ~/.tmux.conf.

NeoVim

Install NeoVim following this steps: brew install neovim

Neovim 0.4

For Neovim 0.4, see this branch.

Neovim 0.5+ with Lua

Install Packer plugin manager:

git clone https://github.com/wbthomason/packer.nvim "$HOME"/.local/share/nvim/site/pack/packer/start/packer.nvim

Copy the content of file init.lua to ~/.config/nvim/init.lua.

Then install the plugins by running: vim +PackerUpdate +qall.

Dependencies
  • FZF:
    • brew install fd fzf the_silver_searcher ripgrep
  • Floaterm:
    • lazygit
    • lazydocker
    • lazynpm
  • Python deps and Pylint:
    • pip install --user pynvim
    • pip3 install --user pynvim
    • pip3 install neovim-remote

Tools Configuration

NeoVim

I'm using Neovim 0.9+ configured with Lua. NeoVim plugins installed is listed here.

VS Code

I'm using VSCode with Vim extension which has my favorites Vim plugins (like vim-surround, vim-airline). Using it I can use all the Vim power for editing and navigation.

I've been exploring some configuration and key mappings to allow me to use the same key mappings that I'm using on NeoVim (like navigate between panes, motion, leader key and so on). Here are my configs:

  • VSCode settings: configuration to enable the same behavior (configs with prefix vim.).
  • VSCode key mappings: key mappings to navigate between panes, double j on insert mode, go to definition and implementation, so on.

Links