mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 21:40:37 +00:00
make gitsigns plugin load on dir containing .git only
This commit is contained in:
parent
2f61dbfcd8
commit
bf3e9a323f
1 changed files with 4 additions and 3 deletions
|
@ -60,14 +60,15 @@ return packer.startup(function()
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
after = "bufferline.nvim",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- git stuff
|
-- git stuff
|
||||||
use {
|
use {
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
disable = not plugin_status.gitsigns,
|
disable = not plugin_status.gitsigns,
|
||||||
after = "plenary.nvim",
|
cond = function()
|
||||||
|
return vim.fn.isdirectory ".git" == 1
|
||||||
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.configs.gitsigns"
|
require "plugins.configs.gitsigns"
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue