~whynothugo/dotfiles

ff707a1a06b9dae271c3a1b8d6c40f57d2aa1605 — Hugo Osvaldo Barrera 20 days ago 91d77a8
nvim: Enable spell checking by default

Now that only comments are spell-checked in code, this gives the best
results in many contexts.
M home/.config/nvim/ftplugin/gitcommit.lua => home/.config/nvim/ftplugin/gitcommit.lua +0 -1
@@ 1,3 1,2 @@
vim.opt_local.spell = true
vim.opt_local.spelllang = "en_gb"
vim.opt_local.textwidth = 72

M home/.config/nvim/ftplugin/mail.lua => home/.config/nvim/ftplugin/mail.lua +0 -1
@@ 1,2 1,1 @@
vim.opt_local.spell = true
vim.opt_local.spelllang = "en_gb,es"

M home/.config/nvim/ftplugin/markdown.lua => home/.config/nvim/ftplugin/markdown.lua +0 -1
@@ 1,2 1,1 @@
vim.opt_local.spell = true
vim.opt_local.spelllang = "en_gb,es"

M home/.config/nvim/ftplugin/tex.lua => home/.config/nvim/ftplugin/tex.lua +0 -1
@@ 1,3 1,2 @@
vim.opt_local.spell = true
vim.opt_local.spelllang = "en_gb,es"
vim.opt_local.textwidth = 0

M home/.config/nvim/init.lua => home/.config/nvim/init.lua +3 -1
@@ 62,13 62,15 @@ require("colorizer").setup()
-- TODO: Implement support for commenting on Vue
-- See https://github.com/tomtom/tcomment_vim/issues/284#issuecomment-1107845552

-- Spelling ===================================================================
vim.opt.spell = true
require("spellsitter").setup() -- Spell checking only on comments.
-- TODO: Disable comments on code block in markdown files.

-- Don't spellcheck quickfix window, and use absolute line numbers on it.
vim.cmd("autocmd FileType qf set nospell nu nornu wrap")

-- Mappings ===================================================================

require("mappings")

-- Appearance =================================================================