From 8f33e5737fdc7aa24d124eb9f8e2b9da99b50144 Mon Sep 17 00:00:00 2001 From: asep komarudin Date: Sun, 5 Feb 2023 09:09:33 +0700 Subject: [PATCH] update config --- lazy-lock.json | 5 ++- lua/plugins/init.lua | 87 ++++++++++++++++++++++++-------------------- 2 files changed, 50 insertions(+), 42 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index 52102d6..15d6654 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -22,7 +22,7 @@ "lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "53f3a8bdcb77d4a95b082fd57e12173f353c6c3e" }, "mason-null-ls.nvim": { "branch": "main", "commit": "13c6ab4a4f810cbbb1799a9cf4d4a27fd862d885" }, - "mason.nvim": { "branch": "main", "commit": "9ec92c1945b11ba7e7e6730fd60fd44525f24a25" }, + "mason.nvim": { "branch": "main", "commit": "47fdf54d622bde33391fe7fed6f5b74d0846b7c8" }, "mini.indentscope": { "branch": "main", "commit": "3a517f11aa9d1434c4cdba1a807df4e5ca42d3ea" }, "neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" }, "null-ls.nvim": { "branch": "main", "commit": "8f5d730021497233c39d3adbf4b8043d4be163f8" }, @@ -34,9 +34,10 @@ "nvim-navic": { "branch": "master", "commit": "7e9d2b2b601149fecdccd11b516acb721e571fe6" }, "nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" }, "nvim-scrollview": { "branch": "main", "commit": "ba6c48bf7919dd48a371e7b9c683b8858053e885" }, - "nvim-tree.lua": { "branch": "master", "commit": "7eb33d2a6d5d574a43159da90e0eac2445367393" }, + "nvim-tree.lua": { "branch": "master", "commit": "59e65d88db177ad1e6a8cffaafd4738420ad20b6" }, "nvim-treesitter": { "branch": "master", "commit": "69388e84c34d40c3d5c7d2f310db13276f2179e1" }, "nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" }, + "nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" }, "nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" }, "nvim-web-devicons": { "branch": "master", "commit": "2b96193abe4372e18e4f4533895a42a466d53c17" }, "plenary.nvim": { "branch": "master", "commit": "9d81624fbcedd3dd43b38d7e13a1e7b3f873d8cd" }, diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 4ea07c3..dbd3b15 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,8 +1,8 @@ return { + -- plugin ini merupakan penyedia library neovim lua { "nvim-lua/plenary.nvim", - event = "BufWinEnter", - module = "plenary", + event = "VeryLazy", }, -- color scheme { @@ -78,6 +78,9 @@ return { -- require("user.treesitter") -- end, -- }, + + -- coding start + -- coloring code { "nvim-treesitter/nvim-treesitter", cmd = { @@ -128,7 +131,6 @@ return { { "", function() require("luasnip").jump(-1) end, mode = { "i", "s" } }, }, }, - -- auto completion { "hrsh7th/nvim-cmp", @@ -143,29 +145,7 @@ return { require("user.cmp") end, }, - { - "windwp/nvim-autopairs", - dependencies = "hrsh7th/nvim-cmp", - event = "VeryLazy", - init = function() - require("user.autopairs") - end, - }, - { - "numToStr/Comment.nvim", - event = "InsertEnter", - init = function() - require("user.comment") - end, - }, - -- styleing indent - { - "lukas-reineke/indent-blankline.nvim", - event = "BufRead", - init = function() - require("user.indentline") - end, - }, + -- start cmp & lsp { "hrsh7th/cmp-buffer", event = "VeryLazy", @@ -238,8 +218,42 @@ return { require("user.mason_dap") end, }, - -- for install only java support windows + -- for install lsp tidak support mason { "williamboman/nvim-lsp-installer", event = "VeryLazy" }, + -- auto pairs + { + "windwp/nvim-autopairs", + dependencies = "hrsh7th/nvim-cmp", + event = "VeryLazy", + init = function() + require("user.autopairs") + end, + }, + -- untuk comment + { "JoosepAlviste/nvim-ts-context-commentstring" }, + { + "numToStr/Comment.nvim", + event = "InsertEnter", + init = function() + require("user.comment") + end, + }, + -- better todo coloring and icon + { + "folke/todo-comments.nvim", + event = "BufRead", + config = function() + require("todo-comments").setup() + end, + }, + -- styleing indent + { + "lukas-reineke/indent-blankline.nvim", + event = "BufRead", + init = function() + require("user.indentline") + end, + }, -- dashboard { "goolord/alpha-nvim", @@ -292,6 +306,7 @@ return { -- require("user.bufferline") -- end, }, + -- for delete buffers (close files) without closing your windows or messing up your layout. { "moll/vim-bbye", event = "VeryLazy" }, -- for view terminal { @@ -303,6 +318,7 @@ return { end, }, -- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" }, + -- for Speed up loading Lua modules in Neovim to improve startup time. { "lewis6991/impatient.nvim", event = "VeryLazy", @@ -318,9 +334,6 @@ return { require("user.whichkey") end, }, - -- include for coding - -- require("plugins.coding"), - -- extra plugins -- for search { "nvim-telescope/telescope.nvim", @@ -384,7 +397,6 @@ return { "rcarriga/nvim-notify", event = "BufRead", config = function() - -- vim.notify = require("notify") -- ini jika tidak transparant local notify = require("notify") -- this for transparency notify.setup({ background_colour = "#000000" }) @@ -408,14 +420,6 @@ return { require("user.dressing") end, }, - -- better todo coloring and icon - { - "folke/todo-comments.nvim", - event = "BufRead", - config = function() - require("todo-comments").setup() - end, - }, -- mini scrollview { "karb94/neoscroll.nvim", @@ -494,6 +498,7 @@ return { { "dstein64/vim-startuptime", cmd = "StartupTime", event = "VeryLazy" }, -- for coloring pairs { "p00f/nvim-ts-rainbow", event = "BufWinEnter", dependencies = "nvim-treesitter/nvim-treesitter" }, + -- for git { "lewis6991/gitsigns.nvim", enabled = vim.fn.executable("git") == 1, @@ -504,7 +509,7 @@ return { end, }, - -- additional new plugins + -- additional plugins -- active indent guide and indent text objects { "echasnovski/mini.indentscope", @@ -597,6 +602,8 @@ return { -- require("telescope").load_extension("laravel") -- end, -- }, + + -- for loading info { "j-hui/fidget.nvim", event = "VeryLazy",