Mercurial > dotfiles
changeset 696:22efd3b888f8
feat: enable spellchecking for select filetypes
using spellsitter to only check comments
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 09 Oct 2022 10:51:43 +0200 |
parents | 83b479436409 |
children | f2984842d6e2 |
files | .chezmoitemplates/init.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Sun Oct 09 10:51:00 2022 +0200 +++ b/.chezmoitemplates/init.lua Sun Oct 09 10:51:43 2022 +0200 @@ -994,6 +994,9 @@ -- Remove netrw buffers au.FileType = { 'netrw', 'setlocal bufhidden=delete' } +-- Enable spelling +au.FileType = { { 'python', 'systemverilog', 'verilog', 'txt', 'lua' }, function() vim.opt_local.spell = true end } + -- Terminal au.group('enter_term', { { 'TermOpen', '*', 'startinsert!' },