diff .chezmoitemplates/init.lua @ 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 989cedcc0a38
children fb751a7650e9
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!' },