mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-31 23:19:58 +02:00
feat(autocmds): set spell and wrap for markdown
This commit is contained in:
parent
e42337f02a
commit
8174821b71
1 changed files with 9 additions and 1 deletions
|
@ -22,7 +22,7 @@ vim.api.nvim_create_autocmd("BufReadPost", {
|
|||
})
|
||||
|
||||
-- close some filetypes with <q>
|
||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = {
|
||||
"qf",
|
||||
"help",
|
||||
|
@ -39,3 +39,11 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
|
|||
vim.keymap.set("n", "q", "<cmd>close<cr>", { buffer = event.buf, silent = true })
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "gitcommit", "markdown" },
|
||||
callback = function()
|
||||
vim.opt_local.wrap = true
|
||||
vim.opt_local.spell = true
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue