1
0
Fork 0

nvim: set default spelllang, include it in modeline

This commit is contained in:
tastytea 2022-09-09 05:32:20 +02:00
parent 392ebc871d
commit 14ad7d9710
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ function M.insert_modeline()
(vim.o.expandtab and ' et' or ' noet'),
' tw=' .. vim.o.textwidth,
' ft=' .. vim.o.filetype,
(vim.o.spell and ' spell' .. ' spl=' .. vim.o.spelllang or ''),
':',
space_maybe
}

View File

@ -25,6 +25,7 @@ local options = {
splitright = true, -- split vertical window right
shada = [['1000,<50,s10,h]], -- save last 1000 files
title = true, -- set terminal title
spelllang = 'en', -- words from all regions
}
for k, v in pairs(options) do
vim.o[k] = v