mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-08 11:02: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 \
|
||||
--cmd "mkspell $out/spell/$name.add.spl $spellfile" -Es -n
|
||||
done
|
||||
|
||||
'';
|
||||
in
|
||||
mkIf (cfg.extraSpellWords != {}) [
|
||||
|
@ -133,10 +132,12 @@ in {
|
|||
compileJoinedSpellfiles.outPath
|
||||
];
|
||||
|
||||
luaConfigRC.spellcheck = entryAfter ["basic"] ''
|
||||
vim.opt.spell = true
|
||||
vim.opt.spelllang = ${listToLuaTable cfg.languages}
|
||||
options = {
|
||||
spell = true;
|
||||
spelllang = cfg.languages;
|
||||
};
|
||||
|
||||
luaConfigRC.spellcheck = entryAfter ["basic"] ''
|
||||
-- Disable spellchecking for certain filetypes
|
||||
-- as configured by `vim.spellcheck.ignoredFiletypes`
|
||||
vim.api.nvim_create_augroup("nvf_autocmds", {clear = false})
|
||||
|
|
Loading…
Reference in a new issue