AutoYADM commit: 2024-12-11 17:45:04

This commit is contained in:
Daniel Fichtinger 2024-12-11 17:45:04 -05:00
parent 619dd343d5
commit 5f09c80e13
2 changed files with 12 additions and 9 deletions

View file

@ -0,0 +1,11 @@
local M = {}
M.add = function(lang)
local current = vim.opt.spelllang:get()
if not vim.tbl_contains(current, lang) then
table.insert(current, lang)
end
vim.opt.spelllang = current
end
return M