···3636 vim.fn.mkdir(dir, "p")
3737 end
3838end)
3939+4040+vim.augroup("editor:ft:help", true)("FileType", "help", {
4141+ desc = "allow editing local help files",
4242+}, function(ev)
4343+ if vim.fs.relpath(vim.fn.getcwd(), vim.fn.bufname(ev.buf)) then
4444+ vim._with({ buf = ev.buf }, function()
4545+ vim.bo.buftype = ""
4646+ vim.bo.readonly = false
4747+ vim.bo.modifiable = true
4848+ -- assuming there is only one window with the open buffer
4949+ vim.wo.conceallevel = 0
5050+ end)
5151+ end
5252+end)