This commit is contained in:
Sakooooo 2023-08-10 23:30:24 +03:00
parent 41547f9fa6
commit 6bac413c68
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 15 additions and 6 deletions

View file

@ -50,6 +50,7 @@ vim.keymap.set("n", "nsh", ":split<CR>", opts)
-- terminal
--vim.keymap.set("n", "<leader>t", ":split<CR> <BAR> :terminal<CR>")
vim.keymap.set("n", "<leader>t", ":FloatermToggle<CR>")
vim.keymap.set("n", "<leader>g", ":FloatermNew --height=29 --width=120 lazygit<CR>")
-- exit terminal with esc
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", opts)

View file

@ -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;