From 8bc32b1fe936687fc7749fa356665437d1f0bc65 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 25 Feb 2025 22:27:31 +0100 Subject: [PATCH] Add keybinding for neotree --- formatter.nix | 2 +- packages.nix | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/formatter.nix b/formatter.nix index 74ce5d3..e998dd4 100644 --- a/formatter.nix +++ b/formatter.nix @@ -4,5 +4,5 @@ ... }: flake-utils.lib.eachDefaultSystem (system: { - formatter = self.packages.${system}.formatter; + inherit (self.packages.${system}) formatter; }) diff --git a/packages.nix b/packages.nix index 5f558d4..983f3c2 100644 --- a/packages.nix +++ b/packages.nix @@ -25,10 +25,17 @@ flake-utils.lib.eachDefaultSystem (system: let notify.nvim-notify.enable = true; projects.project-nvim.enable = true; comments.comment-nvim.enable = true; + extraPlugins.vim-sleuth.package = pkgs.vimPlugins.vim-sleuth; - extraPlugins.vim-sleuth = { - package = pkgs.vimPlugins.vim-sleuth; - }; + keymaps = [ + { + key = ""; + mode = ["n"]; + action = ":Neotree toggle"; + silent = true; + desc = "Toggle Neotree"; + } + ]; lsp = { formatOnSave = true;