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 -- terminal
--vim.keymap.set("n", "<leader>t", ":split<CR> <BAR> :terminal<CR>") --vim.keymap.set("n", "<leader>t", ":split<CR> <BAR> :terminal<CR>")
vim.keymap.set("n", "<leader>t", ":FloatermToggle<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 -- exit terminal with esc
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", opts) vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", opts)

View file

@ -1,9 +1,14 @@
{ 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 = { options.modules.dev.editors.nvim = {
enable = mkEnableOption false; enable = mkEnableOption false;
}; };
@ -12,7 +17,10 @@ in
# because yes # because yes
users.users.sako.packages = with pkgs; [ users.users.sako.packages = with pkgs; [
neovim neovim
# flakes
direnv direnv
# vscode like git
lazygit
]; ];
home-manager.users.sako.xdg.configFile.nvim = { home-manager.users.sako.xdg.configFile.nvim = {
source = ../../../../config/nvim; source = ../../../../config/nvim;