mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 06:29:47 +01:00
feat: codewindow as an alternative minimap plugin
This commit is contained in:
parent
ebf1b4078c
commit
e9bb4a3658
2 changed files with 30 additions and 0 deletions
29
modules/minimap/codewindow.nix
Normal file
29
modules/minimap/codewindow.nix
Normal 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()
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -6,5 +6,6 @@
|
|||
}: {
|
||||
imports = [
|
||||
./minimap-vim.nix
|
||||
./codewindow.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue