refactor(nvim): use autocmd to set neogit settings
This commit is contained in:
parent
808543fffd
commit
1bd6df4840
@ -1 +0,0 @@
|
||||
vim.opt_local.list = false
|
15
dots/.config/nvim/lua/plugins/configs/neogit.lua
Normal file
15
dots/.config/nvim/lua/plugins/configs/neogit.lua
Normal 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
|
||||
})
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user