lazy load gitsigns
This commit is contained in:
parent
4c96c28c2d
commit
247e6e06c5
1
init.lua
1
init.lua
@ -28,7 +28,6 @@ require "highlights"
|
|||||||
require "mappings"
|
require "mappings"
|
||||||
require "telescope-nvim"
|
require "telescope-nvim"
|
||||||
require "file-icons"
|
require "file-icons"
|
||||||
require "gitsigns-nvim"
|
|
||||||
|
|
||||||
-- hide line numbers , statusline in specific buffers!
|
-- hide line numbers , statusline in specific buffers!
|
||||||
vim.api.nvim_exec(
|
vim.api.nvim_exec(
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
local M = {}
|
||||||
|
|
||||||
|
M.config = function()
|
||||||
require("gitsigns").setup {
|
require("gitsigns").setup {
|
||||||
signs = {
|
signs = {
|
||||||
add = {hl = "DiffAdd", text = "▌", numhl = "GitSignsAddNr"},
|
add = {hl = "DiffAdd", text = "▌", numhl = "GitSignsAddNr"},
|
||||||
@ -25,3 +28,6 @@ require("gitsigns").setup {
|
|||||||
sign_priority = 5,
|
sign_priority = 5,
|
||||||
status_formatter = nil -- Use default
|
status_formatter = nil -- Use default
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
@ -45,7 +45,14 @@ return packer.startup(
|
|||||||
use "nvim-lua/plenary.nvim"
|
use "nvim-lua/plenary.nvim"
|
||||||
use "kabouzeid/nvim-lspinstall"
|
use "kabouzeid/nvim-lspinstall"
|
||||||
|
|
||||||
use "lewis6991/gitsigns.nvim"
|
use {
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
config = function()
|
||||||
|
require("gitsigns-nvim").config()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
use "akinsho/nvim-bufferline.lua"
|
use "akinsho/nvim-bufferline.lua"
|
||||||
use "glepnir/galaxyline.nvim"
|
use "glepnir/galaxyline.nvim"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user