From 29a55564e586f75128a309f150a882b7b5056d3e Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 28 Sep 2024 21:47:20 -0400 Subject: [PATCH] feat(nvim): add nvim-config-local --- common/home/neovim/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/common/home/neovim/default.nix b/common/home/neovim/default.nix index 01dc77ad..d3990cdd 100644 --- a/common/home/neovim/default.nix +++ b/common/home/neovim/default.nix @@ -95,6 +95,21 @@ }); ''; } + + { + plugin = pkgs.vimPlugins.nvim-config-local; + type = "lua"; + config = + # lua + '' + require('config-local').setup({ + config_files = { '.nvim.lua', '.nvimrc', '.exrc' }, + + -- Where the plugin keeps files data + hashfile = '${config.xdg.cacheHome}/nvim/config-local', + }); + ''; + } ]; }; };