We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcbc6ea commit 119d998Copy full SHA for 119d998
lua/astroui/folding.lua
@@ -115,12 +115,7 @@ function M.setup()
115
group = augroup,
116
callback = function(args)
117
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
118
- if supports_method(client, "textDocument/foldingRange", args.buf) then
119
- -- HACK: start with a single `foldexpr` call as this helps with restoring sessions
120
- if vim.api.nvim_buf_call(args.buf, function() return vim.lsp.foldexpr(1) end) then
121
- lsp_bufs[args.buf] = true
122
- end
123
+ if supports_method(client, "textDocument/foldingRange", args.buf) then lsp_bufs[args.buf] = true end
124
end,
125
})
126
vim.api.nvim_create_autocmd("LspDetach", {
0 commit comments