Skip to content

nocmk2/dotfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dotfile

插件

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

python

brew install python

neovim

pip3 install neovim

black

pip3 install black

neovim

brew install neovim
mkdir ~/.config
git clone https://github.com/nocmk2/dotfile.git ~/.config/nvim
cd ~/.config/nvim
ln -s ~/.config/nvim ~/.vim

font

git clone https://github.com/powerline/fonts.git
cd fonts
./install

iterm2

Preferences-> Profiles -> Text -> Non-ASCII Font -> Go Mono for Powerline

zsh

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

inside ~/.zshrc plugins=(zsh-autosuggestions)

ctags

Some MacOS comes with ctags

$ /usr/bin/ctags usage: ctags [-BFadtuwvx] [-f tagsfile] file ...

Don't use that default ctags. Install Exuberant Ctags from homebrew

$ brew install ctags $ alias ctags="brew --prefix/bin/ctags" $ alias ctags >> ~/.bash_profile $ alias ctags >> ~/.zshrc

$ which ctags /usr/local/bin/ctags

nvim ~/.ctags --recurse=yes --exclude=.git --exclude=BUILD --exclude=.svn --exclude=.js --exclude=vendor/ --exclude=node_modules/* --exclude=db/* --exclude=log/* --exclude=*.min.* --exclude=*.swp --exclude=*.bak --exclude=*.pyc --exclude=*.class --exclude=*.sln --exclude=*.csproj --exclude=*.csproj.user --exclude=*.cache --exclude=*.dll --exclude=*.pdb

search

https://dev.to/iggredible/how-to-search-faster-in-vim-with-fzf-vim-36ko

FZF

brew  install fzf

ripgrep

brew install ripgrep

add to .zshrc

if type rg &> /dev/null; then
  export FZF_DEFAULT_COMMAND='rg --files'
  export FZF_DEFAULT_OPTS='-m --height 50% --border'
fi

redis mysql

alias redis-start='redis-server /usr/local/etc/redis.conf' alias mysql-start='mysql.server start'

Database client

https://github.com/kristijanhusak/vim-dadbod-ui

Vimium

gi jump to search input F open link in new tab b open bookmark T Search throug your open tabs H Go back L Go forward t create a new tab J one tab left K one tab right ^ previous tab ? help

Karabiner-Elements

Preferences -> Simple modifications -> (caps_lock->left_control) Preferences -> Complex modifications -> Change right_command_hjkl to arrow keys

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published