Updated 6. Configurasi (markdown)

Asep Komarudin 2023-03-01 06:44:14 +07:00
parent f1746d9051
commit 9741b12650

@ -1,4 +1,4 @@
## Struktur File <br> # Struktur File <br>
``` ```
. .
@ -23,7 +23,7 @@
│   └── lualine.lua * Ini contoh plugin │   └── lualine.lua * Ini contoh plugin
``` ```
## KeyMap # KeyMap
- leader = space bar - leader = space bar
- n = normal mode - n = normal mode
- i = insert mode - i = insert mode
@ -136,7 +136,7 @@
</tr> </tr>
</table> </table>
## Config LSP # Config LSP
- Jalankan dengan commond mode - Jalankan dengan commond mode
@ -159,7 +159,7 @@
- Rujukan Language Support <br> - Rujukan Language Support <br>
https://github.com/nvim-treesitter/nvim-treesitter#supported-languages https://github.com/nvim-treesitter/nvim-treesitter#supported-languages
## Ubah Dashboard # Ubah Dashboard
- Cari File lua/custom/dashboard.lua - Cari File lua/custom/dashboard.lua
@ -179,7 +179,7 @@ M.dashboard = {
- Link Generate Dasboard - Link Generate Dasboard
https://patorjk.com/software/taag/ https://patorjk.com/software/taag/
## Custom Null-ls # Custom Null-ls
- cari file lua/custom/null-ls.lua - cari file lua/custom/null-ls.lua
- tambahkan pada bagian berikut - tambahkan pada bagian berikut
```lua ```lua
@ -192,7 +192,7 @@ local m = {
``` ```
- Untuk Acuan Silahkan Kunjungi : <br> - Untuk Acuan Silahkan Kunjungi : <br>
https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md
## Register LSP # Register LSP
- Cari file lua/custom/register_lsp.lua - Cari file lua/custom/register_lsp.lua
- ini dilakukan jika LSP tidak terbaca - ini dilakukan jika LSP tidak terbaca
```lua ```lua
@ -212,7 +212,7 @@ local m = {
``` ```
- untuk acuan silahkan cek : <br> - untuk acuan silahkan cek : <br>
https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
## Whichkey # Whichkey
- cari file lua/custom/whichkey.lua - cari file lua/custom/whichkey.lua
-- file ini digunakan untuk registrasi key mapping -- file ini digunakan untuk registrasi key mapping
```lua ```lua
@ -221,7 +221,7 @@ https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.m
k = { '<cmd>lua print("Testing")<cr>', "Example" }, k = { '<cmd>lua print("Testing")<cr>', "Example" },
}, },
``` ```
## Format On Save # Format On Save
- cari file lua/custom/format_onsave.lua - cari file lua/custom/format_onsave.lua
- lakukan enable atau disable - lakukan enable atau disable
```lua ```lua
@ -229,7 +229,7 @@ local M = {
disable = 0, -- 0 ( format jalan) 1 (fromat off) disable = 0, -- 0 ( format jalan) 1 (fromat off)
} }
``` ```
## Custom Autocommand # Custom Autocommand
- cari file lua/default/autocommand.lua - cari file lua/default/autocommand.lua
- Lakukan config sesuai kebutuhan - Lakukan config sesuai kebutuhan
- Contoh : - Contoh :
@ -242,7 +242,7 @@ vim.cmd([[
augroup end augroup end
]]) ]])
``` ```
## Cutom Default Option # Cutom Default Option
- cari file lua/default/options.lua - cari file lua/default/options.lua
- Contoh Config: - Contoh Config:
```lua ```lua
@ -301,7 +301,7 @@ end
-- Fix markdown indentation settings -- Fix markdown indentation settings
vim.g.markdown_recommended_style = 0 vim.g.markdown_recommended_style = 0
``` ```
## Custom Key Mapping # Custom Key Mapping
- cari file lua/dafault/keymaps.lua - cari file lua/dafault/keymaps.lua
``` ```
-- custom key maps disini -- custom key maps disini
@ -311,7 +311,7 @@ end
-- ini adalah contoh -- ini adalah contoh
map("n", "]h", '<cmd>lua print("Testing")<cr>', "Testing Mapping") map("n", "]h", '<cmd>lua print("Testing")<cr>', "Testing Mapping")
``` ```
## Custom Plugins # Custom Plugins
- cari file lua/plugin/* - cari file lua/plugin/*
- masukan semua plugin pada folder tersebut - masukan semua plugin pada folder tersebut
- disable plugins - disable plugins
@ -324,7 +324,7 @@ map("n", "]h", '<cmd>lua print("Testing")<cr>', "Testing Mapping")
``` ```
untuk panduan silahkan cek <br> untuk panduan silahkan cek <br>
https://github.com/folke/lazy.nvim#Examples https://github.com/folke/lazy.nvim#Examples
## Custom-Snippets # Custom-Snippets
- Cari File nvim/my-snippet/package.json - Cari File nvim/my-snippet/package.json
- tambahkan custom snippets pada bagian berikut - tambahkan custom snippets pada bagian berikut
```json ```json