mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 04:18:03 +00:00
Compare commits
3 commits
f620990488
...
c6c1094ed9
Author | SHA1 | Date | |
---|---|---|---|
c6c1094ed9 | |||
212ab55528 | |||
a2e757440e |
1 changed files with 14 additions and 2 deletions
|
@ -4,7 +4,8 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
inherit (lib.strings) optionalString;
|
||||||
|
inherit (lib.nvim.dag) entryBefore;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
cfg = config.vim.ui.edgy-nvim;
|
cfg = config.vim.ui.edgy-nvim;
|
||||||
|
@ -12,7 +13,18 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = ["edgy-nvim"];
|
startPlugins = ["edgy-nvim"];
|
||||||
pluginRC.edgy-nvim = entryAnywhere "require('edgy').setup(${toLuaObject cfg.setupOpts})";
|
pluginRC.edgy-nvim = entryBefore ["basic"] ''
|
||||||
|
${optionalString cfg.setRecommendedNeovimOpts ''
|
||||||
|
-- Neovim options recommended by upstream.
|
||||||
|
-- Views can only be fully collapsed with the global statusline.
|
||||||
|
vim.o.laststatus = 3
|
||||||
|
-- Default splitting will cause your main splits to jump when opening an edgebar.
|
||||||
|
-- To prevent this, set `splitkeep` to either `screen` or `topline`.
|
||||||
|
vim.o.splitkeep = "screen"
|
||||||
|
''}
|
||||||
|
|
||||||
|
require('edgy').setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue