time reset

This commit is contained in:
2022-11-19 13:46:44 -05:00
parent 6b182fc571
commit c76364784e
5 changed files with 104 additions and 3 deletions
+15 -2
View File
@@ -226,15 +226,28 @@ vim.cmd [[
augroup END
]]
vim.api.nvim_create_autocmd('FileType', {
vim.api.nvim_create_autocmd({ 'FileType',
}, {
pattern = "*",
callback = function()
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" then
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" and
vim.bo.filetype ~= "qf" and vim.bo.filetype ~= "bib" and vim.bo.filetype ~= "" and vim.bo.filetype ~= "pdf"
and vim.bo.filetype ~= "conf" then
vim.cmd [[ :COQnow -s ]]
end
end
})
-- vim.api.nvim_create_autocmd({ 'FileType', 'BufRead', 'BufReadPre', 'BufReadPost', 'BufWrite', 'BufWritePre',
-- 'BufWritePost' }, {
-- pattern = "*",
-- callback = function()
-- if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" then
-- vim.cmd [[ :COQnow -s ]]
-- end
-- end
-- })
-- vim.cmd [[
-- augroup disabletexlsp
-- autocmd!