From d11d8e2e79a2295bfc38a6916a335f786507545a Mon Sep 17 00:00:00 2001 From: asep komarudin Date: Sun, 19 Feb 2023 12:18:29 +0700 Subject: [PATCH] update --- lazy-lock.json | 2 +- lua/core/init.lua | 8 ++++---- lua/plugins/init.lua | 1 + lua/plugins/ui.lua | 13 +++++++------ 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index 19bbb8b..89791d0 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -35,7 +35,7 @@ "nvim-navic": { "branch": "master", "commit": "7e9d2b2b601149fecdccd11b516acb721e571fe6" }, "nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" }, "nvim-scrollview": { "branch": "main", "commit": "ba6c48bf7919dd48a371e7b9c683b8858053e885" }, - "nvim-tree.lua": { "branch": "master", "commit": "08a0aa1a3b7411ee0a7887c8818528b1558cef96" }, + "nvim-tree.lua": { "branch": "master", "commit": "bcb969c8692bd79a3b34658436e679f3bf784b92" }, "nvim-treesitter": { "branch": "master", "commit": "ad9ae9e7def54fee446c3e186ed0a0d44cca7b90" }, "nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" }, diff --git a/lua/core/init.lua b/lua/core/init.lua index e9f537b..cd0d72d 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -1,11 +1,11 @@ local onsave = true -require("user.options") require("config.lazy") +require("user.options") require("user.keymaps") require("user.autocommands") -require("user.colorscheme") -require("user.snip") -require("user.bufferline") +-- require("user.colorscheme") +-- require("user.snip") +-- require("user.bufferline") if onsave then require("user.format_onsave") end diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index f60e1fb..b083e11 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -42,6 +42,7 @@ return { "rafamadriz/friendly-snippets", config = function() require("luasnip.loaders.from_vscode").lazy_load() + require("user.snip") end, }, opts = { diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index 945181c..6aada72 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -3,8 +3,8 @@ return { { "folke/tokyonight.nvim", -- commit = "66bfc2e8f754869c7b651f3f47a2ee56ae557764", - lazy = true, -- 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 + 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() local is_transparant = false if is_transparant then @@ -12,6 +12,7 @@ return { else require("user.tokyonight") end + require("user.colorscheme") end, }, -- { @@ -124,10 +125,10 @@ return { }, { "akinsho/bufferline.nvim", - event = "BufRead", - -- config = function() - -- require("user.bufferline") - -- end, + event = "BufWinEnter", + config = function() + require("user.bufferline") + end, }, -- for delete buffers (close files) without closing your windows or messing up your layout. { "moll/vim-bbye", event = "BufRead" },