Accepting request 660221 from home:mcepl:branches:editors

- Add to the system-wide configuration file extension of runtimepath by
  /usr/share/vim/site, so that neovim uses other Vim plugins installed
  from packages.
- Add /usr/share/vim/site tree of directories to be owned by neovim as
  well.

OBS-URL: https://build.opensuse.org/request/show/660221
OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=44
This commit is contained in:
Martin Pluskal 2018-12-20 14:46:57 +00:00 committed by Git OBS Bridge
parent 2fedd9a82f
commit 64eacecdb2
3 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Dec 20 00:11:35 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Add to the system-wide configuration file extension of runtimepath by
/usr/share/vim/site, so that neovim uses other Vim plugins installed
from packages.
- Add /usr/share/vim/site tree of directories to be owned by neovim as
well.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 6 09:12:15 UTC 2018 - Martin Pluskal <mpluskal@suse.com> Thu Dec 6 09:12:15 UTC 2018 - Martin Pluskal <mpluskal@suse.com>

View File

@ -82,6 +82,8 @@ parts of Vim, without compromise, and more.
%lang_package %lang_package
%define vimplugin_dir %{_datadir}/vim/site
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -120,6 +122,9 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/nvim/template.spec
%suse_update_desktop_file -r nvim ConsoleOnly Application Utility TextEditor %suse_update_desktop_file -r nvim ConsoleOnly Application Utility TextEditor
# vim/site directories for plugins shared with vim
mkdir -p %{buildroot}%{vimplugin_dir}/{after,after/syntax,autoload,colors,doc,ftdetect,plugin,syntax}
%fdupes %{buildroot}%{_datadir}/ %fdupes %{buildroot}%{_datadir}/
%find_lang nvim %find_lang nvim
@ -145,6 +150,16 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/nvim/template.spec
%{_mandir}/man1/nvim.1%{?ext_man} %{_mandir}/man1/nvim.1%{?ext_man}
%dir %{_sysconfdir}/nvim %dir %{_sysconfdir}/nvim
%config(noreplace) %{_sysconfdir}/nvim/sysinit.vim %config(noreplace) %{_sysconfdir}/nvim/sysinit.vim
%dir %{_datadir}/vim
%dir %{vimplugin_dir}/
%dir %{vimplugin_dir}/after
%dir %{vimplugin_dir}/after/syntax
%dir %{vimplugin_dir}/autoload
%dir %{vimplugin_dir}/colors
%dir %{vimplugin_dir}/doc
%dir %{vimplugin_dir}/ftdetect
%dir %{vimplugin_dir}/plugin
%dir %{vimplugin_dir}/syntax
%files lang -f nvim.lang %files lang -f nvim.lang

View File

@ -1,3 +1,6 @@
" In order for neovim to use installed plugins shared with vim
set runtimepath+=/usr/share/vim/site
augroup Fedora augroup Fedora
autocmd! autocmd!
" RPM spec file template " RPM spec file template