mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
docs: misc
Co-authored-by: Dustin S. <dstackmasta27@gmail.com> Co-authored-by: Ferenc Fejes <fejes@inf.elte.hu> Co-authored-by: Maria José Solano <majosolano99@gmail.com> Co-authored-by: Yochem van Rosmalen <git@yochem.nl> Co-authored-by: brianhuster <phambinhanctb2004@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@ -1395,8 +1395,9 @@ end
|
||||
--- callback = function(args)
|
||||
--- local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
--- if client:supports_method('textDocument/foldingRange') then
|
||||
--- vim.wo.foldmethod = 'expr'
|
||||
--- vim.wo.foldexpr = 'v:lua.vim.lsp.foldexpr()'
|
||||
--- local win = vim.api.nvim_get_current_win()
|
||||
--- vim.wo[win][0].foldmethod = 'expr'
|
||||
--- vim.wo[win][0].foldexpr = 'v:lua.vim.lsp.foldexpr()'
|
||||
--- end
|
||||
--- end,
|
||||
--- })
|
||||
|
Reference in New Issue
Block a user