refactor(nvim): use autocmd to set neogit settings

This commit is contained in:
Price Hiller 2023-07-14 17:49:17 -05:00
parent 808543fffd
commit 1bd6df4840
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
3 changed files with 18 additions and 9 deletions

View File

@ -1 +0,0 @@
vim.opt_local.list = false

View File

@ -0,0 +1,15 @@
require("neogit").setup({
disable_insert_on_commit = "auto",
disable_commit_confirmation = true,
use_telescope = true,
integrations = {
diffview = true,
},
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "*Neogit*",
callback = function ()
vim.opt_local.list = false
end
})

View File

@ -468,14 +468,9 @@ lazy.setup({
"NeogitOrg/neogit",
dev = true,
lazy = true,
opts = {
disable_insert_on_commit = "auto",
disable_commit_confirmation = true,
use_telescope = true,
integrations = {
diffview = true,
},
},
config = function()
require("plugins.configs.neogit")
end,
dependencies = {
{
"sindrets/diffview.nvim",