From 6bac413c68e677963d0bf92f944f2d5e5ebccb8c Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 10 Aug 2023 23:30:24 +0300 Subject: [PATCH] we --- config/nvim/lua/core/keymaps.lua | 1 + modules/dev/editors/nvim/default.nix | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/config/nvim/lua/core/keymaps.lua b/config/nvim/lua/core/keymaps.lua index 2c4c93ab..cb4b5ad8 100644 --- a/config/nvim/lua/core/keymaps.lua +++ b/config/nvim/lua/core/keymaps.lua @@ -50,6 +50,7 @@ vim.keymap.set("n", "nsh", ":split", opts) -- terminal --vim.keymap.set("n", "t", ":split :terminal") vim.keymap.set("n", "t", ":FloatermToggle") +vim.keymap.set("n", "g", ":FloatermNew --height=29 --width=120 lazygit") -- exit terminal with esc vim.keymap.set("t", "", "", opts) diff --git a/modules/dev/editors/nvim/default.nix b/modules/dev/editors/nvim/default.nix index 9a4a0898..8b4c2f32 100644 --- a/modules/dev/editors/nvim/default.nix +++ b/modules/dev/editors/nvim/default.nix @@ -1,18 +1,26 @@ -{ outputs, options, config, lib, pkgs, ...}: -with lib; -let - cfg = config.modules.dev.editors.nvim; -in { + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.dev.editors.nvim; +in { options.modules.dev.editors.nvim = { enable = mkEnableOption false; }; config = mkIf cfg.enable { - # because yes + # because yes users.users.sako.packages = with pkgs; [ neovim + # flakes direnv + # vscode like git + lazygit ]; home-manager.users.sako.xdg.configFile.nvim = { source = ../../../../config/nvim;