require('plugin') -- packer plugin-manager local plugins = { 'cmp', -- lsp setup 'mason', -- lsp installer 'mason.tools', -- auto lsp installer 'symbols-outline', -- symbols 'colorizer', -- render colors 'lualine', -- status line 'treesitter', -- treesitter settings 'which-key', -- show keybinds 'gitsigns', -- show `git diff` in line-number 'telescope', -- Telescope 'undotree', -- undotree 'venn', -- draw ascii diagram 'truezen', -- zen-mode: focus 'autopairs', -- tmp {{{ -- 'lsp', -- lsp usage configs -- 'null-ls', -- null-ls -- 'cmp.bashls', -- 'cmp.clangd', -- 'cmp.gopls', -- 'cmp.html-css', -- 'cmp.lua_ls', -- 'cmp.pyright', -- 'cmp.texlab', -- 'nvimtree', -- nvim-tree -- 'toggleterm', -- ToggleTerm -- 'alpha', -- greetings at empty buffers -- 'comment', -- comment handler config ---- these modules are in `lua/module/.tmp/` -- 'trouble', -- debug adapter protocol -- 'harpoon', -- new filebuffer -- 'git-worktree', -- git worktree -- 'neotree', -- NeoTree -- 'notify', -- notification manager -- }}} } local function plugthem(pluglist) for _,name in ipairs(pluglist) do local plugname = 'plugin.'..name local stat = pcall(require, plugname) if stat == false then vim.notify(name..' is not installed or has a syntax error', 3, {title = 'plugthem()'}) -- vim.cmd ':PackerInstall'{{{ -- if name == 'mason' then -- vim.cmd ':MasonUpdate' -- elseif name == 'treesitter' then -- vim.cmd ':TSUpdate' -- end}}} else require(plugname) end end end plugthem(plugins)