From 6b3e41419a68e1294e1e33bc295d652df62208a5 Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 9 Jul 2021 01:33:09 +0800 Subject: [PATCH] Ppdate packer settings for Semshi If Semshi is set to opt plugin, when we run PackerUpdate, the command `: UpdateRemotePlugins` will be run. At this time, Semshi is not in the runtimepath, so its manifest will not be generated in rplugin.vim (located under ~/.local/share/nvim/rplugin.vim). So when we open a Python file afterwards, although Semshi is in runtimepath, but its manifest is missing, so we see error that command `Semshi enable` is not found. So after loading this plugin, i.e., when we open a Python source file, we need to run UpdateRemotePlugins so that semshi can work correctly. --- lua/plugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 393c88a..e58655b 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -34,7 +34,7 @@ require('packer').startup( -- Python syntax highlighting and more if (vim.g.is_mac == 1) or (vim.g.is_win == 1) then - use {'numirias/semshi', run = ':UpdateRemotePlugins', ft = 'python'} + use {'numirias/semshi', ft = 'python', config = 'vim.cmd [[UpdateRemotePlugins]]'} end -- Python indent (follows the PEP8 style)