AutoYADM commit: 2024-12-26 15:30:02
This commit is contained in:
parent
461b155d45
commit
9582c927b3
3 changed files with 4 additions and 18 deletions
|
@ -1,4 +1 @@
|
||||||
vim.b.autoformat = false
|
vim.b.autoformat = false
|
||||||
vim.keymap.set("n", "<leader>test", function()
|
|
||||||
dd(vim.b.autoformat)
|
|
||||||
end)
|
|
||||||
|
|
|
@ -7,21 +7,6 @@
|
||||||
-- but disable it for normal mode commands like `o`
|
-- but disable it for normal mode commands like `o`
|
||||||
-- vim.g.prev_conceallevel = 0
|
-- 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" }, {
|
vim.api.nvim_create_autocmd({ "InsertLeave", "FileType" }, {
|
||||||
-- pattern = "*",
|
-- pattern = "*",
|
||||||
buffer = 0,
|
buffer = 0,
|
||||||
|
|
|
@ -21,6 +21,10 @@ vim.keymap.set({ "i", "n" }, "<C-t>", "<Nop>")
|
||||||
-- vim.notify("test")
|
-- vim.notify("test")
|
||||||
-- end)
|
-- 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" }, "<C-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
||||||
map({ "n", "i", "x", "o" }, "<M-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
map({ "n", "i", "x", "o" }, "<M-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue