-
-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folds are not applied when opening with Telescope #1277
Comments
dup of #559 TLDR: i dont know how to fix it and the workaround that worked in the past no longer works. |
fixed by #1643 Closing |
I had to revert the PR :( |
Any progress here? I'm surprised to see this bug and the lack of interest. Perhaps you have all found a workaround? |
I am using the workaround described here: tmhedberg/SimpylFold#130 (comment) |
Thanks; I found the same solution in #559 as well and it works for me. But it is silly that we need this at all. :\ |
I have the same issue as well |
@lervag I agree. this is also ruining indent lines for me. Can someone please look into it. |
+1. very annoying |
I guess this might not be a problem of telescope, and instead it might be a bug of neovim (or treesitter): this is a minimal example: suppose I am at my neovim root directory (~/.config/nvim), and I have defined the following command: vim.o.foldmethod = 'expr'
vim.o.foldexpr = 'nvim_treesitter#foldexpr()'
vim.keymap.set('i', '<C-x>', function() vim.cmd.edit 'lua/conf/builtin_extend.lua' end) and typing It is also worthy to note that telescope plays nicely with |
folds were fixed in #2726 fix is applied to latest master, 0.1.x and the latest stable release 0.1.4 |
Description
When opening a file with Telescope folds are not applied
but when opening a file with
:e path/to/file.lua
folds are applied as they shouldnote: this is using the treesitter folding method
Neovim version
NVIM v0.5.0
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/config -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/src/nvim/auto -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/include
Compiled by brew@BigSur
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.5.0/share/nvim"
Run :checkhealth for more info
Operating system and version
big sur 11.2.3 and Arch linux
checkhealth telescope
Steps to reproduce
Expected behavior
Buffer is folded when buffer is opened
Actual behavior
When buffer is opened the folds are not applied
Minimal config
The text was updated successfully, but these errors were encountered: