Skip to content
Discussion options

You must be logged in to vote

This may not be the most efficient approach, but it should work:

opts = {
  bigfile = {
    -- size = 1, -- WARN: Use for testing
    setup = function(ctx)
      -- NOTE: Reassign buf's filetype
      if vim.list_contains({ 'lua', 'javascript' }, ctx.ft) then
        vim.bo[ctx.buf].ft = ctx.ft
        return
      end
      -- See https://github.com/folke/snacks.nvim/blob/main/docs/bigfile.md#%EF%B8%8F-config
      if vim.fn.exists ':NoMatchParen' ~= 0 then
        vim.cmd [[NoMatchParen]]
      end
      Snacks.util.wo(0, { foldmethod = 'manual', statuscolumn = '', conceallevel = 0 })
      vim.b.minianimate_disable = true
      vim.schedule(function()
        if vim.api.nvim_buf_is_valid(

Replies: 1 comment 1 reply

Comment options

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

Answer selected by gmnz
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