pojokcodeid.nvim-lazy/README.md

134 lines
4.9 KiB
Markdown
Raw Normal View History

2023-02-24 23:09:05 +07:00
<div align="center">
2023-02-20 16:46:33 +07:00
2023-02-24 23:09:05 +07:00
# Nvim-Lazy
2023-02-27 14:52:49 +07:00
2024-01-01 20:04:15 +07:00
![Neovim](https://img.shields.io/badge/NeoVim-%2358A143.svg?&style=for-the-badge&logo=neovim&logoColor=white)
![Lua](https://img.shields.io/badge/lua-%233C2D72.svg?style=for-the-badge&logo=lua&logoColor=white)
2023-02-27 14:52:49 +07:00
2023-02-20 16:46:33 +07:00
<p align="center">
2023-02-22 07:14:55 +07:00
<a href="https://github.com/pojokcodeid/nvim-lazy/pulse">
2024-01-01 20:04:15 +07:00
<img src="https://img.shields.io/github/last-commit/pojokcodeid/nvim-lazy?style=for-the-badge&logo=github&color=8dc4e4&logoColor=D9E0EE&labelColor=302D41"/>
2023-02-20 16:46:33 +07:00
</a>
2023-02-22 07:17:12 +07:00
<a href="https://github.com/pojokcodeid/nvim-lazy/latest">
2024-01-01 20:04:15 +07:00
<img src="https://img.shields.io/github/v/release/pojokcodeid/nvim-lazy?style=for-the-badge&logo=gitbook&color=9bd5ca&logoColor=D9E0EE&labelColor=302D41"/>
2023-02-22 07:14:55 +07:00
</a>
<a href="https://github.com/pojokcodeid/nvim-lazy/stargazers">
2024-01-01 20:04:15 +07:00
<img src="https://img.shields.io/github/stars/pojokcodeid/nvim-lazy?style=for-the-badge&logo=apachespark&color=eed50f&logoColor=D9E0EE&labelColor=302D41"/>
2023-02-20 16:46:33 +07:00
</a>
2024-01-01 20:04:15 +07:00
<a href="https://github.com/pojokcodeid/nvim-lazy/blob/main/LICENSE"><img src="https://img.shields.io/github/license/pojokcodeid/nvim-lazy?color=%2362afef&style=for-the-badge"></a>
2023-03-08 22:26:30 +07:00
<a href="https://github.com/pojokcodeid/nvim-lazy/issues">
<img
alt="Issues"
2024-01-01 20:04:15 +07:00
src="https://img.shields.io/github/issues-raw/pojokcodeid/nvim-lazy?colorA=364A4f&colorB=F5A97F&logo=github&logoColor=D9E0EE&style=for-the-badge">
2023-03-08 22:26:30 +07:00
</a>
</a>
2023-02-26 19:55:33 +07:00
<a href="https://github.com/pojokcodeid/nvim-lazy">
2024-01-01 20:04:15 +07:00
<img alt="Repo Size" src="https://img.shields.io/github/repo-size/pojokcodeid/nvim-lazy?color=%24DDB6F2&label=SIZE&logo=codesandbox&style=for-the-badge&logoColor=D9E0EE&labelColor=302D41" />
2023-02-26 19:55:33 +07:00
</a>
<a href="https://twitter.com/intent/follow?screen_name=pojokcodeid_">
2024-01-01 20:04:15 +07:00
<img alt="follow on Twitter" src="https://img.shields.io/twitter/follow/pojokcodeid_?style=for-the-badge&logo=twitter&color=9aadf3&logoColor=D9E0EE&labelColor=302D41" />
2023-02-26 19:55:33 +07:00
</a>
2023-02-20 16:46:33 +07:00
</p>
2023-01-15 00:24:26 +07:00
2023-02-24 23:09:05 +07:00
</div>
2023-01-15 06:17:14 +07:00
## HOME
![home!](img/home.png)
2023-02-27 14:52:49 +07:00
2023-02-26 15:48:39 +07:00
## Demo
2023-01-15 06:17:14 +07:00
2023-02-27 14:52:49 +07:00
![demo!](img/demo.gif)
## Treesitter dan LSP
![demo!](img/ts_lsp.gif)
2023-01-15 06:17:14 +07:00
## Plugins Manager
![PlugManaget!](img/plugins_manager.png)
2023-12-02 10:48:44 +07:00
## Javascript Project
![PlugManaget!](img/node.png)
2023-02-27 14:52:49 +07:00
<!-- ## Layout -->
2023-01-15 06:17:14 +07:00
2023-02-27 14:52:49 +07:00
<!-- ![PlugManaget!](img/coding.png) -->
2023-01-15 06:17:14 +07:00
2023-12-31 14:09:15 +07:00
# NeoVim Install & Configuration Guide
2023-02-27 14:52:49 +07:00
2023-12-31 14:09:15 +07:00
## Visit <a href="https://github.com/pojokcodeid/nvim-lazy/wiki/">Wiki</a>
2023-02-27 14:52:49 +07:00
2023-12-31 14:09:15 +07:00
## Basic Requirement
2023-01-15 06:17:14 +07:00
2024-01-01 20:04:15 +07:00
2. Install Neovim 9.0+ https://github.com/neovim/neovim/releases/tag/stable
3. C++ (windows) Compiler https://www.msys2.org/
4. GIT https://git-scm.com/download/win
5. NodeJs https://nodejs.org/en/
6. Ripgrep https://github.com/BurntSushi/ripgrep
7. Lazygit https://github.com/jesseduffield/lazygit
8. Nerd Font https://github.com/ryanoasis/nerd-fonts
9. Windows Terminal (Windows) https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-id&gl=id
10. Powershell (windows) https://apps.microsoft.com/store/detail/powershell/9MZ1SNWT0N5D?hl=en-id&gl=id
2023-01-15 06:17:14 +07:00
2023-02-26 20:02:14 +07:00
# Windows
2023-01-15 06:17:14 +07:00
2023-01-15 00:24:26 +07:00
```
2023-02-19 17:26:07 +07:00
git clone https://github.com/pojokcodeid/nvim-lazy-basic.git "$env:LOCALAPPDATA\nvim"
2023-01-15 06:17:14 +07:00
nvim
```
2023-02-26 20:02:14 +07:00
# Linux
2023-01-15 06:17:14 +07:00
2023-01-22 19:58:01 +07:00
```bash
2023-02-19 17:26:07 +07:00
git clone https://github.com/pojokcodeid/nvim-lazy-basic.git ~/.config/nvim
2023-01-15 06:17:14 +07:00
```
2024-01-01 20:04:15 +07:00
# Shortcut Most-Used
```text
:q or :quit -> untuk keluar dari form
:w or :write -> untuk menulis hasil ketik kedalam file (simpan)
2024-01-01 20:06:37 +07:00
:wq -> simpan dan keluar
:q! -> Keluar dan jangan simpan
escape -> normalmode
i -> insert mode
v -> visual mode yaratnya harus normal mode dulu, ini unutk block dengan panah ke bawah dan tekan d untuk deletenya
H -> kiri
j -> bawah
k -> atas
l -> Kanan
:ter -> untuk membuka terminal
0 atau home -> memindahkan kursor keawal line
$ atau end -> cursor ke end of line
gg -> memindahkan kursor ke paling atas
G -> memindahkan kursor ke akhir dari halaman
w -> memindahkan kursor ke kata berikutnya tanpa sepasi
3w -> memindahkan kursor ke 3 kata berikutnya
b -> memindahkan kursor ke kata sebelumnya
3b -> memindahkan kursor ke 3 kata sebelunya
( -> memindahkankursor ke paragraf seblumnya
) -> memindahkan kursor ke pararaf berikutnya
dd -> menghapus text 1 baris
dw -> menghapus 1 kata
d$ -> menghapus kata sampai akhir line dari posisi cursor
d0 -> menghapus kata sampai awal line dari psosi cursor
U -> untuk undo
CTRL + r -> Rendo
Yp -> duplicate line code
yyp -> sama duplicate line code
:m+1 -> pindah 1 baris kebawah
:m-1 -> pindah 1 baris keatas
d -> delete file, delete code yang di seleksi dengan view mode
2024-01-01 20:04:15 +07:00
:e newfolder/newfile.ext -> membuat file baru di folder baru
:f newfolder/newfile.ext -> untuk mengcopy file dari file yang terbuka
2024-01-01 20:06:37 +07:00
bdw -> menghapus 1 kata
dw -> menghapus ke kanan dalam 1 kata pada posisi cursor
2024-01-01 20:04:15 +07:00
```
2023-12-31 14:09:15 +07:00
## Thanks To
2023-01-15 06:17:14 +07:00
https://github.com/LunarVim/Neovim-from-scratch <br>
https://github.com/AstroNvim/AstroNvim