nvim: improve git autocmd
- lcd to preoject dir in neogit windows - nolist in fugitive
This commit is contained in:
parent
20be69f12e
commit
d43331492e
@ -33,11 +33,14 @@ vim.api.nvim_create_autocmd({ 'FileType' }, {
|
||||
callback = require('autosplit')
|
||||
})
|
||||
|
||||
-- don't show dots for spaces in Neogit buffers
|
||||
-- fugitive and Neogit buffers
|
||||
vim.api.nvim_create_autocmd({ 'FileType' }, {
|
||||
group = gitgroup,
|
||||
pattern = { 'Neogit*' },
|
||||
command = [[set nolist]]
|
||||
pattern = { 'git', 'Neogit*' },
|
||||
callback = function()
|
||||
vim.o.list = false
|
||||
vim.cmd.lcd(require('my.functions').get_project_root())
|
||||
end
|
||||
})
|
||||
|
||||
require('gitsigns').setup({
|
||||
|
Loading…
x
Reference in New Issue
Block a user