mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 05:55:59 +01:00
30 lines
542 B
Nix
30 lines
542 B
Nix
|
{
|
||
|
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()
|
||
|
'';
|
||
|
};
|
||
|
}
|