agusprayogi02 / astro-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dashboard

home!

Kebutuhan dasar

  1. Install Neovim 8.0+ https://github.com/neovim/neovim/releases/tag/v0.8.2
  2. C++ (windows) Compiler https://www.msys2.org/
  3. GIT https://git-scm.com/download/win
  4. NodeJs https://nodejs.org/en/
  5. Ripgrep https://github.com/BurntSushi/ripgrep
  6. Lazygit https://github.com/jesseduffield/lazygit
  7. Nerd Font https://github.com/ryanoasis/nerd-fonts
  8. Windows Terminal (Windows) https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-id&gl=id
  9. Powershell (windows) https://apps.microsoft.com/store/detail/powershell/9MZ1SNWT0N5D?hl=en-id&gl=id

Config Linux (Linux Debian Based)

  • Pastikan Akun Sudah Administrator
visudo
[nama user] ALL=(ALL:ALL) ALL
[nama user] ALL=(ALL) NOPASSWD:ALL
  • Lakukan install Neovim dari link No 1 diatas
sudo apt-get install wget
mkdir download
cd download
wget https://github.com/neovim/neovim/releases/download/v0.8.2/nvim-linux64.deb
sudo apt-get install ./nvim-linux64.deb
nvim --version
  • Check ketersediaan GCC
gcc --version
  • Install git
sudo apt-get install git
git --version
  • Install NodeJS
sudo apt-get install curl
sudo apt install build-essential libssl-dev
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.bashrc
nvm install 18.13.0
node --version
npm --version

nvm deactivate
nvm uninstall v18.13.0
  • Install unzip, ripgrep
sudo apt-get install unzip
sudo apt-get install ripgrep
  • Install Lazygit
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' |  sed -E 's/.*"v*([^"]+)".*/\1/')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
lazygit --version
  • Copy Config
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
nvim +PackerSync
git clone https://github.com/pojokcodeid/astro-config ~/.config/nvim/lua/user

#CARA LAIN INSTALL DI LINUX

  1. install snap https://snapcraft.io/docs/installing-snap-on-kali
  2. Config Snap
sudo vi /etc/wsl.conf

[boot]
systemd=true
  1. Restart WSL
windows + r
wsl --shutdown
  1. Install NodeJS https://snapcraft.io/node
  2. Insatall NeoVim https://snapcraft.io/nvim
  3. Check ketersediaan GCC
sudo apt-get install gcc
sudo apt-get install g++
gcc --version
  1. Install git
sudo apt-get install git
git --version
  1. Install unzip, ripgrep
sudo apt-get install unzip
sudo apt-get install ripgrep
  1. Install Lazygit
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' |  sed -E 's/.*"v*([^"]+)".*/\1/')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
lazygit --version
  1. Copy Config
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
nvim +PackerSync
git clone https://github.com/pojokcodeid/astro-config ~/.config/nvim/lua/user
  • Untuk Java Copy Confignya
cp -r ~/.config/nvim/lua/custom/ftplugin/ ~/.config/nvim/ftplugin/

Config Windows

  • Pastikan Sudah menginstall kebutuhan dasar diatas
git clone https://github.com/AstroNvim/AstroNvim "$env:LOCALAPPDATA\nvim"
nvim +PackerSync
git clone https://github.com/pojokcodeid/astro-config "$env:LOCALAPPDATA\nvim\lua\user"

Plugins dan Sumber Yang Digunakan

No Plugin Link
1 AstroNvim https://astronvim.github.io/
2 better-escape https://github.com/max397574/better-escape.nvim
3 Color Scheme https://github.com/folke/tokyonight.nvim
4 akinsho/toggleterm.nvim https://github.com/akinsho/toggleterm.nvim
5 CRAG666/code_runner.nvim https://github.com/CRAG666/code_runner.nvim
6 rcarriga/nvim-notify https://github.com/rcarriga/nvim-notify
7 mrjones2014/smart-splits.nvim https://github.com/mrjones2014/smart-splits.nvim
8 stevearc/dressing.nvim https://github.com/stevearc/dressing.nvim
9 folke/todo-comments.nvim https://github.com/folke/todo-comments.nvim

Ubah Dashboard

  • Cari File nvim/lua/user/config/alpha_config.lua
    -- Ubah Bagian Code Berikut
 val = {
      [[             _       _                    _      ]],
      [[            (_)     | |                  | |     ]],
      [[ _ __   ___  _  ___ | | __   ___ ___   __| | ___ ]],
      [[| '_ \ / _ \| |/ _ \| |/ /  / __/ _ \ / _` |/ _ \]],
      [[| |_) | (_) | | (_) |   <  | (_| (_) | (_| |  __/]],
      [[| .__/ \___/| |\___/|_|\_\  \___\___/ \__,_|\___|]],
      [[| |        _/ |                                  ]],
      [[|_|       |__/                                   ]],
    },
sudo apt -y install black
sudo apt install clang-format

npm i -g google-java-format
npm i -g clang-format
npm i -g black

Create java Home

echo export JAVA_HOME='$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")' | sudo tee /etc/profile.d/jdk_home.sh > /dev/null
echo $JAVA_HOME

About


Languages

Language:HTML 60.1%Language:Lua 22.4%Language:TypeScript 15.1%Language:Blade 2.0%Language:JavaScript 0.4%