diff --git a/modules/minimap/codewindow.nix b/modules/minimap/codewindow.nix new file mode 100644 index 0000000..f5fa6c0 --- /dev/null +++ b/modules/minimap/codewindow.nix @@ -0,0 +1,29 @@ +{ + pkgs, + config, + lib, + ... +}: +with lib; +with builtins; let + cfg = config.vim.minimap.codewindow; +in { + options.vim.minimap.codewindow = { + enable = mkEnableOption "Enable minimap-vim plugin"; + }; + + config = mkIf cfg.enable { + vim.startPlugins = [ + "codewindow-nvim" + ]; + + vim.luaConfigRC.codewindow = nvim.dag.entryAnywhere '' + local codewindow = require('codewindow') + codewindow.setup({ + exclude_filetypes = { 'NvimTree'}, + } + ) + codewindow.apply_default_keybinds() + ''; + }; +} diff --git a/modules/minimap/default.nix b/modules/minimap/default.nix index 0c6ef4a..0007404 100644 --- a/modules/minimap/default.nix +++ b/modules/minimap/default.nix @@ -6,5 +6,6 @@ }: { imports = [ ./minimap-vim.nix + ./codewindow.nix ]; }