Skip to content

Commit

Permalink
feat: enable folding for popup mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Oct 23, 2023
1 parent 2d79d1c commit 2a9bf8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/hurl/popup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ M.show = function(data, type)
vim.api.nvim_buf_set_option(popups.top.bufnr, 'filetype', 'bash')
vim.api.nvim_buf_set_option(popups.bottom.bufnr, 'filetype', type)

-- Enable folding for bottom buffer
vim.api.nvim_buf_set_option(popups.bottom.bufnr, 'foldmethod', 'expr')

-- Add content to the bottom
vim.api.nvim_buf_set_lines(popups.bottom.bufnr, 0, -1, false, content)
end
Expand Down

0 comments on commit 2a9bf8f

Please sign in to comment.