mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
neovim: fix tests (#3147)
https://github.com/NixOS/nixpkgs/pull/184364 broke the tests Closes #3146 Signed-off-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
parent
ff5133843c
commit
688e5c85b7
2 changed files with 4 additions and 21 deletions
|
@ -55,15 +55,6 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# A function to get the configuration string (if any) from an element of 'plugins'
|
|
||||||
pluginConfig = p:
|
|
||||||
if p ? plugin && (p.config or "") != "" then ''
|
|
||||||
" ${p.plugin.pname or p.plugin.name} {{{
|
|
||||||
${p.config}
|
|
||||||
" }}}
|
|
||||||
'' else
|
|
||||||
"";
|
|
||||||
|
|
||||||
allPlugins = cfg.plugins ++ optional cfg.coc.enable {
|
allPlugins = cfg.plugins ++ optional cfg.coc.enable {
|
||||||
type = "viml";
|
type = "viml";
|
||||||
plugin = cfg.coc.package;
|
plugin = cfg.coc.package;
|
||||||
|
@ -394,12 +385,10 @@ in {
|
||||||
home.packages = [ cfg.finalPackage ];
|
home.packages = [ cfg.finalPackage ];
|
||||||
|
|
||||||
xdg.configFile."nvim/init.vim" = mkIf (neovimConfig.neovimRcContent != "") {
|
xdg.configFile."nvim/init.vim" = mkIf (neovimConfig.neovimRcContent != "") {
|
||||||
text = if hasAttr "lua" config.programs.neovim.generatedConfigs then
|
text = neovimConfig.neovimRcContent + (optionalString
|
||||||
neovimConfig.neovimRcContent + ''
|
(hasAttr "lua" config.programs.neovim.generatedConfigs) ''
|
||||||
|
lua require('init-home-manager')
|
||||||
lua require('init-home-manager')''
|
'');
|
||||||
else
|
|
||||||
neovimConfig.neovimRcContent;
|
|
||||||
};
|
};
|
||||||
xdg.configFile."nvim/lua/init-home-manager.lua" =
|
xdg.configFile."nvim/lua/init-home-manager.lua" =
|
||||||
mkIf (hasAttr "lua" config.programs.neovim.generatedConfigs) {
|
mkIf (hasAttr "lua" config.programs.neovim.generatedConfigs) {
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
set packpath^=/nix/store/00000000000000000000000000000000-vim-pack-dir
|
|
||||||
set runtimepath^=/nix/store/00000000000000000000000000000000-vim-pack-dir
|
|
||||||
|
|
||||||
" vim-commentary {{{
|
|
||||||
" This should be present too
|
" This should be present too
|
||||||
autocmd FileType c setlocal commentstring=//\ %s
|
autocmd FileType c setlocal commentstring=//\ %s
|
||||||
autocmd FileType c setlocal comments=://
|
autocmd FileType c setlocal comments=://
|
||||||
|
|
||||||
" }}}
|
|
||||||
" This should be present in vimrc
|
" This should be present in vimrc
|
||||||
|
|
Loading…
Reference in a new issue