add(nvim): fugitive toggle

This commit is contained in:
Léana 江 2023-04-28 23:42:28 +02:00 committed by Léana 江
parent 978f150401
commit df60482da3
5 changed files with 32 additions and 17 deletions

View file

@ -38,7 +38,7 @@ vim.api.nvim_create_autocmd("TextYankPost", {
end,
})
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.md", "*.tex" },
command = "setlocal wrap"
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown", "tex" },
callback = function() vim.opt_local.wrap = true end,
})