From 9b0b8321c549102e6d71e6774c8abeab52069d23 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sat, 3 Sep 2022 08:56:12 +0200 Subject: [PATCH] Disable folding for Telescope results --- nvim/lua/auto-commands.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvim/lua/auto-commands.lua b/nvim/lua/auto-commands.lua index e1c3e99..4c6b342 100644 --- a/nvim/lua/auto-commands.lua +++ b/nvim/lua/auto-commands.lua @@ -33,4 +33,7 @@ vim.api.nvim_create_autocmd('BufWinLeave', { command = [[:call clearmatches()]], }) --- TODO: disable folding for Telescope lines, see https://github.com/nvim-telescope/telescope.nvim/issues/991#issuecomment-882059894 +vim.api.nvim_create_autocmd('Filetype', { + pattern = 'TelescopeResults', + command = [[:setlocal nofoldenable]], +})