feat(nvim): add autolist integration for yaml

This commit is contained in:
Price Hiller 2023-08-19 04:53:55 -05:00
parent 3e6a5725aa
commit 8076338694
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -8,9 +8,16 @@ return {
"tex",
"plaintex",
"norg",
"yaml"
},
config = function()
require("autolist").setup({})
require("autolist").setup({
lists = {
yaml = {
"[-]"
}
}
})
local autolist_group = vim.api.nvim_create_augroup("Autolist", {})
vim.api.nvim_create_autocmd("filetype", {
group = autolist_group,
@ -20,6 +27,7 @@ return {
"tex",
"plaintex",
"norg",
"yaml",
},
callback = function()
if pcall(require, "autolist") then