Giter Site home page Giter Site logo

dotfiles's Introduction

Dotfiles

Clone the repository

$ git init
$ git remote add origin https://github.com/taka-/dotfiles
$ git pull origin main
$ git remote set-url origin [email protected]:tky/dotfiles.git

install other libraries

$ brew install peco
$ brew install pyenv
$ brew install node

$ npm install --global yarn

Install python

$ pyenv install {LATEST VERSION}
$ pyenv global {INSTALLED VERSION}
$ pip install pynvim
$ pip install flake8
$ npm install -g neovim

zplug

$ brew install zplug
$ export ZPLUG_HOME=~/.zplug
$ git clone https://github.com/zplug/zplug $ZPLUG_HOME

Java

https://www.java.com/ja/download/

$ brew tap homebrew/cask-versions
$ brew install --cask adoptopenjdk
$ brew install openjdk@17
sudo ln -sfn /usr/local/opt/openjdk@17/libexec/openjdk.jdk \
     /Library/Java/JavaVirtualMachines/openjdk-17.jdk

Vim Metals

https://get-coursier.io/docs/cli-installation#macos-brew-based-installation

$ brew install coursier/formulas/coursier
$ cs setup
$ cs install metals
$ brew install coursier/formulas/coursier

build metals-vim

https://scalameta.org/metals/docs/editors/vim/#files-and-directories-to-include-in-your-gitignore

coursier bootstrap \
  --java-opt -Xss4m \
  --java-opt -Xms100m \
  --java-opt -Dmetals.client=vim-lsc \
  org.scalameta:metals_{YOUR VERSION} \
  -r bintray:scalacenter/releases \
  -r sonatype:snapshots \
  -o /usr/local/bin/metals-vim -f

If you get such a exception, you sudo use commad with sudo.

Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/bin/metals-vim

Make sure metals-vim is installed.

$ which metals-vim
/usr/local/bin/metals-vim
$ cs install bloop
$ bloop about

If you can't jump your Class, check the java vesion that bloop uses to compile your code.

https://scalacenter.github.io/bloop/docs/server-reference#custom-java-home

Rust

$ brew install rust-analyzer

Neovim

$ brew install neovim

vim-plug

https://github.com/junegunn/vim-plug#neovim

$ 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'

And :PlugInstall to install vim plugins.

After completing installation, :checkhealth is a better way to check your vim settings.

Coc Setting

:CocInstall coc-tsserver
:CocInstall coc-fzf-preview

https://github.com/fannheyward/coc-pyright

:CocInstall coc-pyright
:CocInstall coc-rust-analyzer

dotfiles's People

Contributors

tky avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

y-minato

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.