mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-05 19:35:51 +00:00
feat(docs-view): custom setup
This commit is contained in:
parent
379231b43d
commit
62b0791b75
2 changed files with 47 additions and 40 deletions
|
|
@ -3,10 +3,10 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) toString;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.binds) addDescriptionsToMappings mkSetBinding;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.lsp.nvim-docs-view;
|
||||
self = import ./nvim-docs-view.nix {inherit lib;};
|
||||
|
|
@ -20,12 +20,7 @@ in {
|
|||
startPlugins = ["nvim-docs-view"];
|
||||
|
||||
luaConfigRC.nvim-docs-view = entryAnywhere ''
|
||||
require("docs-view").setup {
|
||||
position = "${cfg.position}",
|
||||
width = ${toString cfg.width},
|
||||
height = ${toString cfg.height},
|
||||
update_mode = "${cfg.updateMode}",
|
||||
}
|
||||
require("docs-view").setup ${toLuaObject cfg.setupOpts}
|
||||
'';
|
||||
|
||||
maps.normal = mkMerge [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue