vim.cmd [[packadd packer.nvim]] return require('packer').startup(function(use) -- Packer can manage itself use 'wbthomason/packer.nvim' use { 'nvim-telescope/telescope.nvim', tag = '0.1.0', -- or , branch = '0.1.x', requires = { 'nvim-lua/plenary.nvim' } } use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', cond = vim.fn.executable 'make' == 1 } use { 'rose-pine/neovim', as = 'rose-pine', config = function() require('rose-pine').setup({ groups = { background = 'none' }, highlight_groups = { MsgArea = { bg = 'none' }, } }) vim.cmd('colorscheme rose-pine') end } use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }) use 'nvim-treesitter/playground' -- Harpoon is fun use 'ThePrimeagen/harpoon' -- mmm use 'mbbill/undotree' -- git use 'tpope/vim-fugitive' use 'lewis6991/gitsigns.nvim' use { 'nvim-lualine/lualine.nvim', after = 'rose-pine', config = function() local theme = require("lualine.themes.rose-pine") local modes = { "normal", "insert", "visual", "replace", "command", "inactive" } for _, mode in ipairs(modes) do theme[mode].c.bg = "none" end -- Set lualine as statusline -- See `:help lualine.txt` require('lualine').setup { options = { icons_enabled = false, theme = 'rose-pine', component_separators = '|', section_separators = '', }, } end } -- Fancier statusline use 'numToStr/Comment.nvim' -- "gc" to comment visual regions/lines use 'windwp/nvim-ts-autotag' -- autoclose html tags use { 'VonHeikemen/lsp-zero.nvim', requires = { -- LSP Support { 'neovim/nvim-lspconfig' }, -- Required { 'williamboman/mason.nvim' }, -- Optional { 'williamboman/mason-lspconfig.nvim' }, -- Optional -- Autocompletion { 'hrsh7th/nvim-cmp' }, -- Required { 'hrsh7th/cmp-nvim-lsp' }, -- Required { 'hrsh7th/cmp-buffer' }, -- Optional { 'hrsh7th/cmp-path' }, -- Optional { 'saadparwaiz1/cmp_luasnip' }, -- Optional { 'hrsh7th/cmp-nvim-lua' }, -- Optional -- Snippets { 'L3MON4D3/LuaSnip' }, -- Required { 'rafamadriz/friendly-snippets' }, -- Optional } } use { "folke/which-key.nvim", config = function() vim.o.timeout = true vim.o.timeoutlen = 300 require("which-key").setup { -- your configuration comes here -- or leave it empty to use the default settings -- refer to the configuration section below } end } use({ 'Wansmer/treesj', requires = { 'nvim-treesitter' }, }) end)