mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-26 18:58:51 +02:00
Updated 7. Contoh Custom Plugins (markdown)
parent
80270b322b
commit
6939fe0844
1 changed files with 16 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Mini Animate
|
# Mini Animate
|
||||||
- buat file lua/plugin/mini_animate.lua
|
- Create file lua/plugin/mini_animate.lua
|
||||||
- masukan code berikut
|
- Fill the code like this
|
||||||
```lua
|
```lua
|
||||||
return {
|
return {
|
||||||
-- animations
|
-- animations
|
||||||
|
@ -43,12 +43,12 @@ return {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
info detail silahkan kunjungi : <br>
|
For detail information please refer to: <br>
|
||||||
https://github.com/echasnovski/mini.animate
|
https://github.com/echasnovski/mini.animate
|
||||||
|
|
||||||
# JSON
|
# JSON
|
||||||
- buat file lua/plugin/json.lua
|
- Create the file lua/plugin/json.lua
|
||||||
- masukan code berikut :
|
- File the code like this :
|
||||||
```lua
|
```lua
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
@ -93,8 +93,8 @@ return {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
# Markdown Preview
|
# Markdown Preview
|
||||||
- buat file lua/plugin/markdown.lua
|
- Create the file lua/plugin/markdown.lua
|
||||||
- tambahkan code berikut didalamnya:
|
- Fill the code like this:
|
||||||
```lua
|
```lua
|
||||||
return{
|
return{
|
||||||
"iamcco/markdown-preview.nvim",
|
"iamcco/markdown-preview.nvim",
|
||||||
|
@ -107,11 +107,11 @@ return{
|
||||||
cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
|
cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- detail kunjungi : <br>
|
- For detail information refer to : <br>
|
||||||
https://github.com/iamcco/markdown-preview.nvim
|
https://github.com/iamcco/markdown-preview.nvim
|
||||||
|
|
||||||
# Config Java (JDTLS)
|
# 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 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
|
echo $JAVA_HOME
|
||||||
|
@ -124,7 +124,7 @@ echo $JAVA_HOME
|
||||||
```
|
```
|
||||||
:MasonInstall jdtls java-debug-adapter
|
: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" },
|
{ "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
|
https://github.com/Pocco81/auto-save.nvim
|
||||||
|
|
||||||
# Override Lualine
|
# Override Lualine
|
||||||
- buat file lua/plugin/lualine.lua
|
- Create the file lua/plugin/lualine.lua
|
||||||
- Tambahkan code berikut :
|
- Fill the code like this :
|
||||||
```lua
|
```lua
|
||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
|
@ -518,8 +518,8 @@ return {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
# Config Neotree
|
# Config Neotree
|
||||||
- Buat file lua/plugin/neotree.lua
|
- Create the file lua/plugin/neotree.lua
|
||||||
- Tambahkan code berikut
|
- Fill the code like this :
|
||||||
```lua
|
```lua
|
||||||
return {
|
return {
|
||||||
{ "kyazdani42/nvim-tree.lua", enabled = false },
|
{ "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 {
|
return {
|
||||||
["e"]={"<cmd>Neotree toggle<cr>","Explorer"},
|
["e"]={"<cmd>Neotree toggle<cr>","Explorer"},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue