-- Make sure to install packer via the AUR -- $ yay -S nvim-packer-git local packer_status_ok, packer = pcall(require, "packer") if not packer_status_ok then return end vim.cmd [[packadd packer.nvim]] packer.startup { function(use) -- -- General -- -- General Lua functions use { 'nvim-lua/plenary.nvim' } use { 'nvim-lua/popup.nvim' } -- General optimizations use { 'lewis6991/impatient.nvim' } use { 'nathom/filetype.nvim', config = function() vim.g.did_load_filetypes = 1 end } -- General Assets/Resources -- TODO: Currently, you have to run :PackerSync in order to get the colors working... -- Actually was :PackerCompile. -- This makes me think there was just a dependency problem somewhere here... -- Now, the config may be bjorked use { 'kyazdani42/nvim-web-devicons', config = function() require'configs.icons'.config() end } -- -- Style -- -- Colorscheme (see autocommand below) use { 'lunarvim/darkplus.nvim' } -- Buffer Line use { 'moll/vim-bbye' } -- Close buffers softly use { 'akinsho/bufferline.nvim', requires = { { 'kyazdani42/nvim-web-devicons' } }, config = function() require'configs.bufferline'.config() end } -- Status Line use { 'nvim-lualine/lualine.nvim', config = function() require'configs.lualine'.config() end } -- -- Navigation -- -- NvimTree use { 'kyazdani42/nvim-tree.lua', requires = { { 'kyazdani42/nvim-web-devicons' } }, config = function() require'configs.nvim-tree'.config() end } -- Telescope -- -- Treesitter -- use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate', event= 'BufRead', config = function() require'configs.treesitter'.config() end } -- Auto-close tags use { 'windwp/nvim-ts-autotag', after='nvim-treesitter' } -- Context-based auto commenting use { 'JoosepAlviste/nvim-ts-context-commentstring', after='nvim-treesitter' } -- -- LSP -- -- -- Auto Complete -- -- -- Quality of Life -- -- Commenting use { 'numToStr/Comment.nvim', config = function() require'configs.comment'.config() end } -- Automatically colorize color strings (#f1b8f1) use { 'norcalli/nvim-colorizer.lua', config = function() require'configs.colorizer'.config() end } -- Remember your last place when opening a file use { 'farmergreg/vim-lastplace' } end, config = { display = { open_fn = function() return require'packer.util'.float { border = 'rounded' } end } } } -- For some reason, setting the color scheme has to be in an autocommand vim.cmd([[ augroup colorscheme autocmd! autocmd VimEnter * colorscheme darkplus augroup end ]])