Updated 7. Contoh Custom Plugins (markdown)

Asep Komarudin 2023-12-31 14:02:34 +07:00
parent 80270b322b
commit 6939fe0844

@ -1,6 +1,6 @@
# Mini Animate
- buat file lua/plugin/mini_animate.lua
- masukan code berikut
- Create file lua/plugin/mini_animate.lua
- Fill the code like this
```lua
return {
-- animations
@ -43,12 +43,12 @@ return {
},
}
```
info detail silahkan kunjungi : <br>
For detail information please refer to: <br>
https://github.com/echasnovski/mini.animate
# JSON
- buat file lua/plugin/json.lua
- masukan code berikut :
- Create the file lua/plugin/json.lua
- File the code like this :
```lua
return {
@ -93,8 +93,8 @@ return {
}
```
# Markdown Preview
- buat file lua/plugin/markdown.lua
- tambahkan code berikut didalamnya:
- Create the file lua/plugin/markdown.lua
- Fill the code like this:
```lua
return{
"iamcco/markdown-preview.nvim",
@ -107,11 +107,11 @@ return{
cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
}
```
- detail kunjungi : <br>
- For detail information refer to : <br>
https://github.com/iamcco/markdown-preview.nvim
# Config Java (JDTLS)
- Intall java dan create java home
- Intall java and 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
@ -124,7 +124,7 @@ echo $JAVA_HOME
```
:MasonInstall jdtls java-debug-adapter
```
- Tambahkan plugin pada file lua/plugin/init.lua
- Add the plugin in file lua/plugin/init.lua
```
{ "mfussenegger/nvim-jdtls", event = "BufRead" },
```
@ -285,12 +285,12 @@ vim.cmd(
},
```
Detail Silahkan Kunjungi : <br>
For Detail Refer to : <br>
https://github.com/Pocco81/auto-save.nvim
# Override Lualine
- buat file lua/plugin/lualine.lua
- Tambahkan code berikut :
- Create the file lua/plugin/lualine.lua
- Fill the code like this :
```lua
return {
"nvim-lualine/lualine.nvim",
@ -518,8 +518,8 @@ return {
}
```
# Config Neotree
- Buat file lua/plugin/neotree.lua
- Tambahkan code berikut
- Create the file lua/plugin/neotree.lua
- Fill the code like this :
```lua
return {
{ "kyazdani42/nvim-tree.lua", enabled = false },
@ -598,7 +598,7 @@ return {
},
}
```
- Tambahkan key mapping pada file lua/custom/whichkey.lua
- Add key mappings in file lua/custom/whichkey.lua
```
return {
["e"]={"<cmd>Neotree toggle<cr>","Explorer"},