diff --git a/nvim/.config/nvim/lua/config/gitsigns.lua b/nvim/.config/nvim/lua/config/gitsigns.lua new file mode 100644 index 0000000..53d1a1e --- /dev/null +++ b/nvim/.config/nvim/lua/config/gitsigns.lua @@ -0,0 +1 @@ +require('gitsigns').setup {} diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index f551b23..ce25149 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -3,16 +3,16 @@ local fn = vim.fn -- Automatically install packer local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then - PACKER_BOOTSTRAP = fn.system { - "git", - "clone", - "--depth", - "1", - "https://github.com/wbthomason/packer.nvim", - install_path, - } - print "Installing packer close and reopen Neovim..." - vim.cmd [[packadd packer.nvim]] + PACKER_BOOTSTRAP = fn.system { + "git", + "clone", + "--depth", + "1", + "https://github.com/wbthomason/packer.nvim", + install_path, + } + print "Installing packer close and reopen Neovim..." + vim.cmd [[packadd packer.nvim]] end -- Autocommand that reloads neovim whenever you save the plugins.lua file @@ -26,16 +26,16 @@ vim.cmd [[ -- Use a protected call so we don't error out on first use local status_ok, packer = pcall(require, "packer") if not status_ok then - return + return end -- Have packer use a popup window packer.init { - display = { - open_fn = function() - return require("packer.util").float { border = "rounded" } - end, - }, + display = { + open_fn = function() + return require("packer.util").float { border = "rounded" } + end, + }, } return packer.startup(function(use) @@ -50,7 +50,11 @@ return packer.startup(function(use) } use 'tpope/vim-fugitive' - use 'mhinz/vim-signify' + -- use 'mhinz/vim-signify' + use { + 'lewis6991/gitsigns.nvim', + config = [[require('config.gitsigns')]], + } use 'tpope/vim-surround' use 'tpope/vim-repeat' @@ -72,10 +76,10 @@ return packer.startup(function(use) -- 'rafamadriz/friendly-snippets', }, } - use {'hrsh7th/cmp-vsnip', after = 'nvim-cmp'} - use {'hrsh7th/cmp-buffer', after = 'nvim-cmp'} - use {'hrsh7th/cmp-path', after = 'nvim-cmp'} - use {'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp'} + use { 'hrsh7th/cmp-vsnip', after = 'nvim-cmp' } + use { 'hrsh7th/cmp-buffer', after = 'nvim-cmp' } + use { 'hrsh7th/cmp-path', after = 'nvim-cmp' } + use { 'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp' } -- use {'f3fora/cmp-spell', after = 'nvim-cmp'} -- for formatters and linters @@ -89,10 +93,10 @@ return packer.startup(function(use) use { 'nvim-telescope/telescope.nvim', config = [[require('config.telescope')]], - requires = { 'nvim-lua/plenary.nvim'} + requires = { 'nvim-lua/plenary.nvim' } } - use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } + use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } use { "nvim-telescope/telescope-file-browser.nvim" } use { @@ -100,7 +104,7 @@ return packer.startup(function(use) config = [[require('config.vimtex')]], } - -- Highlight on Yank + -- Highlight on Yank use 'machakann/vim-highlightedyank' -- Autoclose parenthesis -- use 'jiangmiao/auto-pairs' @@ -122,7 +126,7 @@ return packer.startup(function(use) use { 'nvim-treesitter/nvim-treesitter', - config=[[require('config.treesitter')]], + config = [[require('config.treesitter')]], run = ':TSUpdate', }