Co-authored-by: Devin Haska <wonderfulfrog@users.noreply.github.com>
This commit is contained in:
Devin Haska 2024-05-10 11:26:26 -07:00 committed by GitHub
parent 8591814ca5
commit 10e4a3af37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 564 additions and 430 deletions

View file

@ -1,21 +1,12 @@
local function augroup(name)
return vim.api.nvim_create_augroup("wf_" .. name, { clear = true })
return vim.api.nvim_create_augroup("wf_" .. name, { clear = true })
end
vim.api.nvim_create_autocmd({ "FileType" }, {
group = augroup("spellcheck"),
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.spell = true
vim.opt_local.wrap = true
end,
group = augroup("spellcheck"),
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.spell = true
vim.opt_local.wrap = true
end,
})
-- vim.api.nvim_create_autocmd({ "FileType" }, {
-- group = augroup("close_with_q"),
-- pattern = { "fugitive", "git", "gitcommit" },
-- callback = function(event)
-- vim.bo[event.buf].buflisted = false
-- vim.keymap.set("n", "q", "<cmd>close<cr>", { buffer = event.buf, silent = true })
-- end,
-- })