mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-25 18:28:44 +02:00
update
This commit is contained in:
parent
2a752e0e93
commit
f88e445f01
5 changed files with 77 additions and 34 deletions
45
README.md
45
README.md
|
@ -148,42 +148,27 @@ git clone https://github.com/pojokcodeid/nvim-lazy-basic.git ~/.config/nvim
|
||||||
|
|
||||||
```
|
```
|
||||||
.
|
.
|
||||||
├── init.lua
|
├── init.lua * Ini pintu masuk config
|
||||||
├── lazy-lock.json
|
├── lazy-lock.json * Ini file generate dari lazy.nvim
|
||||||
├── lua
|
├── lua
|
||||||
│ ├── custom
|
│ ├── custom
|
||||||
│ │ ├── dashboard.lua
|
│ │ ├── dashboard.lua * Ini untuk custom dashboard
|
||||||
│ │ ├── format_onsave.lua
|
│ │ ├── format_onsave.lua * Ini untuk custom format ketika save
|
||||||
│ │ ├── lsp_installer.lua
|
│ │ ├── lsp_installer.lua * Ini untuk config LSP tidak support mason
|
||||||
│ │ ├── null-ls.lua
|
│ │ ├── null-ls.lua * Ini untuk config linter dan formatter
|
||||||
│ │ └── register_lsp.lua
|
│ │ └── register_lsp.lua * Ini untuk registrasi LSP install dari mason
|
||||||
│ ├── default
|
│ ├── default
|
||||||
│ │ ├── autocommands.lua
|
│ │ ├── autocommands.lua * Ini untuk custom auto command
|
||||||
│ │ ├── init.lua
|
│ │ ├── init.lua * Ini pintu masuk untuk semua config
|
||||||
│ │ ├── keymaps.lua
|
│ │ ├── keymaps.lua * Ini untuk custom keymaps
|
||||||
│ │ ├── lazy.lua
|
│ │ ├── lazy.lua * Ini config plugins manager (jangan diubah)
|
||||||
│ │ └── options.lua
|
│ │ └── options.lua * Ini untuk custom config default neovim
|
||||||
│ └── plugin
|
│ └── plugin
|
||||||
│ ├── dapui.lua
|
│ ├── dapui.lua * Ini contoh plugin
|
||||||
│ ├── init.lua
|
│ ├── init.lua * Ini untuk menambah, disable dan overide plugins
|
||||||
│ └── lualine.lua
|
│ └── lualine.lua * Ini contoh plugin
|
||||||
```
|
```
|
||||||
|
|
||||||
| Link | Keterangan |
|
|
||||||
|--------------------------------|---------------------------------------------------------------------|
|
|
||||||
| init.lua | (ini pintu masuk untuk config) |
|
|
||||||
| lua/custom/dashborad.lua | (ini digunkaan untuk custom dashboard) |
|
|
||||||
| lua/custom/format_onsave.lua | (ini digunakan untuk setting ketika save mau di format atau tidak) |
|
|
||||||
| lua/custom/lsp_installer.lua | (ini digunakan untuk install LSP yang tidak support mason) |
|
|
||||||
| lua/custom/null-ls.lua | (ini digunakan untuk registrasi formater dan linter) |
|
|
||||||
| lua/custom/register_lsp.lua | (ini untuk registrasi LSP yang tidak terbaca langsung) |
|
|
||||||
| lua/default/init.lua | (pintu masuk acess config) |
|
|
||||||
| lua/default/autocommands.lua | (ini digunakan untuk custom autocommands) |
|
|
||||||
| lua/default/keymaps.lua | (ini digunakan untuk custom key maps) |
|
|
||||||
| lua/default/lazy.lua | (ini untuk plugin manager, jangan di ubah) |
|
|
||||||
| lua/default/options.lua | (ini digunakan untuk overide default config nvim) |
|
|
||||||
| lua/plugin/\* | (ini digunakan untuk custom plugins, tambah dan override) |
|
|
||||||
|
|
||||||
## KeyMap
|
## KeyMap
|
||||||
- leader = space bar
|
- leader = space bar
|
||||||
- n = normal mode
|
- n = normal mode
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
|
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
|
||||||
"code_runner.nvim": { "branch": "main", "commit": "a010649236fe245eaab2641a13228cd601499715" },
|
"code_runner.nvim": { "branch": "main", "commit": "a010649236fe245eaab2641a13228cd601499715" },
|
||||||
"dressing.nvim": { "branch": "master", "commit": "db716a0f1279f79a886c0e0b6ab3c3d5ffdb42fe" },
|
"dressing.nvim": { "branch": "master", "commit": "5f44f829481640be0f96759c965ae22a3bcaf7ce" },
|
||||||
"fidget.nvim": { "branch": "main", "commit": "688b4fec4517650e29c3e63cfbb6e498b3112ba1" },
|
"fidget.nvim": { "branch": "main", "commit": "688b4fec4517650e29c3e63cfbb6e498b3112ba1" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "6fa50a94ba5378bb73013a6e163376d8e69bd8a5" },
|
"friendly-snippets": { "branch": "main", "commit": "6fa50a94ba5378bb73013a6e163376d8e69bd8a5" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" },
|
"gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" },
|
||||||
|
@ -24,11 +24,12 @@
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "93e58e100f37ef4fb0f897deeed20599dae9d128" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "93e58e100f37ef4fb0f897deeed20599dae9d128" },
|
||||||
"mason-null-ls.nvim": { "branch": "main", "commit": "29ce60f9a16fef3de682a9365ef635f24ae92bf9" },
|
"mason-null-ls.nvim": { "branch": "main", "commit": "29ce60f9a16fef3de682a9365ef635f24ae92bf9" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "01dfdfd36be77cb1195b60d580315bf4e2d8e62c" },
|
"mason.nvim": { "branch": "main", "commit": "01dfdfd36be77cb1195b60d580315bf4e2d8e62c" },
|
||||||
|
"mini.animate": { "branch": "main", "commit": "b0c717ed5513b5f23e7c48615449c7dc9fabd05b" },
|
||||||
"mini.indentscope": { "branch": "main", "commit": "d8938d056c5d4154fd7faef5cf0b0e86ea587a27" },
|
"mini.indentscope": { "branch": "main", "commit": "d8938d056c5d4154fd7faef5cf0b0e86ea587a27" },
|
||||||
"neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" },
|
"neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" },
|
||||||
"null-ls.nvim": { "branch": "main", "commit": "689cdd78f70af20a37b5309ebc287ac645ae4f76" },
|
"null-ls.nvim": { "branch": "main", "commit": "689cdd78f70af20a37b5309ebc287ac645ae4f76" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "4fc96c8f3df89b6d23e5092d31c866c53a346347" },
|
"nvim-autopairs": { "branch": "master", "commit": "4fc96c8f3df89b6d23e5092d31c866c53a346347" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "7cd39409e7378fa711624687d3b430b8a56c3af9" },
|
"nvim-cmp": { "branch": "main", "commit": "7a3b1e76f74934b12fda82158237c6ad8bfd3d40" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "550332c5791c6cad6fc7a80c26104de1d00b4692" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "550332c5791c6cad6fc7a80c26104de1d00b4692" },
|
||||||
"nvim-lsp-installer": { "branch": "main", "commit": "17e0bfa5f2c8854d1636fcd036dc8284db136baa" },
|
"nvim-lsp-installer": { "branch": "main", "commit": "17e0bfa5f2c8854d1636fcd036dc8284db136baa" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "255e07ce2a05627d482d2de77308bba51b90470c" },
|
"nvim-lspconfig": { "branch": "master", "commit": "255e07ce2a05627d482d2de77308bba51b90470c" },
|
||||||
|
@ -36,17 +37,19 @@
|
||||||
"nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" },
|
"nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" },
|
||||||
"nvim-scrollview": { "branch": "main", "commit": "ba6c48bf7919dd48a371e7b9c683b8858053e885" },
|
"nvim-scrollview": { "branch": "main", "commit": "ba6c48bf7919dd48a371e7b9c683b8858053e885" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "9c97e6449b0b0269bd44e1fd4857184dfa57bb4c" },
|
"nvim-tree.lua": { "branch": "master", "commit": "9c97e6449b0b0269bd44e1fd4857184dfa57bb4c" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "ad9ae9e7def54fee446c3e186ed0a0d44cca7b90" },
|
"nvim-treesitter": { "branch": "master", "commit": "c38646edf2bdfac157ca619697ecad9ea87fd469" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" },
|
||||||
"nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" },
|
"nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "4709a504d2cd2680fb511675e64ef2790d491d36" },
|
"nvim-web-devicons": { "branch": "master", "commit": "4709a504d2cd2680fb511675e64ef2790d491d36" },
|
||||||
|
"onedark.nvim": { "branch": "master", "commit": "1fe908fb4acdcee26573e9ccde0de94ec77e5e84" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
|
"plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
|
||||||
"smart-splits.nvim": { "branch": "master", "commit": "b38431f1f68bc43d6bf9d1edb21c2bcb06b1197c" },
|
"smart-splits.nvim": { "branch": "master", "commit": "b38431f1f68bc43d6bf9d1edb21c2bcb06b1197c" },
|
||||||
"symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" },
|
"symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "a486ac3e8fb2198f3636da1927ed57a28836fbd8" },
|
"telescope.nvim": { "branch": "master", "commit": "a486ac3e8fb2198f3636da1927ed57a28836fbd8" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "077c59586d9d0726b0696dc5680eb863f4e04bc5" },
|
"todo-comments.nvim": { "branch": "main", "commit": "077c59586d9d0726b0696dc5680eb863f4e04bc5" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "a5638b2206c3930a16a24e5c184dddd572f8cd34" },
|
"toggleterm.nvim": { "branch": "main", "commit": "a5638b2206c3930a16a24e5c184dddd572f8cd34" },
|
||||||
|
"vim": { "branch": "master", "commit": "a4f6b0abe6cad85330867a54893864e0d5c59359" },
|
||||||
"vim-bbye": { "branch": "master", "commit": "903f5eb17f72ebf7b0b1524bbb792c0b36761af6" },
|
"vim-bbye": { "branch": "master", "commit": "903f5eb17f72ebf7b0b1524bbb792c0b36761af6" },
|
||||||
"vim-illuminate": { "branch": "master", "commit": "49062ab1dd8fec91833a69f0a1344223dd59d643" },
|
"vim-illuminate": { "branch": "master", "commit": "49062ab1dd8fec91833a69f0a1344223dd59d643" },
|
||||||
"vim-startuptime": { "branch": "master", "commit": "5f52ed26e0296a3e1d1453935f417e5808eefab8" },
|
"vim-startuptime": { "branch": "master", "commit": "5f52ed26e0296a3e1d1453935f417e5808eefab8" },
|
||||||
|
|
|
@ -8,3 +8,5 @@ require("user.keymaps")
|
||||||
-- require("user.snip")
|
-- require("user.snip")
|
||||||
-- require("user.bufferline")
|
-- require("user.bufferline")
|
||||||
-- require("user.chat_gpt")
|
-- require("user.chat_gpt")
|
||||||
|
-- vim.cmd("colorscheme onedark")
|
||||||
|
vim.cmd("colorscheme dracula")
|
||||||
|
|
|
@ -1,7 +1,20 @@
|
||||||
return {
|
return {
|
||||||
--- masukan plugin tambahan disini
|
--- masukan plugin tambahan disini
|
||||||
{ "folke/trouble.nvim", enabled = false }, -- ini untuk disable plugin
|
{ "folke/trouble.nvim", enabled = false }, -- ini untuk disable plugin
|
||||||
-- { "dracula/vim" },
|
{ "dracula/vim" },
|
||||||
|
-- { "folke/tokyonight.nvim" },
|
||||||
|
-- { "arcticicestudio/nord-vim" },
|
||||||
-- { "sainnhe/sonokai" },
|
-- { "sainnhe/sonokai" },
|
||||||
-- { "RRethy/nvim-base16" },
|
-- { "RRethy/nvim-base16" },
|
||||||
|
{
|
||||||
|
"navarasu/onedark.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
-- Lua
|
||||||
|
require("onedark").setup({
|
||||||
|
style = "darker",
|
||||||
|
})
|
||||||
|
require("onedark").load()
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
40
lua/custom/plugins/mini-animate.lua
Normal file
40
lua/custom/plugins/mini-animate.lua
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
return {
|
||||||
|
-- animations
|
||||||
|
{
|
||||||
|
"echasnovski/mini.animate",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = function()
|
||||||
|
-- don't use animate when scrolling with the mouse
|
||||||
|
local mouse_scrolled = false
|
||||||
|
for _, scroll in ipairs({ "Up", "Down" }) do
|
||||||
|
local key = "<ScrollWheel" .. scroll .. ">"
|
||||||
|
vim.keymap.set({ "", "i" }, key, function()
|
||||||
|
mouse_scrolled = true
|
||||||
|
return key
|
||||||
|
end, { expr = true })
|
||||||
|
end
|
||||||
|
|
||||||
|
local animate = require("mini.animate")
|
||||||
|
return {
|
||||||
|
resize = {
|
||||||
|
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||||
|
},
|
||||||
|
scroll = {
|
||||||
|
timing = animate.gen_timing.linear({ duration = 150, unit = "total" }),
|
||||||
|
subscroll = animate.gen_subscroll.equal({
|
||||||
|
predicate = function(total_scroll)
|
||||||
|
if mouse_scrolled then
|
||||||
|
mouse_scrolled = false
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
return total_scroll > 1
|
||||||
|
end,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
config = function(_, opts)
|
||||||
|
require("mini.animate").setup(opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue