feat(jujutsu): Add support for jj description

- Snippets
- Spellchecking
- Grammar checking
This commit is contained in:
2024-11-10 15:03:48 +01:00
parent 3242adf2ed
commit c10feb7712
3 changed files with 14 additions and 0 deletions

View File

@ -72,3 +72,15 @@ vim.api.nvim_create_autocmd("FileType", {
end,
})
-- Jujutsu spellchecking
local jjgroup = vim.api.nvim_create_augroup("jujustu", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = { "jj" },
group = jjgroup,
callback = function()
vim.o.spell = true
vim.o.spelllang = "en"
require('spelling').spell_keymap()
end,
})