From dffb1d99cbbb1368bec12cd23230538efc053e1b Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 3 Dec 2022 19:15:24 +0100 Subject: [PATCH] feat nvim: add plugins --- nvim/.config/nvim/lua/plugins.lua | 279 +++++++++++++++--------------- 1 file changed, 140 insertions(+), 139 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 3c0a099..5dacd05 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -30,147 +30,148 @@ local packer_bootstrap = ensure_packer() return require('packer').startup { - function(use) - use 'wbthomason/packer.nvim' + function(use) + use 'wbthomason/packer.nvim' + use 'lewis6991/impatient.nvim' + use 'nvim-lua/plenary.nvim' + use 'tpope/vim-eunuch' + --LSP + use({ "https://github.com/neovim/nvim-lspconfig" }) + use({ "https://github.com/williamboman/mason-lspconfig.nvim" }) + use({ "https://github.com/williamboman/mason.nvim", + config = function() + end + }) + use({ "https://github.com/jose-elias-alvarez/null-ls.nvim", + config = function() + require('plugins.lsp.null-ls') + end + }) - use { - 'lewis6991/gitsigns.nvim', - config = function() - require('plugins.gitsign') - end - } + use { + 'iamcco/markdown-preview.nvim', + run = function() + vim.fn['mkdp#util#install'](0) + end, + config = function() + end, + } - use 'ellisonleao/gruvbox.nvim' - -- Show indent line - use { - "lukas-reineke/indent-blankline.nvim", - config = function() - require('plugins.indent-blankline') + + -- telescope + use { + 'nvim-telescope/telescope.nvim', + } + use { + 'nvim-telescope/telescope-fzf-native.nvim', + run = 'make', + config = function() + require('plugins.telescope') + end + } + + + use { + 'zhou13/vim-easyescape', + config = function() + require('plugins.vim-easyescape') + end + } + + + + -- Autocomplete + use 'hrsh7th/cmp-nvim-lsp' + use 'hrsh7th/cmp-buffer' + use 'hrsh7th/cmp-cmdline' + use 'hrsh7th/cmp-path' + use 'hrsh7th/cmp-calc' + use 'hrsh7th/cmp-git' + use 'hrsh7th/cmp-nvim-lua' + use 'L3MON4D3/LuaSnip' + use 'rafamadriz/friendly-snippets' + use 'onsails/lspkind-nvim' + + + use({ + 'hrsh7th/nvim-cmp', + config = function() + require('plugins.cmp') + end + }) + + -- UI + use 'ellisonleao/gruvbox.nvim' + use { + "lukas-reineke/indent-blankline.nvim", + config = function() + require('plugins.indent-blankline') + + end + } + + use 'kyazdani42/nvim-web-devicons' + use { + 'akinsho/bufferline.nvim', + config = function() + require('plugins.bufferline') + end + } + use({ + "kyazdani42/nvim-tree.lua", + config = function() + require('plugins.nvim-tree') + end, + }) + + use 'AckslD/nvim-whichkey-setup.lua' + use({ + "folke/which-key.nvim", + config = function() + require('plugins.which-key') + end, + }) + use({ 'nvim-lualine/lualine.nvim', + config = function() + require('plugins.lualine') + end + }) + + --GIT + use { + 'lewis6991/gitsigns.nvim', + config = function() + require('plugins.gitsign') + end + } + + + use { + 'TimUntersberger/neogit', + config = function() + require('plugins.neogit') + end + } + use({ + 'windwp/nvim-autopairs', + config = function() + require('plugins.autopairs') + end + }) + + --treesitter + use 'RRethy/nvim-treesitter-endwise' + use({ + 'nvim-treesitter/nvim-treesitter', + config = function() + require('plugins.treesitter') + end + }) + + + if packer_bootstrap then + require('packer').sync() + end end - } - - --LSP - use({ "https://github.com/neovim/nvim-lspconfig"}) - use({ "https://github.com/williamboman/mason-lspconfig.nvim"}) - use({ "https://github.com/williamboman/mason.nvim", - config= function() - end - }) - use({ "https://github.com/jose-elias-alvarez/null-ls.nvim", - config= function() - require('plugins.lsp.null-ls') - end - }) - - use { - 'iamcco/markdown-preview.nvim', - run = function() - vim.fn['mkdp#util#install'](0) - end, - config = function() - end, - } - - - - -- telescope - use { - 'nvim-telescope/telescope.nvim', - } - use { - 'nvim-telescope/telescope-fzf-native.nvim', - run = 'make', - config = function() - require ('plugins.telescope') - end - } - - - use { - 'zhou13/vim-easyescape', - config = function() - require('plugins.vim-easyescape') - end - } - - - - -- Autocomplete - use 'hrsh7th/cmp-nvim-lsp' - use 'hrsh7th/cmp-buffer' - use 'hrsh7th/cmp-cmdline' - use 'hrsh7th/cmp-path' - use 'hrsh7th/cmp-calc' - use 'hrsh7th/cmp-git' - use 'hrsh7th/cmp-nvim-lua' - use 'L3MON4D3/LuaSnip' - use 'rafamadriz/friendly-snippets' - use 'onsails/lspkind-nvim' - - - use({ - 'hrsh7th/nvim-cmp', - config= function() - require('plugins.cmp') - end - }) - - -- UI - use 'kyazdani42/nvim-web-devicons' - use { - 'akinsho/bufferline.nvim', - config = function() - require('plugins.bufferline') - end - } - use({ - "kyazdani42/nvim-tree.lua", - config = function() - require('plugins.nvim-tree') - end, - }) - - use 'AckslD/nvim-whichkey-setup.lua' - use({ - "folke/which-key.nvim", - config = function() - require('plugins.which-key') - end, - }) - use ({'nvim-lualine/lualine.nvim', - config=function () - require('plugins.lualine') - end - }) - - --use 'freitass/todo.txt-vim' - use 'nvim-lua/plenary.nvim' - use { - 'TimUntersberger/neogit', - config = function() - require('plugins.neogit') - end - } - use ({ - 'windwp/nvim-autopairs', - config = function() - require('plugins.autopairs') - end - }) - - --treesitter - use 'RRethy/nvim-treesitter-endwise' - use({ - 'nvim-treesitter/nvim-treesitter', - config = function() - require('plugins.treesitter') - end - }) - - - if packer_bootstrap then - require('packer').sync() - end - end }