feat: codewindow as an alternative minimap plugin

This commit is contained in:
NotAShelf 2023-02-04 00:19:51 +03:00
parent ebf1b4078c
commit e9bb4a3658
No known key found for this signature in database
GPG Key ID: 5B5C8895F28445F1
2 changed files with 30 additions and 0 deletions

View File

@ -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()
'';
};
}

View File

@ -6,5 +6,6 @@
}: {
imports = [
./minimap-vim.nix
./codewindow.nix
];
}