misc/wrapRc: ignore user configuration when wrapRc is true

This commit is contained in:
Gaetan Lepage 2024-01-02 10:50:24 +01:00 committed by Gaétan Lepage
parent 8aa4b7e4ce
commit c359761871

View file

@ -153,6 +153,12 @@ in {
'';
};
extraConfigLuaPre = lib.optionalString config.wrapRc ''
-- Ignore the user lua configuration
vim.opt.runtimepath:remove(vim.fn.expand('~/.config/nvim'))
vim.opt.packpath:remove(vim.fn.expand('~/.local/share/nvim/site'))
'';
extraPlugins =
if config.wrapRc
then [config.filesPlugin]