mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-16 17:11:02 +00:00
utility/precognition: convert to setupOpts
honestly raf was cooking with this one. it's much nicer to use compared to interpolation lol
This commit is contained in:
parent
39e27e17a2
commit
517a6aa06e
3 changed files with 51 additions and 55 deletions
|
|
@ -4,9 +4,6 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (builtins) toString;
|
||||
|
||||
cfg = config.vim.utility.motion.precognition;
|
||||
in {
|
||||
|
|
@ -17,15 +14,8 @@ in {
|
|||
"precognition-nvim"
|
||||
];
|
||||
|
||||
vim.pluginRC.precognition-nvim = entryAnywhere ''
|
||||
require("precognition").setup({
|
||||
startVisible = ${toString cfg.startVisible},
|
||||
showBlankVirtLine = ${toString cfg.showBlankVirtLine},
|
||||
highlightColor = (${toLuaObject cfg.highlightColor}), --{ link = "Comment" },
|
||||
hints = (${toLuaObject cfg.hints}),
|
||||
gutterHints = (${toLuaObject cfg.gutterHints}),
|
||||
disabled_fts = (${toLuaObject cfg.disabled_fts}),
|
||||
});
|
||||
vim.luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
|
||||
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue