mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-15 00:21:02 +00:00
codewindow: clean
This commit is contained in:
parent
61634e9ed1
commit
84a4dd7d34
3 changed files with 6 additions and 20 deletions
|
|
@ -515,11 +515,13 @@
|
|||
|
||||
[neocodeium]: https://github.com/monkoose/neocodeium
|
||||
|
||||
- Add [neocodeium] plugin in `vim.assistant.neocodeium` with `enable`, `setupOpts` and `keymaps`
|
||||
- Add [neocodeium] plugin in `vim.assistant.neocodeium` with `enable`,
|
||||
`setupOpts` and `keymaps`
|
||||
|
||||
[JudahZF](https://github.com/JudahZF):
|
||||
|
||||
- Added gitFiles mapping option to telescope
|
||||
|
||||
[vagahbond](https://github.com/vagahbond):
|
||||
|
||||
- moved [codewindow](https://github.com/gorbit99/codewindow.nvim) to setupOpts
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.binds) mkMappingOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
inherit (lib.types) bool str listOf;
|
||||
in {
|
||||
options.vim.minimap.codewindow = {
|
||||
enable = mkEnableOption "codewindow plugin for minimap view";
|
||||
openByDefault = mkEnableOption "codewindow plugin opening automatically";
|
||||
|
||||
mappings = {
|
||||
open = mkMappingOption "Open minimap [codewindow]" "<leader>mo";
|
||||
|
|
@ -15,18 +13,6 @@ in {
|
|||
toggleFocus = mkMappingOption "Toggle minimap focus [codewindow]" "<leader>mf";
|
||||
};
|
||||
|
||||
setupOpts = mkPluginSetupOption "codewindow" {
|
||||
auto_enable = mkOption {
|
||||
description = "Open automatically";
|
||||
type = bool;
|
||||
default = true;
|
||||
};
|
||||
|
||||
exclude_filetypes = mkOption {
|
||||
description = "Excluded files types";
|
||||
type = listOf str;
|
||||
default = ["NvimTree" "orgagenda" "Alpha"];
|
||||
};
|
||||
};
|
||||
setupOpts = mkPluginSetupOption "codewindow" {};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,9 +33,7 @@ in {
|
|||
|
||||
pluginRC.codewindow = entryAnywhere ''
|
||||
local codewindow = require('codewindow')
|
||||
codewindow.setup(
|
||||
${lib.nvim.lua.toLuaObject cfg.setupOpts}
|
||||
)
|
||||
codewindow.setup(${cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue