Skip to content
Discussion options

You must be logged in to vote

For some reasons, the suggested code doesn't work for me, but the method using autocmd and vim.b.snacks_indent work. Here's my working config:

vim.api.nvim_create_autocmd("FileType", {
    desc = "Disable indent for markdown",
    pattern = { "markdown" },
    group = vim.api.nvim_create_augroup("snacks_group", { clear = false }),
    callback = function()
        vim.b.snacks_indent = false
    end,
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@knmac
Comment options

Answer selected by knmac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants