aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/_fold.lua
diff options
context:
space:
mode:
authorAndrew Braxton <42975660+andrewbraxton@users.noreply.github.com>2025-01-15 04:58:36 -0500
committerGitHub <noreply@github.com>2025-01-15 01:58:36 -0800
commit0a7e4e9e5f28f3b6b3c83040430d0a36fcd71fad (patch)
treeef1c11425b453fa1699a05e15d6e678520f939d9 /runtime/lua/vim/treesitter/_fold.lua
parentbc69f2723737cfe8916c117483ce32f48ff83544 (diff)
downloadrneovim-0a7e4e9e5f28f3b6b3c83040430d0a36fcd71fad.tar.gz
rneovim-0a7e4e9e5f28f3b6b3c83040430d0a36fcd71fad.tar.bz2
rneovim-0a7e4e9e5f28f3b6b3c83040430d0a36fcd71fad.zip
fix(lsp): vim.lsp.enable(...,false) does not disable #32002
Problem: Per the documentation, passing `false` as the `enable` parameter of `vim.lsp.enable()` should disable the given LSP(s), but it does not work due to a logic error. Specifically, `enable == false and nil or {}` will always evaluate to `{}` because `nil` is falsy. Solution: Correct the conditional statement.
Diffstat (limited to 'runtime/lua/vim/treesitter/_fold.lua')
0 files changed, 0 insertions, 0 deletions