diff --git a/lazy-lock.json b/lazy-lock.json index c01782f..0fc570b 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -20,40 +20,38 @@ "jaq-nvim": { "branch": "master", "commit": "236296aae555657487d1bb4d066cbde9d79d8cd4" }, "lazy.nvim": { "branch": "main", "commit": "c778b7aa04c484e1536ba219e71f2fd0f05302aa" }, "live-server": { "branch": "main", "commit": "ecd7c1418823b65dd2bca710587c80afe42c973e" }, - "lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "e2b82cf4c68b453eeab5833d90c042ed4b49d0e1" }, + "lualine.nvim": { "branch": "master", "commit": "e99d733e0213ceb8f548ae6551b04ae32e590c80" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "93e58e100f37ef4fb0f897deeed20599dae9d128" }, "mason-null-ls.nvim": { "branch": "main", "commit": "9ad7503c32545ee6e8000e52d9ae4a93d49231fb" }, - "mason.nvim": { "branch": "main", "commit": "5a39046048da93f6873945129b2f9f12f56ca37d" }, - "mini.indentscope": { "branch": "main", "commit": "f3bbd793fac80638bb5f4ef173eb514170aa22b3" }, + "mason.nvim": { "branch": "main", "commit": "eb6010ac97e9b510ddce8d28b6925ff6b046eab2" }, + "mini.indentscope": { "branch": "main", "commit": "d3e907b13298b0fc60db289fb804be7e9c561922" }, "neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" }, - "null-ls.nvim": { "branch": "main", "commit": "d4594231a06cecce73a78a256b0d7c7ab51f7dd5" }, + "null-ls.nvim": { "branch": "main", "commit": "9d811bb6ed44cf766f4bda8a47fd65fdfbdcaa7d" }, "nvim-autopairs": { "branch": "master", "commit": "4fc96c8f3df89b6d23e5092d31c866c53a346347" }, - "nvim-cmp": { "branch": "main", "commit": "aae0c3e4e778ca4be6fabc52e388cbd5b844b7a5" }, + "nvim-cmp": { "branch": "main", "commit": "c4128bcd131fb7152bda8f8dd2b5e41d2fefa88c" }, "nvim-colorizer.lua": { "branch": "master", "commit": "760e27df4dd966607e8fb7fd8b6b93e3c7d2e193" }, "nvim-lsp-installer": { "branch": "main", "commit": "17e0bfa5f2c8854d1636fcd036dc8284db136baa" }, "nvim-lspconfig": { "branch": "master", "commit": "255e07ce2a05627d482d2de77308bba51b90470c" }, "nvim-navic": { "branch": "master", "commit": "7e9d2b2b601149fecdccd11b516acb721e571fe6" }, "nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" }, "nvim-scrollview": { "branch": "main", "commit": "ba6c48bf7919dd48a371e7b9c683b8858053e885" }, - "nvim-tree.lua": { "branch": "master", "commit": "8b8d457e07d279976a9baac6bbff5aa036afdc5f" }, - "nvim-treesitter": { "branch": "master", "commit": "69388e84c34d40c3d5c7d2f310db13276f2179e1" }, + "nvim-tree.lua": { "branch": "master", "commit": "4222bb875d86a2a53069c75c4833e27f58e26d90" }, + "nvim-treesitter": { "branch": "master", "commit": "ad9ae9e7def54fee446c3e186ed0a0d44cca7b90" }, "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": "bd7a222287c5828cd0607cd0a5605e52f0460074" }, + "nvim-web-devicons": { "branch": "master", "commit": "bb6d4fd1e010300510172b173ab5205d37af084f" }, "plenary.nvim": { "branch": "master", "commit": "9d81624fbcedd3dd43b38d7e13a1e7b3f873d8cd" }, - "smart-splits.nvim": { "branch": "master", "commit": "fdd158ce7554dc830fb86e0fe952cd9476cdf726" }, + "smart-splits.nvim": { "branch": "master", "commit": "b38431f1f68bc43d6bf9d1edb21c2bcb06b1197c" }, "symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" }, "telescope.nvim": { "branch": "master", "commit": "203bf5609137600d73e8ed82703d6b0e320a5f36" }, "todo-comments.nvim": { "branch": "main", "commit": "077c59586d9d0726b0696dc5680eb863f4e04bc5" }, "toggleterm.nvim": { "branch": "main", "commit": "2a787c426ef00cb3488c11b14f5dcf892bbd0bda" }, "tokyonight.nvim": { "branch": "main", "commit": "a0abe53df53616d13da327636cb0bcac3ea7f5af" }, - "trouble.nvim": { "branch": "main", "commit": "556ef3089709a6e253df1e500381fec5eb48e48a" }, "vim-bbye": { "branch": "master", "commit": "903f5eb17f72ebf7b0b1524bbb792c0b36761af6" }, "vim-illuminate": { "branch": "master", "commit": "49062ab1dd8fec91833a69f0a1344223dd59d643" }, "vim-startuptime": { "branch": "master", "commit": "5f52ed26e0296a3e1d1453935f417e5808eefab8" }, "vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" }, "which-key.nvim": { "branch": "main", "commit": "5224c261825263f46f6771f1b644cae33cd06995" }, - "wilder.nvim": { "branch": "master", "commit": "679f348dc90d80ff9ba0e7c470c40a4d038dcecf" }, "yanky.nvim": { "branch": "main", "commit": "9fb1c211775b5a6c83b9fe806cfd99f68c65f8a0" } } \ No newline at end of file diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 47505a7..062f96f 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -83,9 +83,8 @@ return { documentation = cmp.config.window.bordered(), }, experimental = { - ghost_text = { - hl_group = "LspCodeLens", - }, + ghost_text = false, + native_menu = false, }, } end, diff --git a/lua/plugins/cmp_cndline.lua b/lua/plugins/cmp_cndline.lua index 742106b..70fce52 100644 --- a/lua/plugins/cmp_cndline.lua +++ b/lua/plugins/cmp_cndline.lua @@ -30,20 +30,20 @@ return { -- }, -- for auto complate commond mode - { - "gelguy/wilder.nvim", - event = "BufWinEnter", - config = function() - local wilder = require("wilder") - wilder.setup({ modes = { ":", "/", "?" } }) - wilder.set_option( - "renderer", - wilder.popupmenu_renderer({ - highlighter = wilder.basic_highlighter(), - left = { " ", wilder.popupmenu_devicons() }, - right = { " ", wilder.popupmenu_scrollbar() }, - }) - ) - end, - }, + -- { + -- "gelguy/wilder.nvim", + -- event = "BufWinEnter", + -- config = function() + -- local wilder = require("wilder") + -- wilder.setup({ modes = { ":", "/", "?" } }) + -- wilder.set_option( + -- "renderer", + -- wilder.popupmenu_renderer({ + -- highlighter = wilder.basic_highlighter(), + -- left = { " ", wilder.popupmenu_devicons() }, + -- right = { " ", wilder.popupmenu_scrollbar() }, + -- }) + -- ) + -- end, + -- }, } diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index ae62d7f..5357907 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -307,7 +307,7 @@ return { "lewis6991/gitsigns.nvim", enabled = vim.fn.executable("git") == 1, ft = "gitcommit", - event = "BufRead", + event = "VeryLazy", config = function() require("user.gitsigns") end, @@ -337,16 +337,16 @@ return { -- makes some plugins dot-repeatable like leap -- { "tpope/vim-repeat", event = "VeryLazy" }, -- better diagnostics list and others - { - "folke/trouble.nvim", - event = "BufRead", - cmd = { "TroubleToggle", "Trouble" }, - opts = { use_diagnostic_signs = true }, - keys = { - { "xx", "TroubleToggle document_diagnostics", desc = "Document Diagnostics (Trouble)" }, - { "xX", "TroubleToggle workspace_diagnostics", desc = "Workspace Diagnostics (Trouble)" }, - }, - }, + -- { + -- "folke/trouble.nvim", + -- event = "BufRead", + -- cmd = { "TroubleToggle", "Trouble" }, + -- opts = { use_diagnostic_signs = true }, + -- keys = { + -- { "xx", "TroubleToggle document_diagnostics", desc = "Document Diagnostics (Trouble)" }, + -- { "xX", "TroubleToggle workspace_diagnostics", desc = "Workspace Diagnostics (Trouble)" }, + -- }, + -- }, -- for markdown preview -- make sure already install npm and yarn -- { diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index b8e5cc2..6c3a7f0 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -93,8 +93,8 @@ return { { "nvim-lualine/lualine.nvim", -- dependencies = { "kyazdani42/nvim-web-devicons", opt = true }, - event = "BufWinEnter", - config = function() + event = "VeryLazy", + init = function() local model = 0 if model == 1 then require("user.lualine1") @@ -116,9 +116,9 @@ return { -- for tree exploler { "kyazdani42/nvim-tree.lua", - -- event = "BufRead", + event = "BufWinEnter", cmd = "NvimTreeToggle", - -- dependencies = "kyazdani42/nvim-web-devicons", + dependencies = "kyazdani42/nvim-web-devicons", config = function() require("user.nvim-tree") end, diff --git a/lua/plugins_20230205/coding.lua b/lua/plugins_20230214/coding.lua similarity index 100% rename from lua/plugins_20230205/coding.lua rename to lua/plugins_20230214/coding.lua diff --git a/lua/plugins_20230205/init.lua b/lua/plugins_20230214/init.lua similarity index 84% rename from lua/plugins_20230205/init.lua rename to lua/plugins_20230214/init.lua index 373874d..b6b8ae5 100644 --- a/lua/plugins_20230205/init.lua +++ b/lua/plugins_20230214/init.lua @@ -1,14 +1,14 @@ return { { "nvim-lua/plenary.nvim", - commit = "4b7e52044bbb84242158d977a50c4cbcd85070c7", + -- commit = "4b7e52044bbb84242158d977a50c4cbcd85070c7", event = "BufWinEnter", module = "plenary", }, -- color scheme { "folke/tokyonight.nvim", - commit = "66bfc2e8f754869c7b651f3f47a2ee56ae557764", + -- commit = "66bfc2e8f754869c7b651f3f47a2ee56ae557764", lazy = false, -- make sure we load this during startup if it is your main colorscheme priority = 1000, -- make sure to load this before all the other start plugins config = function() @@ -20,15 +20,16 @@ return { end end, }, - { - "navarasu/onedark.nvim", - init = function() - require("user.onedark") - require("onedark").load() - end, - }, + { "luisiacc/gruvbox-baby", lazy = true }, + -- { + -- "navarasu/onedark.nvim", + -- init = function() + -- require("user.onedark") + -- require("onedark").load() + -- end, + -- }, -- { "lunarvim/lunar.nvim" }, - { "arcticicestudio/nord-vim" }, + -- { "arcticicestudio/nord-vim" }, -- { -- "catppuccin/nvim", -- name = "catppuccin", @@ -72,7 +73,7 @@ return { -- require("plugins.treesitter"), { "nvim-treesitter/nvim-treesitter", - commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac", + -- commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac", run = ":TSUpdate", event = "BufWinEnter", opts = function() @@ -131,7 +132,7 @@ return { }, { "numToStr/Comment.nvim", - commit = "97a188a98b5a3a6f9b1b850799ac078faa17ab67", + --commit = "97a188a98b5a3a6f9b1b850799ac078faa17ab67", event = "InsertEnter", init = function() require("user.comment") @@ -140,7 +141,7 @@ return { -- styleing indent { "lukas-reineke/indent-blankline.nvim", - commit = "db7cbcb40cc00fc5d6074d7569fb37197705e7f6", + -- commit = "db7cbcb40cc00fc5d6074d7569fb37197705e7f6", event = "BufRead", init = function() require("user.indentline") @@ -149,18 +150,18 @@ return { { "hrsh7th/cmp-buffer", event = "VeryLazy", - commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa", + -- commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa", dependencies = "hrsh7th/nvim-cmp", }, { "hrsh7th/cmp-nvim-lua", event = "VeryLazy", - commit = "d276254e7198ab7d00f117e88e223b4bd8c02d21", + -- commit = "d276254e7198ab7d00f117e88e223b4bd8c02d21", dependencies = "hrsh7th/nvim-cmp", }, { "neovim/nvim-lspconfig", - commit = "f11fdff7e8b5b415e5ef1837bdcdd37ea6764dda", + -- commit = "f11fdff7e8b5b415e5ef1837bdcdd37ea6764dda", event = "BufWinEnter", config = function() require("user.lsp") @@ -172,7 +173,7 @@ return { }, { "williamboman/mason.nvim", - commit = "c2002d7a6b5a72ba02388548cfaf420b864fbc12", + -- commit = "c2002d7a6b5a72ba02388548cfaf420b864fbc12", event = "VeryLazy", cmd = { "Mason", @@ -189,8 +190,16 @@ return { end, }, -- for formater linter - { "jose-elias-alvarez/null-ls.nvim", commit = "c0c19f32b614b3921e17886c541c13a72748d450", event = "VeryLazy" }, - { "RRethy/vim-illuminate", commit = "a2e8476af3f3e993bb0d6477438aad3096512e42", event = "VeryLazy" }, + { + "jose-elias-alvarez/null-ls.nvim", + -- commit = "c0c19f32b614b3921e17886c541c13a72748d450", + event = "VeryLazy", + }, + { + "RRethy/vim-illuminate", + -- commit = "a2e8476af3f3e993bb0d6477438aad3096512e42", + event = "VeryLazy", + }, { "jayp0521/mason-null-ls.nvim", dependencies = "jose-elias-alvarez/null-ls.nvim", @@ -202,7 +211,7 @@ return { -- dashboard { "goolord/alpha-nvim", - commit = "0bb6fc0646bcd1cdb4639737a1cee8d6e08bcc31", + -- commit = "0bb6fc0646bcd1cdb4639737a1cee8d6e08bcc31", module = "alpha", event = "BufWinEnter", config = function() @@ -212,7 +221,7 @@ return { -- line info bootom { "nvim-lualine/lualine.nvim", - commit = "a52f078026b27694d2290e34efa61a6e4a690621", + -- commit = "a52f078026b27694d2290e34efa61a6e4a690621", dependencies = { "kyazdani42/nvim-web-devicons", opt = true }, event = "BufWinEnter", opts = function() @@ -229,7 +238,7 @@ return { -- for show icon { "kyazdani42/nvim-web-devicons", - commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352", + -- commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352", event = "VeryLazy", config = function() require("user.webdevicons") @@ -238,7 +247,7 @@ return { -- for tree exploler { "kyazdani42/nvim-tree.lua", - commit = "7282f7de8aedf861fe0162a559fc2b214383c51c", + -- commit = "7282f7de8aedf861fe0162a559fc2b214383c51c", event = "BufWinEnter", cmd = "NvimTreeToggle", dependencies = "kyazdani42/nvim-web-devicons", @@ -249,28 +258,36 @@ return { -- for file tab { "akinsho/bufferline.nvim", - commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4", + -- commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4", dependencies = { "kyazdani42/nvim-web-devicons", "famiu/bufdelete.nvim" }, event = "VeryLazy", -- config = function() -- require("user.bufferline") -- end, }, - { "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56", event = "VeryLazy" }, + { + "moll/vim-bbye", + -- commit = "25ef93ac5a87526111f43e5110675032dbcacf56", + event = "VeryLazy", + }, -- for view terminal { "akinsho/toggleterm.nvim", - commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda", + --commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda", cmd = "Toggleterm", event = "BufWinEnter", init = function() require("user.toggleterm") end, }, - { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" }, + { + "ahmedkhalf/project.nvim", + -- commit = "628de7e433dd503e782831fe150bb750e56e55d6", + event = "VeryLazy", + }, { "lewis6991/impatient.nvim", - commit = "b842e16ecc1a700f62adb9802f8355b99b52a5a6", + -- commit = "b842e16ecc1a700f62adb9802f8355b99b52a5a6", event = "VeryLazy", init = function() require("user.impatient") @@ -291,7 +308,7 @@ return { { "nvim-telescope/telescope.nvim", event = "VeryLazy", - commit = "76ea9a898d3307244dce3573392dcf2cc38f340f", + -- commit = "76ea9a898d3307244dce3573392dcf2cc38f340f", dependencies = { { "nvim-lua/plenary.nvim" } }, cmd = "Telescope", init = function() @@ -465,7 +482,7 @@ return { { "p00f/nvim-ts-rainbow", event = "BufWinEnter", dependencies = "nvim-treesitter/nvim-treesitter" }, { "lewis6991/gitsigns.nvim", - commit = "2c6f96dda47e55fa07052ce2e2141e8367cbaaf2", + -- commit = "2c6f96dda47e55fa07052ce2e2141e8367cbaaf2", enabled = vim.fn.executable("git") == 1, ft = "gitcommit", event = "VeryLazy", @@ -509,17 +526,17 @@ return { }, }, -- for markdown preview - -- make sure already install npm and yarn - { - "iamcco/markdown-preview.nvim", - event = "VeryLazy", - build = "cd app && npm install", - init = function() - vim.g.mkdp_filetypes = { "markdown" } - end, - ft = { "markdown" }, - cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" }, - }, + -- -- make sure already install npm and yarn + -- { + -- "iamcco/markdown-preview.nvim", + -- event = "VeryLazy", + -- build = "cd app && npm install", + -- init = function() + -- vim.g.mkdp_filetypes = { "markdown" } + -- end, + -- ft = { "markdown" }, + -- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" }, + -- }, -- debuging { "mfussenegger/nvim-dap", @@ -544,25 +561,25 @@ return { end, }, -- for codeGPT - { - "jackMort/ChatGPT.nvim", - dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" }, - lazy = true, - event = "VeryLazy", - -- opts = function() - -- require("user.chat_gpt") - -- end, - }, + -- { + -- "jackMort/ChatGPT.nvim", + -- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" }, + -- lazy = true, + -- event = "VeryLazy", + -- -- opts = function() + -- -- require("user.chat_gpt") + -- -- end, + -- }, -- indent detection - { - "Darazaki/indent-o-matic", - event = "VeryLazy", - opt = true, - cmd = { "IndentOMatic" }, - config = function() - require("user.indent-o-matic") - end, - }, + -- { + -- "Darazaki/indent-o-matic", + -- event = "VeryLazy", + -- opt = true, + -- cmd = { "IndentOMatic" }, + -- config = function() + -- require("user.indent-o-matic") + -- end, + -- }, -- Lsp Saga -- { -- "glepnir/lspsaga.nvim", diff --git a/lua/plugins_20230205/treesitter_20230115.lua b/lua/plugins_20230214/treesitter_20230115.lua similarity index 100% rename from lua/plugins_20230205/treesitter_20230115.lua rename to lua/plugins_20230214/treesitter_20230115.lua diff --git a/lua/user/lsp/init.lua b/lua/user/lsp/init.lua index 04805b4..2168f0b 100644 --- a/lua/user/lsp/init.lua +++ b/lua/user/lsp/init.lua @@ -1,9 +1,9 @@ local status_ok, _ = pcall(require, "lspconfig") if not status_ok then - return + return end -require "user.lsp.mason" -require "user.lsp.config" -- ini hanya untuk windows supaya jdtls jalan, kalau pakai linu x remark saja +require("user.lsp.mason") +require("user.lsp.config") -- ini hanya untuk windows supaya jdtls jalan, kalau pakai linu x remark saja require("user.lsp.handlers").setup() -require "user.lsp.null-ls" +require("user.lsp.null-ls")