diff options
-rw-r--r-- | nvim/.config/nvim/lua/plugins.lua | 15 | ||||
-rw-r--r-- | nvim/.config/nvim/plugin/packer_compiled.lua | 572 |
2 files changed, 4 insertions, 583 deletions
diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index de4c47f..efd0834 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -1,16 +1,9 @@ local fn = vim.fn -- Automatically install packer -local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" +local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then - PACKER_BOOTSTRAP = fn.system { - "git", - "clone", - "--depth", - "1", - "https://github.com/wbthomason/packer.nvim", - install_path, - } + packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) print "Installing packer close and reopen Neovim..." vim.cmd [[packadd packer.nvim]] end @@ -273,7 +266,7 @@ return packer.startup(function(use) -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins - if PACKER_BOOTSTRAP then - require("packer").sync() + if packer_bootstrap then + require('packer').sync() end end) diff --git a/nvim/.config/nvim/plugin/packer_compiled.lua b/nvim/.config/nvim/plugin/packer_compiled.lua deleted file mode 100644 index 31d41a6..0000000 --- a/nvim/.config/nvim/plugin/packer_compiled.lua +++ /dev/null @@ -1,572 +0,0 @@ --- Automatically generated packer.nvim plugin loader code - -if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then - vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') - return -end - -vim.api.nvim_command('packadd packer.nvim') - -local no_errors, error_msg = pcall(function() - - local time - local profile_info - local should_profile = false - if should_profile then - local hrtime = vim.loop.hrtime - profile_info = {} - time = function(chunk, start) - if start then - profile_info[chunk] = hrtime() - else - profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 - end - end - else - time = function(chunk, start) end - end - -local function save_profiles(threshold) - local sorted_times = {} - for chunk_name, time_taken in pairs(profile_info) do - sorted_times[#sorted_times + 1] = {chunk_name, time_taken} - end - table.sort(sorted_times, function(a, b) return a[2] > b[2] end) - local results = {} - for i, elem in ipairs(sorted_times) do - if not threshold or threshold and elem[2] > threshold then - results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' - end - end - - _G._packer = _G._packer or {} - _G._packer.profile_output = results -end - -time([[Luarocks path setup]], true) -local package_path_str = "/home/tobyv/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/tobyv/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/tobyv/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/tobyv/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" -local install_cpath_pattern = "/home/tobyv/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" -if not string.find(package.path, package_path_str, 1, true) then - package.path = package.path .. ';' .. package_path_str -end - -if not string.find(package.cpath, install_cpath_pattern, 1, true) then - package.cpath = package.cpath .. ';' .. install_cpath_pattern -end - -time([[Luarocks path setup]], false) -time([[try_loadstring definition]], true) -local function try_loadstring(s, component, name) - local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) - if not success then - vim.schedule(function() - vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) - end) - end - return result -end - -time([[try_loadstring definition]], false) -time([[Defining packer_plugins]], true) -_G.packer_plugins = { - ["Comment.nvim"] = { - config = { "require('Comment').setup()" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/Comment.nvim", - url = "https://github.com/numToStr/Comment.nvim" - }, - ["DAPInstall.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/DAPInstall.nvim", - url = "https://github.com/Pocco81/DAPInstall.nvim" - }, - ["FixCursorHold.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/FixCursorHold.nvim", - url = "https://github.com/antoinemadec/FixCursorHold.nvim" - }, - LuaSnip = { - config = { "require('plugins/luasnip')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/LuaSnip", - url = "https://github.com/L3MON4D3/LuaSnip" - }, - ["SchemaStore.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/SchemaStore.nvim", - url = "https://github.com/b0o/SchemaStore.nvim" - }, - ["alpha-nvim"] = { - config = { "require('plugins/alpha')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/alpha-nvim", - url = "https://github.com/goolord/alpha-nvim" - }, - ["cmp-buffer"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/cmp-buffer", - url = "https://github.com/hrsh7th/cmp-buffer" - }, - ["cmp-calc"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/cmp-calc", - url = "https://github.com/hrsh7th/cmp-calc" - }, - ["cmp-nvim-lsp"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", - url = "https://github.com/hrsh7th/cmp-nvim-lsp" - }, - ["cmp-nvim-lsp-signature-help"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help", - url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help" - }, - ["cmp-nvim-lua"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", - url = "https://github.com/hrsh7th/cmp-nvim-lua" - }, - ["cmp-path"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/cmp-path", - url = "https://github.com/hrsh7th/cmp-path" - }, - cmp_luasnip = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/cmp_luasnip", - url = "https://github.com/saadparwaiz1/cmp_luasnip" - }, - ["friendly-snippets"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/friendly-snippets", - url = "https://github.com/rafamadriz/friendly-snippets" - }, - ["git-blame.nvim"] = { - config = { "require('plugins/git-blame')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/git-blame.nvim", - url = "https://github.com/f-person/git-blame.nvim" - }, - ["git-worktree.nvim"] = { - config = { "require('plugins/git-worktree')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/git-worktree.nvim", - url = "https://github.com/ThePrimeagen/git-worktree.nvim" - }, - ["gitsigns.nvim"] = { - config = { "require('plugins/gitsigns')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", - url = "https://github.com/lewis6991/gitsigns.nvim" - }, - harpoon = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/harpoon", - url = "https://github.com/ThePrimeagen/harpoon" - }, - ["impatient.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/impatient.nvim", - url = "https://github.com/lewis6991/impatient.nvim" - }, - ["indent-blankline.nvim"] = { - config = { "require('plugins/blankline')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", - url = "https://github.com/lukas-reineke/indent-blankline.nvim" - }, - ["lazygit.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/lazygit.nvim", - url = "https://github.com/kdheepak/lazygit.nvim" - }, - ["lsp_extensions.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/lsp_extensions.nvim", - url = "https://github.com/nvim-lua/lsp_extensions.nvim" - }, - ["lsp_signature.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim", - url = "https://github.com/ray-x/lsp_signature.nvim" - }, - ["lspkind-nvim"] = { - config = { "require('plugins/lspkind')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/lspkind-nvim", - url = "https://github.com/onsails/lspkind-nvim" - }, - ["lualine.nvim"] = { - config = { "require('plugins/lualine')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/lualine.nvim", - url = "https://github.com/nvim-lualine/lualine.nvim" - }, - neogit = { - commands = { "Neogit" }, - config = { "require('neogit').setup {disable_commit_confirmation = true, disable_signs = true}" }, - loaded = false, - needs_bufread = true, - only_cond = false, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/opt/neogit", - url = "https://github.com/TimUntersberger/neogit" - }, - ["neovim-session-manager"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/neovim-session-manager", - url = "https://github.com/Shatur/neovim-session-manager" - }, - ["null-ls.nvim"] = { - config = { "require('plugins/null-ls')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/null-ls.nvim", - url = "https://github.com/jose-elias-alvarez/null-ls.nvim" - }, - ["numb.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/numb.nvim", - url = "https://github.com/nacro90/numb.nvim" - }, - ["nvim-bufferline.lua"] = { - config = { "require('plugins/bufferline')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-bufferline.lua", - url = "https://github.com/akinsho/nvim-bufferline.lua" - }, - ["nvim-cmp"] = { - config = { "require('plugins/cmp')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-cmp", - url = "https://github.com/hrsh7th/nvim-cmp" - }, - ["nvim-colorizer.lua"] = { - config = { "require('colorizer').setup {'css', 'javascript', 'vim', 'html'}" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/opt/nvim-colorizer.lua", - url = "https://github.com/norcalli/nvim-colorizer.lua" - }, - ["nvim-dap"] = { - config = { "require('plugins/dap')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-dap", - url = "https://github.com/mfussenegger/nvim-dap" - }, - ["nvim-dap-ui"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-dap-ui", - url = "https://github.com/rcarriga/nvim-dap-ui" - }, - ["nvim-dap-virtual-text"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-dap-virtual-text", - url = "https://github.com/theHamsta/nvim-dap-virtual-text" - }, - ["nvim-gps"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-gps", - url = "https://github.com/SmiteshP/nvim-gps" - }, - ["nvim-lsp-installer"] = { - config = { "require('plugins/lsp-installer')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer", - url = "https://github.com/williamboman/nvim-lsp-installer" - }, - ["nvim-lspconfig"] = { - config = { "require('plugins/lspconfig')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", - url = "https://github.com/neovim/nvim-lspconfig" - }, - ["nvim-nonicons"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-nonicons", - url = "https://github.com/yamatsum/nvim-nonicons" - }, - ["nvim-notify"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-notify", - url = "https://github.com/rcarriga/nvim-notify" - }, - ["nvim-spectre"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-spectre", - url = "https://github.com/windwp/nvim-spectre" - }, - ["nvim-tree.lua"] = { - config = { "require('plugins/nvim-tree')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", - url = "https://github.com/kyazdani42/nvim-tree.lua" - }, - ["nvim-treesitter"] = { - config = { "require('plugins/treesitter')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-treesitter", - url = "https://github.com/nvim-treesitter/nvim-treesitter" - }, - ["nvim-treesitter-refactor"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-treesitter-refactor", - url = "https://github.com/nvim-treesitter/nvim-treesitter-refactor" - }, - ["nvim-treesitter-textsubjects"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textsubjects", - url = "https://github.com/RRethy/nvim-treesitter-textsubjects" - }, - ["nvim-web-devicons"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", - url = "https://github.com/kyazdani42/nvim-web-devicons" - }, - ["packer.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/packer.nvim", - url = "https://github.com/wbthomason/packer.nvim" - }, - ["plenary.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/plenary.nvim", - url = "https://github.com/nvim-lua/plenary.nvim" - }, - ["presence.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/presence.nvim", - url = "https://github.com/andweeb/presence.nvim" - }, - ["project.nvim"] = { - config = { "require('plugins/project')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/project.nvim", - url = "https://github.com/ahmedkhalf/project.nvim" - }, - ["refactoring.nvim"] = { - loaded = false, - needs_bufread = false, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/opt/refactoring.nvim", - url = "https://github.com/ThePrimeagen/refactoring.nvim" - }, - ["renamer.nvim"] = { - config = { "require('plugins/renamer')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/renamer.nvim", - url = "https://github.com/filipdutescu/renamer.nvim" - }, - ripgrep = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/ripgrep", - url = "https://github.com/BurntSushi/ripgrep" - }, - ["rust-tools.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/rust-tools.nvim", - url = "https://github.com/simrat39/rust-tools.nvim" - }, - ["sqlite.lua"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/sqlite.lua", - url = "https://github.com/tami5/sqlite.lua" - }, - ["symbols-outline.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim", - url = "https://github.com/simrat39/symbols-outline.nvim" - }, - ["telescope-dap.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/telescope-dap.nvim", - url = "https://github.com/nvim-telescope/telescope-dap.nvim" - }, - ["telescope-frecency.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/telescope-frecency.nvim", - url = "https://github.com/nvim-telescope/telescope-frecency.nvim" - }, - ["telescope-fzf-native.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", - url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim" - }, - ["telescope.nvim"] = { - config = { "require('plugins/telescope')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/telescope.nvim", - url = "https://github.com/nvim-telescope/telescope.nvim" - }, - ["trouble.nvim"] = { - commands = { "TroubleToggle" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/opt/trouble.nvim", - url = "https://github.com/folke/trouble.nvim" - }, - undotree = { - commands = { "UndotreeToggle" }, - config = { "vim.g.undotree_SetFocusWhenToggle = 1" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/opt/undotree", - url = "https://github.com/mbbill/undotree" - }, - ["vim-bbye"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/vim-bbye", - url = "https://github.com/moll/vim-bbye" - }, - ["vim-dispatch"] = { - commands = { "Dispatch", "Make", "Focus", "Start" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/opt/vim-dispatch", - url = "https://github.com/tpope/vim-dispatch" - }, - ["vim-eunuch"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/vim-eunuch", - url = "https://github.com/tpope/vim-eunuch" - }, - ["vim-startuptime"] = { - commands = { "StartupTime" }, - config = { "vim.g.startuptime_tries = 3" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/opt/vim-startuptime", - url = "https://github.com/dstein64/vim-startuptime" - }, - ["vscode.nvim"] = { - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/vscode.nvim", - url = "https://github.com/Mofiqul/vscode.nvim" - }, - ["which-key.nvim"] = { - config = { "require('plugins/which-key')" }, - loaded = true, - path = "/home/tobyv/.local/share/nvim/site/pack/packer/start/which-key.nvim", - url = "https://github.com/folke/which-key.nvim" - } -} - -time([[Defining packer_plugins]], false) --- Config for: nvim-tree.lua -time([[Config for nvim-tree.lua]], true) -require('plugins/nvim-tree') -time([[Config for nvim-tree.lua]], false) --- Config for: telescope.nvim -time([[Config for telescope.nvim]], true) -require('plugins/telescope') -time([[Config for telescope.nvim]], false) --- Config for: nvim-dap -time([[Config for nvim-dap]], true) -require('plugins/dap') -time([[Config for nvim-dap]], false) --- Config for: gitsigns.nvim -time([[Config for gitsigns.nvim]], true) -require('plugins/gitsigns') -time([[Config for gitsigns.nvim]], false) --- Config for: alpha-nvim -time([[Config for alpha-nvim]], true) -require('plugins/alpha') -time([[Config for alpha-nvim]], false) --- Config for: null-ls.nvim -time([[Config for null-ls.nvim]], true) -require('plugins/null-ls') -time([[Config for null-ls.nvim]], false) --- Config for: indent-blankline.nvim -time([[Config for indent-blankline.nvim]], true) -require('plugins/blankline') -time([[Config for indent-blankline.nvim]], false) --- Config for: nvim-lspconfig -time([[Config for nvim-lspconfig]], true) -require('plugins/lspconfig') -time([[Config for nvim-lspconfig]], false) --- Config for: nvim-cmp -time([[Config for nvim-cmp]], true) -require('plugins/cmp') -time([[Config for nvim-cmp]], false) --- Config for: LuaSnip -time([[Config for LuaSnip]], true) -require('plugins/luasnip') -time([[Config for LuaSnip]], false) --- Config for: nvim-lsp-installer -time([[Config for nvim-lsp-installer]], true) -require('plugins/lsp-installer') -time([[Config for nvim-lsp-installer]], false) --- Config for: project.nvim -time([[Config for project.nvim]], true) -require('plugins/project') -time([[Config for project.nvim]], false) --- Config for: Comment.nvim -time([[Config for Comment.nvim]], true) -require('Comment').setup() -time([[Config for Comment.nvim]], false) --- Config for: lualine.nvim -time([[Config for lualine.nvim]], true) -require('plugins/lualine') -time([[Config for lualine.nvim]], false) --- Config for: lspkind-nvim -time([[Config for lspkind-nvim]], true) -require('plugins/lspkind') -time([[Config for lspkind-nvim]], false) --- Config for: which-key.nvim -time([[Config for which-key.nvim]], true) -require('plugins/which-key') -time([[Config for which-key.nvim]], false) --- Config for: renamer.nvim -time([[Config for renamer.nvim]], true) -require('plugins/renamer') -time([[Config for renamer.nvim]], false) --- Config for: nvim-bufferline.lua -time([[Config for nvim-bufferline.lua]], true) -require('plugins/bufferline') -time([[Config for nvim-bufferline.lua]], false) --- Config for: git-blame.nvim -time([[Config for git-blame.nvim]], true) -require('plugins/git-blame') -time([[Config for git-blame.nvim]], false) --- Config for: nvim-treesitter -time([[Config for nvim-treesitter]], true) -require('plugins/treesitter') -time([[Config for nvim-treesitter]], false) --- Config for: git-worktree.nvim -time([[Config for git-worktree.nvim]], true) -require('plugins/git-worktree') -time([[Config for git-worktree.nvim]], false) - --- Command lazy-loads -time([[Defining lazy-load commands]], true) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Neogit lua require("packer.load")({'neogit'}, { cmd = "Neogit", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TroubleToggle lua require("packer.load")({'trouble.nvim'}, { cmd = "TroubleToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Dispatch lua require("packer.load")({'vim-dispatch'}, { cmd = "Dispatch", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Make lua require("packer.load")({'vim-dispatch'}, { cmd = "Make", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file StartupTime lua require("packer.load")({'vim-startuptime'}, { cmd = "StartupTime", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Start lua require("packer.load")({'vim-dispatch'}, { cmd = "Start", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Focus lua require("packer.load")({'vim-dispatch'}, { cmd = "Focus", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeToggle lua require("packer.load")({'undotree'}, { cmd = "UndotreeToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) -time([[Defining lazy-load commands]], false) - -vim.cmd [[augroup packer_load_aucmds]] -vim.cmd [[au!]] - -- Filetype lazy-loads -time([[Defining lazy-load filetype autocommands]], true) -vim.cmd [[au FileType html ++once lua require("packer.load")({'nvim-colorizer.lua'}, { ft = "html" }, _G.packer_plugins)]] -vim.cmd [[au FileType vim ++once lua require("packer.load")({'nvim-colorizer.lua'}, { ft = "vim" }, _G.packer_plugins)]] -vim.cmd [[au FileType css ++once lua require("packer.load")({'nvim-colorizer.lua'}, { ft = "css" }, _G.packer_plugins)]] -vim.cmd [[au FileType javascript ++once lua require("packer.load")({'nvim-colorizer.lua'}, { ft = "javascript" }, _G.packer_plugins)]] -time([[Defining lazy-load filetype autocommands]], false) -vim.cmd("augroup END") -if should_profile then save_profiles() end - -end) - -if not no_errors then - error_msg = error_msg:gsub('"', '\\"') - vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') -end |