nvim: set default spelllang, include it in modeline
This commit is contained in:
parent
392ebc871d
commit
14ad7d9710
|
@ -43,6 +43,7 @@ function M.insert_modeline()
|
||||||
(vim.o.expandtab and ' et' or ' noet'),
|
(vim.o.expandtab and ' et' or ' noet'),
|
||||||
' tw=' .. vim.o.textwidth,
|
' tw=' .. vim.o.textwidth,
|
||||||
' ft=' .. vim.o.filetype,
|
' ft=' .. vim.o.filetype,
|
||||||
|
(vim.o.spell and ' spell' .. ' spl=' .. vim.o.spelllang or ''),
|
||||||
':',
|
':',
|
||||||
space_maybe
|
space_maybe
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ local options = {
|
||||||
splitright = true, -- split vertical window right
|
splitright = true, -- split vertical window right
|
||||||
shada = [['1000,<50,s10,h]], -- save last 1000 files
|
shada = [['1000,<50,s10,h]], -- save last 1000 files
|
||||||
title = true, -- set terminal title
|
title = true, -- set terminal title
|
||||||
|
spelllang = 'en', -- words from all regions
|
||||||
}
|
}
|
||||||
for k, v in pairs(options) do
|
for k, v in pairs(options) do
|
||||||
vim.o[k] = v
|
vim.o[k] = v
|
||||||
|
|
Loading…
Reference in New Issue