pojokcodeid.nvim-lazy/README.md

269 lines
6.3 KiB
Markdown
Raw Permalink 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
2024-02-24 09:13:56 +07:00
## Transparant
![home!](img/transparant.png)
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-05-21 15:27:40 +07:00
2. Install Neovim 0.95+ https://github.com/neovim/neovim/releases/tag/stable
2025-06-10 21:41:41 +07:00
1. C++ https://www.msys2.org/
1. GIT https://git-scm.com/download/win
1. NodeJs https://nodejs.org/en/
1. Ripgrep https://github.com/BurntSushi/ripgrep
1. Lazygit https://github.com/jesseduffield/lazygit
1. Nerd Font https://www.nerdfonts.com/ or https://github.com/ryanoasis/nerd-fonts
1. Windows Terminal (Windows) https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-id&gl=id
1. 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
```
2024-11-04 21:40:14 +07:00
git clone https://github.com/pojokcodeid/neovim-starter.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
2024-11-04 21:40:14 +07:00
git clone https://github.com/pojokcodeid/neovim-starter.git ~/.config/nvim
2023-01-15 06:17:14 +07:00
```
2024-02-26 12:49:39 +07:00
# Uninstall
```bash
2025-06-10 21:41:41 +07:00
# Linux / MacOS (unix)
2024-02-26 12:49:39 +07:00
rm -rf ~/.config/nvim
2025-06-10 21:41:41 +07:00
rm -rf ~/.local/state/nvim
2024-02-26 12:49:39 +07:00
rm -rf ~/.local/share/nvim
2025-06-10 21:41:41 +07:00
# Flatpak (linux)
rm -rf ~/.var/app/io.neovim.nvim/config/nvim
rm -rf ~/.var/app/io.neovim.nvim/data/nvim
rm -rf ~/.var/app/io.neovim.nvim/.local/state/nvim
2024-02-26 12:49:39 +07:00
# Windows CMD
rd -r ~\AppData\Local\nvim
rd -r ~\AppData\Local\nvim-data
2025-06-10 21:41:41 +07:00
# Windows PowerShell
2024-02-26 12:49:39 +07:00
rm -Force ~\AppData\Local\nvim
rm -Force ~\AppData\Local\nvim-data
```
2024-01-01 20:04:15 +07:00
# Shortcut Most-Used
2024-01-01 20:13:44 +07:00
<table>
2024-01-01 20:25:53 +07:00
<tr>
<td>:q or :quit</td>
2024-01-01 20:36:52 +07:00
<td>exit the form</td>
2024-01-01 20:25:53 +07:00
</tr>
<tr>
<td>:w or :write</td>
2024-01-01 20:36:52 +07:00
<td>write the typing result into a file (save)</td>
2024-01-01 20:25:53 +07:00
</tr>
<tr>
<td>:wq</td>
<td>save and exit</td>
</tr>
<tr>
<td>:q!</td>
<td>Exit and do not save</td>
</tr>
<tr>
<td>escape</td>
<td>normal mode</td>
</tr>
<tr>
<td>i</td>
<td>insert mode</td>
</tr>
<tr>
<td>v</td>
<td>visual mode, must be in normal mode first</td>
</tr>
<tr>
<td>h</td>
<td>left</td>
</tr>
<tr>
<td>j</td>
<td>down</td>
</tr>
<tr>
<td>k</td>
<td>up</td>
</tr>
<tr>
<td>l</td>
<td>right</td>
</tr>
<tr>
<td>:ter</td>
2024-01-01 20:36:52 +07:00
<td>open the terminal</td>
2024-01-01 20:25:53 +07:00
</tr>
<tr>
<td>0 or home</td>
<td>move the cursor to the beginning of the line</td>
</tr>
<tr>
2024-01-01 20:36:52 +07:00
<td>$ or end</td>
<td>move the cursor to the end of the line</td>
2024-01-01 20:25:53 +07:00
</tr>
<tr>
<td>gg</td>
<td>move the cursor to the top</td>
</tr>
<tr>
<td>G</td>
<td>move the cursor to the end of the page</td>
</tr>
<tr>
<td>w</td>
<td>move the cursor to the next word with out spaces</td>
</tr>
<tr>
<td>3w</td>
<td>move the cursor to the next 3 words</td>
</tr>
<tr>
<td>b</td>
<td>move the cursor to the previous word</td>
</tr>
<tr>
<td>3b</td>
<td>move the cursor to the previous 3 words</td>
</tr>
<tr>
<td>(</td>
<td>move the cursor to the previous paragraph</td>
</tr>
<tr>
<td>)</td>
<td>move the cursor to the next paragraph</td>
</tr>
<tr>
<td>dd</td>
<td>delete text 1 line</td>
</tr>
<tr>
2024-01-01 20:36:52 +07:00
<td>d$</td>
2024-01-01 20:25:53 +07:00
<td>delete words until the end of the line from the cursor position</td>
</tr>
<tr>
<td>d0</td>
<td>
delete words until the beginning of the line from the cursor position
</td>
</tr>
<tr>
<td>U</td>
<td>to undo</td>
</tr>
<tr>
<td>CTRL + r</td>
<td>Rendo</td>
</tr>
<tr>
<td>Yp</td>
<td>duplicate line code</td>
</tr>
<tr>
<td>yyp</td>
<td>same duplicate line code</td>
</tr>
<tr>
<td>:m+1</td>
<td>move 1 line down</td>
</tr>
<tr>
<td>:m-1</td>
<td>move 1 line up</td>
</tr>
<tr>
<td>d</td>
2024-01-01 20:36:52 +07:00
<td>delete code that is selected with view mode</td>
2024-01-01 20:25:53 +07:00
</tr>
<tr>
<td>:e newfolder/newfile.ext</td>
<td>create a new file in a new folder</td>
</tr>
<tr>
<td>:f newfolder/newfile.ext</td>
<td>to copy the file from the open file</td>
</tr>
<tr>
<td>bdw</td>
<td>delete 1 word</td>
</tr>
<tr>
<td>dw</td>
<td>delete to the right in 1 word at the cursor position</td>
</tr>
2024-01-01 20:13:44 +07:00
</table>
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