From 30f02163d23574956936b94abe541386d2477efc Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 19 May 2023 14:58:00 +0300 Subject: [PATCH] fix(nvimtree-lua): disable cursor-line to false --- modules/filetree/nvimtree-lua/config.nix | 2 ++ modules/filetree/nvimtree-lua/nvimtree-lua.nix | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/modules/filetree/nvimtree-lua/config.nix b/modules/filetree/nvimtree-lua/config.nix index 29293944..6450ef8d 100644 --- a/modules/filetree/nvimtree-lua/config.nix +++ b/modules/filetree/nvimtree-lua/config.nix @@ -79,7 +79,9 @@ in { width = ${toString cfg.view.width}, side = ${"'" + cfg.view.side + "'"}, adaptive_size = ${boolToString cfg.view.adaptiveSize}, + cursorline = ${boolToString cfg.view.cursorLine} }, + git = { enable = ${boolToString cfg.git.enable}, ignore = ${boolToString cfg.git.ignore}, diff --git a/modules/filetree/nvimtree-lua/nvimtree-lua.nix b/modules/filetree/nvimtree-lua/nvimtree-lua.nix index e2d63a73..c7822457 100644 --- a/modules/filetree/nvimtree-lua/nvimtree-lua.nix +++ b/modules/filetree/nvimtree-lua/nvimtree-lua.nix @@ -182,6 +182,11 @@ with builtins; { description = "Width of the tree in charecters"; type = types.int; }; + cursorLine = mkOption { + default = false; + description = "Whether to display the cursor line in NvimTree"; + type = types.bool; + }; }; git = {