AutoYADM commit: 2024-12-26 15:15:02
This commit is contained in:
parent
a613baa1ee
commit
461b155d45
3 changed files with 18 additions and 25 deletions
|
@ -7,14 +7,20 @@
|
|||
-- but disable it for normal mode commands like `o`
|
||||
-- vim.g.prev_conceallevel = 0
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "tex",
|
||||
callback = function()
|
||||
dd(vim.b.autoformat)
|
||||
vim.b.autoformat = false
|
||||
dd(vim.b.autoformat)
|
||||
end,
|
||||
})
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- -- pattern = "*.tex",
|
||||
-- pattern = "tex",
|
||||
-- callback = function(args)
|
||||
-- local buf = args.buf
|
||||
-- local b = vim.b[buf]
|
||||
-- dd(b.autoformat)
|
||||
-- b.autoformat = false
|
||||
-- dd(b.autoformat)
|
||||
-- vim.keymap.set("n", "<leader>test", function ()
|
||||
-- dd(b.autoformat)
|
||||
-- end)
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "InsertLeave", "FileType" }, {
|
||||
-- pattern = "*",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue