diff options
| author | Robert Günzler <r@gnzler.io> | 2022-05-27 12:57:02 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-05-27 13:16:14 +0200 |
| commit | 401cead3093d5ae30bc56bd2f1e978702a411e92 (patch) | |
| tree | bfc68ef227bc06681d26af9d63ec90c0259aead5 /.vim/lua | |
| parent | db939639b1b537739aa9e9c593eeae53e62aa6f6 (diff) | |
vim: stop lua-lsp on PackerRecompile
Diffstat (limited to '.vim/lua')
| -rw-r--r-- | .vim/lua/plugins.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 07d2b45..fe6c0e0 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -47,6 +47,11 @@ do vim.api.nvim_create_user_command( 'PackerRecompile', function() + for _, client in pairs(vim.lsp.get_active_clients()) do + if vim.tbl_contains(client.config.filetypes, 'lua') then + client.stop() + end + end vim.cmd [[luafile $HOME/.vim/lua/plugins.lua]] vim.cmd [[PackerCompile]] vim.notify('packer: lazy-loading refreshed') |