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;