junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
34.22k stars 1.93k forks source link

Command :PlugStatus fails when editing commit message #1242

Closed CervEdin closed 8 months ago

CervEdin commented 1 year ago

Explain the problem here ...

Running :PlugStatus when editing a git commit message results in:

Error detected while processing function <SNR>19_status[1]..<SNR>19_prepare[7]..function<SNR>19_status[1]..<SNR>19_prepare:
line 7:
E605: Exception not caught: $GIT-DIR detected. Cannot proceed.

if has('nvim')
    call plug#begin()
else
    call plug#begin('~/.vim/plugged')
endif

" Core plugins {{{

    Plug 'airblade/vim-gitgutter'
    Plug 'editorconfig/editorconfig-vim'
    Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
    Plug 'junegunn/fzf.vim'
    Plug 'tpope/vim-commentary'
    Plug 'tpope/vim-dotenv'
    Plug 'tpope/vim-eunuch'           " Vim sugar for the UNIX shell commands that need it the most
    Plug 'tpope/vim-fugitive'         " Git
    Plug 'tpope/vim-projectionist'
    Plug 'tpope/vim-repeat'           " Enable repeating supported plugin maps with '.'
    Plug 'tpope/vim-scriptease'       " Vim script utilities
    Plug 'tpope/vim-surround'
    Plug 'tpope/vim-vinegar'          " Extend netrw
    Plug 'xolox/vim-misc'             " Required by vim-session
    Plug 'xolox/vim-session'          " Better session management (restarting, restoring, etc)

if has('python')
    Plug 'puremourning/vimspector'  " debugger
endif

" }}}

" Extra plugins {{{
"" Plug 'tpope/vim-flatfoot'         " Experimental enhancements of f and t
"" Plug 'vifm/vifm.vim'              " For vifm

    Plug 'ap/vim-css-color'           " CSS hex color preview
    Plug 'chrisbra/unicode.vim'
    Plug 'tpope/vim-afterimage'       " vim-afterimage
    Plug 'tpope/vim-dadbod'           " Database
    Plug 'tpope/vim-rsi'              " Emacs style readline
    Plug 'tpope/vim-speeddating'      " Change dates
    Plug 'tpope/vim-tbone'            " tmux
    Plug 'tpope/vim-unimpaired'       " Pair mappings [f, ]f etc
    Plug 'vimwiki/vimwiki', { 'on' : [] }
    Plug 'voldikss/vim-floaterm'

" }}}

" Configuration plugins {{{

""  Plug 'tpope/vim-sensible'         " https://github.com/tpope/vim-sensible
    Plug 'tpope/vim-sleuth'           " auto-detect indent settings

" }}}

" Language plugins: {{{

    Plug 'jparise/vim-graphql'        " GraphQL syntax
    Plug 'leafgarland/typescript-vim' " TypeScript syntax
    Plug 'maxmellon/vim-jsx-pretty'   " JS and JSX syntax
    Plug 'OmniSharp/omnisharp-vim'    " csharp
    Plug 'pangloss/vim-javascript'    " JavaScript support
    Plug 'tpope/vim-apathy'           " Apathy sets the five path searching options ΓÇö 'path', 'suffixesadd', 'include', 'includeexpr', and 'define' ΓÇö for file types I don't care about enough to bother with creating a proper plugin. https://github.com/tpope/vim-apathy
    Plug 'tpope/vim-classpath'        " JVM class path
    Plug 'tpope/vim-haml'             " Haml, Sass & SCSS
    Plug 'tpope/vim-jdaddy'           " JSON
    Plug '~/repos/vim-minizinc'

" }}}

" Style plugins {{{

    " Plug 'dracula/vim', { 'as': 'dracula' }
    ""Plug 'tpope/vim-vividchalk'       " Theme
    " Plug 'vim-airline/vim-airline'
    " Plug 'vim-airline/vim-airline-themes'
    Plug 'itchyny/lightline.vim'
    Plug 'tpope/vim-flagship'         " Statusline

" }}}

" Initialize plugin system
call plug#end()
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 10 2022 08:40:37)
Included patches: 1-749
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl               +cmdline_hist      +ex_extra          +jumplist          +mouse_dec         -perl              +sodium            +textobjects       +wildmenu
+arabic            +cmdline_info      +extra_search      +keymap            +mouse_gpm         +persistent_undo   -sound             +textprop          +windows
+autocmd           +comments          -farsi             +lambda            -mouse_jsbterm     +popupwin          +spell             +timers            +writebackup
+autochdir         +conceal           +file_in_path      +langmap           +mouse_netterm     +postscript        +startuptime       +title             -X11
-autoservername    +cryptv            +find_in_path      +libcall           +mouse_sgr         +printer           +statusline        -toolbar           -xfontset
-balloon_eval      +cscope            +float             +linebreak         -mouse_sysmouse    +profile           -sun_workshop      +user_commands     -xim
+balloon_eval_term +cursorbind        +folding           +lispindent        +mouse_urxvt       -python            +syntax            +vartabs           -xpm
-browse            +cursorshape       -footer            +listcmds          +mouse_xterm       +python3           +tag_binary        +vertsplit         -xsmp
++builtin_terms    +dialog_con        +fork()            +localmap          +multi_byte        +quickfix          -tag_old_static    +vim9script        -xterm_clipboard
+byte_offset       +diff              +gettext           -lua               +multi_lang        +reltime           -tag_any_white     +viminfo           -xterm_save
+channel           +digraphs          -hangul_input      +menu              -mzscheme          +rightleft         -tcl               +virtualedit       
+cindent           -dnd               +iconv             +mksession         +netbeans_intg     -ruby              +termguicolors     +visual            
-clientserver      -ebcdic            +insert_expand     +modify_fname      +num64             +scrollbind        +terminal          +visualextra       
-clipboard         +emacs_tags        +ipv6              +mouse             +packages          +signs             +terminfo          +vreplace          
+cmdline_compl     +eval              +job               -mouseshape        +path_extra        +smartindent       +termresponse      +wildignore        
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -ffile-prefix-map=/build/vim-cdpF6P/vim-9.0.0749=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 
Linking: gcc -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lselinux -lsodium -lacl -lattr -lgpm -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -lpython3.10 -lcrypt -ldl -lm -lm 
junegunn commented 8 months ago

I can't reproduce. Please let me know if you still have the issue.