Skip to content

Commit

Permalink
misc/wrapRc: ignore user configuration when wrapRc is true
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 2, 2024
1 parent 8aa4b7e commit c359761
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wrappers/modules/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c359761

Please sign in to comment.