glts / vim-textobj-comment

Vim text objects for comments
http://www.vim.org/scripts/script.php?script_id=4570
131 stars 8 forks source link

Plugin errors out on startup #7

Closed tdemin closed 3 years ago

tdemin commented 3 years ago

When starting Neovim v0.4.4 with this plugin from master branch, the plugin errors out (though it still works as intended, commands like gqic work just fine):

Error detected while processing /home/tdemin/.vim/plugged/vim-textobj-comment/plugin/textobj/comment.vim:
line   27:
E117: Unknown function: textobj#user#plugin
Press ENTER or type command to continue

:version says:

NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstr
ict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNV
IM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.4.4/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
glts commented 3 years ago

Looks like the dependency textobj-user is missing ... you need to install that too: https://github.com/kana/vim-textobj-user

tdemin commented 3 years ago

@glts yeah, turns out I misread README.md. :) Thanks