diff options
| author | Jeremy Fleischman <jeremyfleischman@gmail.com> | 2025-04-30 16:57:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-30 16:57:29 -0700 |
| commit | 4bc7bac8842582cc1239373994327d5537155ec0 (patch) | |
| tree | b04ebdcbd03196824263f329158e7a66cad9297c /runtime/lua/vim/_ftplugin/lua.lua | |
| parent | 71f3a9c5900fa1882a77f2300baac462a5bf480f (diff) | |
| download | rneovim-4bc7bac8842582cc1239373994327d5537155ec0.tar.gz rneovim-4bc7bac8842582cc1239373994327d5537155ec0.tar.bz2 rneovim-4bc7bac8842582cc1239373994327d5537155ec0.zip | |
feat(lsp): start/stop LSPs as necessary during vim.lsp.enable() #33702
Problem:
enable() could be more flexible, so that it works even if called "late".
Solution:
- enable(true) calls `doautoall nvim.lsp.enable FileType`.
- enable(false) calls `client:stop()` on matching clients.
This will be useful for e.g. :LspStop/:LspStart also.
Diffstat (limited to 'runtime/lua/vim/_ftplugin/lua.lua')
0 files changed, 0 insertions, 0 deletions