-- This file can be loaded by calling `lua require('plugins')` from your init.vim -- Install Packer if not installed local execute = vim.api.nvim_command local fn = vim.fn local install_path = '/home/mario/.local/share/nvim/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({ 'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path }) execute 'packadd packer.nvim' end -- Plugins vim.cmd('packadd termdebug') return require('packer').startup(function(use) -- Packer can manage itself use 'wbthomason/packer.nvim' use 'lewis6991/impatient.nvim' -- LSP configuration use 'neovim/nvim-lspconfig' use 'simrat39/rust-tools.nvim' use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' } use { 'nvim-treesitter/nvim-treesitter-textobjects', after = 'nvim-treesitter' } use 'nvim-treesitter/nvim-treesitter-context' use { 'nvim-treesitter/playground', requires = { 'nvim-treesitter/nvim-treesitter' }, cmd = 'TSPlaygroundToggle', config = function() require('nvim-treesitter.configs').setup({}) end } use { 'fatih/vim-go', ft = 'go' } use 'lewis6991/gitsigns.nvim' -- Code completion use 'hrsh7th/nvim-cmp' use 'hrsh7th/cmp-nvim-lsp' use 'hrsh7th/cmp-nvim-lua' use { 'saadparwaiz1/cmp_luasnip', requires = 'L3MON4D3/LuaSnip' } -- Auto pairs use { 'kylechui/nvim-surround', config = function() require('nvim-surround').setup() end } -- Insert comments easily use 'b3nj5m1n/kommentary' -- Theme use 'nyoom-engineering/oxocarbon.nvim' use { 'vigoux/notifier.nvim', config = function() require 'notifier'.setup {} end } -- Navigation use { 'nvim-telescope/telescope.nvim', requires = 'nvim-lua/plenary.nvim' } use { 'ThePrimeagen/harpoon', requires = 'nvim-lua/plenary.nvim' } end)