Fix markdown textobj dependency

Move it to be lazy on Pencil
This commit is contained in:
ViViDboarder 2024-09-25 15:56:39 -07:00
parent a321e21db9
commit 33fc019e7a
2 changed files with 11 additions and 2 deletions

View File

@ -6,5 +6,3 @@ let g:vim_markdown_new_list_item_indent = 0
" Format frontmatter as YAML
let g:vim_markdown_frontmatter = 1
call textobj#sentence#init()

View File

@ -339,6 +339,17 @@ return {
-- abolish/pencil
{
"https://github.com/preservim/vim-pencil",
dependencies = {
{
"https://github.com/preservim/vim-textobj-sentence",
dependencies = {
{ "https://github.com/kana/vim-textobj-user" },
},
config = function()
vim.fn["textobj#sentence#init"]()
end,
},
},
cmd = { "Pencil" },
},
{