AutoYADM commit: 2024-12-26 15:30:02

This commit is contained in:
Daniel Fichtinger 2024-12-26 15:30:02 -05:00
parent 461b155d45
commit 9582c927b3
3 changed files with 4 additions and 18 deletions

View file

@ -7,21 +7,6 @@
-- but disable it for normal mode commands like `o`
-- vim.g.prev_conceallevel = 0
-- 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 = "*",
buffer = 0,

View file

@ -21,6 +21,10 @@ vim.keymap.set({ "i", "n" }, "<C-t>", "<Nop>")
-- vim.notify("test")
-- end)
map({ "n", "v" }, "\\", function()
LazyVim.format({ force = true })
end, { desc = "Format" })
map({ "n", "i", "x", "o" }, "<C-c>", "<Esc>", { noremap = true, desc = "Escape" })
map({ "n", "i", "x", "o" }, "<M-c>", "<Esc>", { noremap = true, desc = "Escape" })