Skip to content

nquang29/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

install

  1. brew install neovim
  2. brew install lazygit
  3. brew install fzf
  4. brew install the_silver_searcher
  5. install nodejs >= 14.0 and install yarn: npm install yarn -g
  6. Clone this repo, copy all file at folder dotfile to $HOME/.config/nvim/
  7. Open init.vim at $HOME/.config/nvim/init.vim, install Plugin by command: :PlugInstall
  8. Install coc by yarn, go to $HOME/.vim/plugged/coc.nvim and type at command: yarn install for install package of coc-settings
  9. Install coc-setting dependency
  • Open: $HOME/.config/nvim/init.vim by nvim and run bellow command: :CocInstall coc-json coc-tsserver coc-go
  • Open init.vim, change let g:coc_config_home = '/Users/nquanq/.config/nvim' => your init.vim path
  1. Install goimports for auto format go source and import on thefly
  • Open terminal and run:

    • go install golang.org/x/tools/cmd/goimports@latest
    • go get golang.org/x/tools/gopls@latest
  • OR open init.vim and run :GoInstallBinaries

  1. open .bashrc OR .zshrc, put export bellow : export PATH="$PATH:$HOME/go/bin"

  2. Error if present at vim open file

[coc.nvim]: dyld[11689]: Library not loaded: '/opt/homebrew/opt/icu4c/lib/libicudata.70.dylib'
  Referenced from: '/opt/homebrew/Cellar/boost/1.79.0_1/lib/libboost_regex-mt.dylib'
  Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicudata.70.dylib' (no such file), '/usr/local/lib/libicudata.70.dylib' (no such file), '/usr/lib/libicudata.70.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/71.1/lib/libicudata.70.dylib' (no such fil
e), '/usr/local/lib/libicudata.70.dylib' (no such file), '/usr/lib/libicudata.70.dylib' (no such file)
Watchman:  /opt/homebrew/bin/watchman --no-pretty get-sockname returned with exit code=null, signal=SIGABRT, stderr= dyld[11689]: Library not loaded: '/opt/homebrew/opt/icu4c/lib/libicudata.70.dylib'
  Referenced from: '/opt/homebrew/Cellar/boost/1.79.0_1/lib/libboost_regex-mt.dylib'
  Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicudata.70.dylib' (no such file), '/usr/local/lib/libicudata.70.dylib' (no such file), '/usr/lib/libicudata.70.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/71.1/lib/libicudata.70.dylib' (no such fil
e), '/usr/local/lib/libicudata.70.dylib' (no such file), '/usr/lib/libicudata.70.dylib' (no such file)
Uncaught exception: /opt/homebrew/bin/watchman --no-pretty get-sockname returned with exit code=null, signal=SIGABRT, stderr= dyld[11689]: Library not loaded: '/opt/homebrew/opt/icu4c/lib/libicudata.70.dylib'
  Referenced from: '/opt/homebrew/Cellar/boost/1.79.0_1/lib/libboost_regex-mt.dylib'
  Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicudata.70.dylib' (no such file), '/usr/local/lib/libicudata.70.dylib' (no such file), '/usr/lib/libicudata.70.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/71.1/lib/libicudata.70.dylib' (no such fil
e), '/usr/local/lib/libicudata.70.dylib' (no such file), '/usr/lib/libicudata.70.dylib' (no such file)

How to resolved: add to .bashrc OR .zshrc as bellow

export PATH="/opt/homebrew/opt/icu4c/bin:$PATH"
export PATH="/opt/homebrew/opt/icu4c/sbin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/icu4c/lib"
export CPPFLAGS="-I/opt/homebrew/opt/icu4c/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c/lib/pkgconfig"
  1. Install tig explorer
  • brew install autoconf automake libtool
  • clone repor install tig https://jonas.github.io/tig/INSTALL.html:
  • brew install tig
  • brew install pkg-config
  • make configure
  • ./configure
  • make
  • make install

Error:

    INSTALL install: chmod 755 /usr/local/bin: Operation not permitted
    src/tig -> /usr/local/bin
    install: /usr/local/bin/tig: Permission denied
    make: [install] Error 71

Resolved: sudo make install

  1. Install language server for ruby development

    • gem install solargraph
    • Plug 'neoclide/coc-solargraph'
    • Plug 'vim-ruby/vim-ruby'
    • :CocInstall coc-solargraph
  2. NestJs config

  • :CocInstall coc-tsserver coc-eslint coc-json coc-prettier coc-css
  1. Vue development
  • :CocInstall @yaegassy/coc-volar-tools
  • :CocInstall @yaegassy/coc-volar
  • :CocInstall [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published