mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
misc/wrapRc: ignore user configuration when wrapRc is true
This commit is contained in:
parent
8aa4b7e4ce
commit
c359761871
1 changed files with 6 additions and 0 deletions
|
@ -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 =
|
extraPlugins =
|
||||||
if config.wrapRc
|
if config.wrapRc
|
||||||
then [config.filesPlugin]
|
then [config.filesPlugin]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue