diff --git a/neovim.changes b/neovim.changes index 452a420..85a6a03 100644 --- a/neovim.changes +++ b/neovim.changes @@ -1,7 +1,9 @@ ------------------------------------------------------------------- -Sat Aug 18 13:05:58 UTC 2018 - Matěj Cepl +Sat Aug 18 15:04:51 UTC 2018 - Matěj Cepl -- Proper name of the systemwide configuration file is sysinit.vim not init.vim +- Proper name of the systemwide configuration file is sysinit.vim not + init.vim and it should be stored in /usr/share/nvim/sysinit.vim not in + /etc/xdg/nvim. ------------------------------------------------------------------- Thu Aug 16 15:18:26 UTC 2018 - mcepl@suse.com diff --git a/neovim.spec b/neovim.spec index 98d727a..659ab02 100644 --- a/neovim.spec +++ b/neovim.spec @@ -103,11 +103,11 @@ make %{?_smp_mflags} %cmake_install # system-wide configuration file -install -D -m 644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/nvim/sysinit.vim +install -D -m 644 -p %{SOURCE1} %{buildroot}%{_datadir}/nvim/sysinit.vim %if 0%{?suse_version} -install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/xdg/nvim/template.spec +install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/nvim/template.spec %else -install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xdg/nvim/template.spec +install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/nvim/template.spec %endif %suse_update_desktop_file -r nvim ConsoleOnly Application Utility TextEditor @@ -131,9 +131,6 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xdg/nvim/template.spec %{_datadir}/applications/nvim.desktop %{_datadir}/pixmaps/nvim.png %{_mandir}/man1/nvim.1%{?ext_man} -%dir %{_sysconfdir}/xdg/nvim/ -%config(noreplace) %{_sysconfdir}/xdg/nvim/sysinit.vim -%config(noreplace) %{_sysconfdir}/xdg/nvim/template.spec %files lang -f nvim.lang diff --git a/sysinit.vim b/sysinit.vim index 00ef0cc..66037d3 100644 --- a/sysinit.vim +++ b/sysinit.vim @@ -1,7 +1,7 @@ augroup Fedora autocmd! " RPM spec file template - autocmd BufNewFile *.spec silent! 0read /etc/xdg/nvim/template.spec + autocmd BufNewFile *.spec silent! 0read /usr/share/nvim/template.spec augroup END " vim: et ts=2 sw=2