mirror of
https://github.com/m1ngsama/dotfiles.git
synced 2025-12-24 10:51:24 +00:00
14 lines
370 B
Lua
14 lines
370 B
Lua
-- Turn off paste mode when leaving insert
|
|
vim.api.nvim_create_autocmd("InsertLeave", {
|
|
pattern = "*",
|
|
command = "set nopaste",
|
|
})
|
|
|
|
-- Disable the concealing in some file formats
|
|
-- The default conceallevel is 3 in LazyVim
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = { "json", "jsonc", "markdown" },
|
|
callback = function()
|
|
vim.opt.conceallevel = 0
|
|
end,
|
|
})
|