Feat: replace signify by gitsigns
This commit is contained in:
parent
01d09bc9c0
commit
1734908df0
1
nvim/.config/nvim/lua/config/gitsigns.lua
Normal file
1
nvim/.config/nvim/lua/config/gitsigns.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
require('gitsigns').setup {}
|
@ -3,16 +3,16 @@ local fn = vim.fn
|
|||||||
-- Automatically install packer
|
-- Automatically install packer
|
||||||
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
|
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
PACKER_BOOTSTRAP = fn.system {
|
PACKER_BOOTSTRAP = fn.system {
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--depth",
|
"--depth",
|
||||||
"1",
|
"1",
|
||||||
"https://github.com/wbthomason/packer.nvim",
|
"https://github.com/wbthomason/packer.nvim",
|
||||||
install_path,
|
install_path,
|
||||||
}
|
}
|
||||||
print "Installing packer close and reopen Neovim..."
|
print "Installing packer close and reopen Neovim..."
|
||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Autocommand that reloads neovim whenever you save the plugins.lua file
|
-- 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
|
-- Use a protected call so we don't error out on first use
|
||||||
local status_ok, packer = pcall(require, "packer")
|
local status_ok, packer = pcall(require, "packer")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Have packer use a popup window
|
-- Have packer use a popup window
|
||||||
packer.init {
|
packer.init {
|
||||||
display = {
|
display = {
|
||||||
open_fn = function()
|
open_fn = function()
|
||||||
return require("packer.util").float { border = "rounded" }
|
return require("packer.util").float { border = "rounded" }
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return packer.startup(function(use)
|
return packer.startup(function(use)
|
||||||
@ -50,7 +50,11 @@ return packer.startup(function(use)
|
|||||||
}
|
}
|
||||||
|
|
||||||
use 'tpope/vim-fugitive'
|
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-surround'
|
||||||
use 'tpope/vim-repeat'
|
use 'tpope/vim-repeat'
|
||||||
@ -72,10 +76,10 @@ return packer.startup(function(use)
|
|||||||
-- 'rafamadriz/friendly-snippets',
|
-- 'rafamadriz/friendly-snippets',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
use {'hrsh7th/cmp-vsnip', after = 'nvim-cmp'}
|
use { 'hrsh7th/cmp-vsnip', after = 'nvim-cmp' }
|
||||||
use {'hrsh7th/cmp-buffer', after = 'nvim-cmp'}
|
use { 'hrsh7th/cmp-buffer', after = 'nvim-cmp' }
|
||||||
use {'hrsh7th/cmp-path', after = 'nvim-cmp'}
|
use { 'hrsh7th/cmp-path', after = 'nvim-cmp' }
|
||||||
use {'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp'}
|
use { 'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp' }
|
||||||
-- use {'f3fora/cmp-spell', after = 'nvim-cmp'}
|
-- use {'f3fora/cmp-spell', after = 'nvim-cmp'}
|
||||||
|
|
||||||
-- for formatters and linters
|
-- for formatters and linters
|
||||||
@ -89,10 +93,10 @@ return packer.startup(function(use)
|
|||||||
use {
|
use {
|
||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
config = [[require('config.telescope')]],
|
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 { "nvim-telescope/telescope-file-browser.nvim" }
|
||||||
|
|
||||||
use {
|
use {
|
||||||
@ -122,7 +126,7 @@ return packer.startup(function(use)
|
|||||||
|
|
||||||
use {
|
use {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
config=[[require('config.treesitter')]],
|
config = [[require('config.treesitter')]],
|
||||||
run = ':TSUpdate',
|
run = ':TSUpdate',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user