Fix spelling calls

This commit is contained in:
Fabrice Mouhartem 2023-12-25 16:09:06 +01:00
parent c4e6cea2bd
commit d7244d1e6d
2 changed files with 10 additions and 10 deletions

View File

@ -9,6 +9,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
vim.o.filetype = 'pandoc'
require('luasnip').filetype_extend("pandoc", { "markdown" })
vim.o.spell = true
require('spelling').spell_keymap()
vim.o.spelllang = 'en'
vim.o.formatoptions = "qj"
-- email commands: my/msy to paste the html inside the clipboard
@ -39,7 +40,7 @@ vim.api.nvim_create_autocmd({ "OptionSet" }, {
local texgroup = vim.api.nvim_create_augroup("latex", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = { "latex" },
pattern = { "latex", "tex" },
group = texgroup,
callback = function()
-- vimtex configuration
@ -53,5 +54,6 @@ vim.api.nvim_create_autocmd("FileType", {
vim.o.foldexpr = 'vimtex#fold#level(v:lnum)'
vim.o.foldtext = 'vimtex#fold#text()'
vim.o.spell = true
require('spelling').spell_keymap()
end,
})

View File

@ -16,6 +16,4 @@ M.spell_keymap = function()
end
end
M.spell_keymap()
return M