Skip to content

yanhan/dotfiles

Repository files navigation

dotfiles

My dotfiles

System requirements

  • git >= 1.7.10 (for [include] syntax)

Installation

Clone this repository to $HOME/dotfiles

git clone https://github.com/yanhan/dotfiles.git

And run the setup_home_folder_dotfiles.py script with one or more of the following args:

  • bashrc
  • coc-settings.json
  • gitconfig
  • init.vim
  • nvim
  • tmux.conf
  • vimrc
  • zshrc

eg. to setup gitconfig, nvim, tmux.conf, and zshrc, run:

python setup_home_folder_dotfiles.py gitconfig nvim tmux.conf zshrc

NOTE: For nvim, most of the contents of the ~/.config/nvim dir will be removed without backing up the original files. Please exercise caution before running with that argument.

neovim setup

Clone packer.nvim:

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

For Mac users, if you see an error about missing xcrun, run:

xcode-select --install

neovim post config

Start neovim and run:

:PackerSync
:Mason

:PackerSync installs the neovim plugins we want, using the Packer plugin manager.

:Mason installs the LSP servers we specified in nvim-lua/after/plugin/lsp.lua

Installing vim plugins (dont do this if using neovim)

NOTE: These are instructions for classic vim, not neovim.

Run:

./install-vim-plugins

Then start vim and run:

:GoInstallBinaries
:CocInstall coc-tsserver

Install nvr

Run the provision-ubuntu-ansible repo to install the libffi6 library.

Then run:

pip3 install --user neovim-remote

For Windows

Currently, we only support setting up neovim.

Download the C++ Runtime framework packages for Desktop bridge here: https://learn.microsoft.com/en-gb/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge#how-to-install-and-update-desktop-framework-packages

Specifically, the Microsoft.VCLibs.x64.14.00.Desktop.appx. It is required for microsoft-windows-terminal

Then install it using:

Add-AppxPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx

First, run Powershell as administrator and run this:

& .\bootstrap.ps1

Then, open a normal Powershell and run the following to install vim plugins:

& .\inst.ps1

References

Converting to Lua and use of LSP zero is inspired by: https://www.youtube.com/watch?v=w7i4amO_zaE

LICENSE

3-Clause BSD License, Copyright (c) 2019 Yan Han Pang

About

my dotfiles - feel free to take anything you like from here =)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published