mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-23 03:49:50 +01:00
25 lines
455 B
Nix
25 lines
455 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.minimap.codewindow;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = [
|
|
"codewindow-nvim"
|
|
];
|
|
|
|
vim.luaConfigRC.codewindow = nvim.dag.entryAnywhere ''
|
|
local codewindow = require('codewindow')
|
|
codewindow.setup({
|
|
exclude_filetypes = { 'NvimTree', 'orgagenda'},
|
|
}
|
|
)
|
|
codewindow.apply_default_keybinds()
|
|
'';
|
|
};
|
|
}
|