diff --git a/nvim/lua/user/plugins/editor/ufo.lua b/nvim/lua/user/plugins/editor/ufo.lua index 0a8f71a..3695830 100644 --- a/nvim/lua/user/plugins/editor/ufo.lua +++ b/nvim/lua/user/plugins/editor/ufo.lua @@ -1,5 +1,6 @@ return { 'kevinhwang91/nvim-ufo', + event = "BufEnter", dependencies = { 'kevinhwang91/promise-async', }, diff --git a/nvim/lua/user/plugins/ide/autocomplete.lua b/nvim/lua/user/plugins/ide/autocomplete.lua index 5709cdf..96b54ff 100644 --- a/nvim/lua/user/plugins/ide/autocomplete.lua +++ b/nvim/lua/user/plugins/ide/autocomplete.lua @@ -2,7 +2,7 @@ local icons = require('user.icons') return { 'saghen/blink.cmp', - lazy = false, + event = "InsertEnter", version = "1.*", dependencies = { { "xzbdmw/colorful-menu.nvim" }, diff --git a/nvim/lua/user/plugins/ui.lua b/nvim/lua/user/plugins/ui.lua index 0f3c40f..40203cb 100644 --- a/nvim/lua/user/plugins/ui.lua +++ b/nvim/lua/user/plugins/ui.lua @@ -19,6 +19,7 @@ return { -- Icons { 'nvim-tree/nvim-web-devicons', + lazy = true, opts = { override = { php = { @@ -62,8 +63,12 @@ return { }, }, select = { - backend = { "telescope" }, - telescope = require("telescope.themes").get_dropdown(ui.dropdown), + get_config = function(_) + return { + backend = 'telescope', + telescope = require("telescope.themes").get_dropdown(ui.dropdown) + } + end } }, }, diff --git a/nvim/lua/user/plugins/ui/nvimtree.lua b/nvim/lua/user/plugins/ui/nvimtree.lua index 3d0bbe0..e731612 100644 --- a/nvim/lua/user/plugins/ui/nvimtree.lua +++ b/nvim/lua/user/plugins/ui/nvimtree.lua @@ -93,6 +93,7 @@ local options = { return { 'nvim-tree/nvim-tree.lua', + cmd = "NvimTreeFocus", opts = options, config = function (_, opts) require('nvim-tree').setup(opts)