@@ -609,7 +609,7 @@ func UpdatePlugins(out io.Writer, plugins []string) {
609609 // if no plugins are specified, update all installed plugins.
610610 if len (plugins ) == 0 {
611611 for _ , p := range Plugins {
612- if ! p .IsLoaded () || p .Builtin {
612+ if ! p .IsLoaded () || p .Builtin || p . Name == "initlua" {
613613 continue
614614 }
615615 plugins = append (plugins , p .Name )
@@ -668,6 +668,10 @@ func PluginCommand(out io.Writer, cmd string, args []string) {
668668 case "remove" :
669669 removed := ""
670670 for _ , plugin := range args {
671+ if plugin == "initlua" {
672+ fmt .Fprintln (out , "initlua cannot be removed, but can be disabled via settings." )
673+ continue
674+ }
671675 // check if the plugin exists.
672676 for _ , p := range Plugins {
673677 if p .Name == plugin && p .Builtin {
@@ -692,7 +696,9 @@ func PluginCommand(out io.Writer, cmd string, args []string) {
692696 plugins := GetInstalledVersions (false )
693697 fmt .Fprintln (out , "The following plugins are currently installed:" )
694698 for _ , p := range plugins {
695- if p .Pack ().Builtin {
699+ if p .Pack ().Name == "initlua" {
700+ fmt .Fprintf (out , "%s\n " , "initlua" )
701+ } else if p .Pack ().Builtin {
696702 fmt .Fprintf (out , "%s (built-in)\n " , p .Pack ().Name )
697703 } else {
698704 fmt .Fprintf (out , "%s (%s)\n " , p .Pack ().Name , p .Version )
0 commit comments