Skip to content

Commit

Permalink
feat(autocmds): dont use conceal for json files
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 21, 2024
1 parent 979bb95 commit 23fe52a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/lazyvim/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ vim.api.nvim_create_autocmd("FileType", {
end,
})

-- Fix conceallevel for json files
vim.api.nvim_create_autocmd({ "FileType" }, {
group = augroup("json_conceal"),
pattern = { "json", "jsonc", "json5" },
callback = function()
vim.wo.conceallevel = 0
end,
})

-- Auto create dir when saving a file, in case some intermediate directory does not exist
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
group = augroup("auto_create_dir"),
Expand Down

0 comments on commit 23fe52a

Please sign in to comment.