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:
parent
2fedd9a82f
commit
64eacecdb2
@ -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>
|
||||
|
||||
|
15
neovim.spec
15
neovim.spec
@ -82,6 +82,8 @@ parts of Vim, without compromise, and more.
|
||||
|
||||
%lang_package
|
||||
|
||||
%define vimplugin_dir %{_datadir}/vim/site
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%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
|
||||
|
||||
# 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}/
|
||||
%find_lang nvim
|
||||
|
||||
@ -145,6 +150,16 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/nvim/template.spec
|
||||
%{_mandir}/man1/nvim.1%{?ext_man}
|
||||
%dir %{_sysconfdir}/nvim
|
||||
%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
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
" In order for neovim to use installed plugins shared with vim
|
||||
set runtimepath+=/usr/share/vim/site
|
||||
|
||||
augroup Fedora
|
||||
autocmd!
|
||||
" RPM spec file template
|
||||
|
Loading…
Reference in New Issue
Block a user