mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-09 11:32:22 +00:00
neovim/spellcheck: convert to vim.options
This commit is contained in:
parent
66005a51c3
commit
b67759273b
1 changed files with 5 additions and 4 deletions
|
@ -124,7 +124,6 @@ in {
|
||||||
nvim --headless --clean \
|
nvim --headless --clean \
|
||||||
--cmd "mkspell $out/spell/$name.add.spl $spellfile" -Es -n
|
--cmd "mkspell $out/spell/$name.add.spl $spellfile" -Es -n
|
||||||
done
|
done
|
||||||
|
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
mkIf (cfg.extraSpellWords != {}) [
|
mkIf (cfg.extraSpellWords != {}) [
|
||||||
|
@ -133,10 +132,12 @@ in {
|
||||||
compileJoinedSpellfiles.outPath
|
compileJoinedSpellfiles.outPath
|
||||||
];
|
];
|
||||||
|
|
||||||
luaConfigRC.spellcheck = entryAfter ["basic"] ''
|
options = {
|
||||||
vim.opt.spell = true
|
spell = true;
|
||||||
vim.opt.spelllang = ${listToLuaTable cfg.languages}
|
spelllang = cfg.languages;
|
||||||
|
};
|
||||||
|
|
||||||
|
luaConfigRC.spellcheck = entryAfter ["basic"] ''
|
||||||
-- Disable spellchecking for certain filetypes
|
-- Disable spellchecking for certain filetypes
|
||||||
-- as configured by `vim.spellcheck.ignoredFiletypes`
|
-- as configured by `vim.spellcheck.ignoredFiletypes`
|
||||||
vim.api.nvim_create_augroup("nvf_autocmds", {clear = false})
|
vim.api.nvim_create_augroup("nvf_autocmds", {clear = false})
|
||||||
|
|
Loading…
Reference in a new issue