mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
feat(autocmd): enable spell for typst and text file (#3505)
This commit is contained in:
parent
276b8032be
commit
8ca7245129
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||||
-- wrap and check for spell in text filetypes
|
-- wrap and check for spell in text filetypes
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
group = augroup("wrap_spell"),
|
group = augroup("wrap_spell"),
|
||||||
pattern = { "gitcommit", "markdown" },
|
pattern = { "*.txt", "*.tex", "*.typ", "gitcommit", "markdown" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.opt_local.wrap = true
|
vim.opt_local.wrap = true
|
||||||
vim.opt_local.spell = true
|
vim.opt_local.spell = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue