feat(jujutsu): Add support for jj description
- Snippets - Spellchecking - Grammar checking
This commit is contained in:
parent
3242adf2ed
commit
c10feb7712
@ -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,
|
||||
})
|
||||
|
||||
|
@ -8,6 +8,7 @@ luasnip.config.setup {
|
||||
updateevents = "TextChanged,TextChangedI",
|
||||
enable_autosnippets = true,
|
||||
}
|
||||
luasnip.filetype_extend("jj", {"gitcommit"})
|
||||
|
||||
local has_words_before = function()
|
||||
unpack = unpack or table.unpack
|
||||
|
@ -105,6 +105,7 @@ local servers = {
|
||||
'latex',
|
||||
'norg',
|
||||
'gitcommit',
|
||||
'jj',
|
||||
'rst',
|
||||
'typst'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user