mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(autocmds): fixed pattern for autocommand to autoenable wrap and spell in text files (#3975)
## Description Autocommand group lazyvim_wrap_spell was not triggering for all of the specified file types. The autocommand will now trigger for types "text", "plaintex", "typst", "gitcommit", "markdown" as intended. ## Related Issue(s) - Fixes #3973 ## Checklist - [X] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
parent
d6bda24697
commit
927031a2de
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,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 = { "*.txt", "*.tex", "*.typ", "gitcommit", "markdown" },
|
pattern = { "text", "plaintex", "typst", "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