feat(jujutsu): Add support for jj description

- Snippets
- Spellchecking
- Grammar checking
This commit is contained in:
Fabrice Mouhartem 2024-11-10 15:03:48 +01:00
parent 3242adf2ed
commit c10feb7712
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
3 changed files with 14 additions and 0 deletions

View File

@ -72,3 +72,15 @@ vim.api.nvim_create_autocmd("FileType", {
end, 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,
})

View File

@ -8,6 +8,7 @@ luasnip.config.setup {
updateevents = "TextChanged,TextChangedI", updateevents = "TextChanged,TextChangedI",
enable_autosnippets = true, enable_autosnippets = true,
} }
luasnip.filetype_extend("jj", {"gitcommit"})
local has_words_before = function() local has_words_before = function()
unpack = unpack or table.unpack unpack = unpack or table.unpack

View File

@ -105,6 +105,7 @@ local servers = {
'latex', 'latex',
'norg', 'norg',
'gitcommit', 'gitcommit',
'jj',
'rst', 'rst',
'typst' 'typst'
}, },