From 79c47341ff081f84f0f38aa3840b625e1ba09aa2 Mon Sep 17 00:00:00 2001 From: Albert Liu Date: Fri, 10 Jan 2025 11:31:06 -0500 Subject: [PATCH 1/3] added a lil more --- config/programs/gitignore_global | 4 ++++ config/programs/neovim/lua/compat/neovide.lua | 6 ++++++ home-manager/flake.nix | 1 + home-manager/home.nix | 2 ++ 4 files changed, 13 insertions(+) diff --git a/config/programs/gitignore_global b/config/programs/gitignore_global index 82a08183..10024042 100644 --- a/config/programs/gitignore_global +++ b/config/programs/gitignore_global @@ -9,3 +9,7 @@ tags # Intellij .idea + +*.aliu-local.* +*.aliu-local +# .tmp.aliu-local diff --git a/config/programs/neovim/lua/compat/neovide.lua b/config/programs/neovim/lua/compat/neovide.lua index c9397f5f..ed5fad96 100644 --- a/config/programs/neovim/lua/compat/neovide.lua +++ b/config/programs/neovim/lua/compat/neovide.lua @@ -1,3 +1,9 @@ vim.g.neovide_cursor_animation_length = 0.05 vim.g.neovide_cursor_trail_size = 0.3 vim.g.neovide_cursor_animate_command_line = false + +vim.keymap.set('v', '', '"+y') -- Copy +vim.keymap.set('n', '', '"+P') -- Paste normal mode +vim.keymap.set('v', '', '"+P') -- Paste visual mode +vim.keymap.set('c', '', '+') -- Paste command mode +vim.keymap.set('i', '', '+') -- Paste insert mode diff --git a/home-manager/flake.nix b/home-manager/flake.nix index 65a56974..f2d4ac80 100644 --- a/home-manager/flake.nix +++ b/home-manager/flake.nix @@ -1,3 +1,4 @@ +# https://nixos-and-flakes.thiscute.world/other-usage-of-flakes/inputs { description = "Home Manager configuration of aliu"; diff --git a/home-manager/home.nix b/home-manager/home.nix index ca5c1d39..ad93fd29 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -44,8 +44,10 @@ in # (pkgs.writeShellScriptBin "my-hello" '' # echo "Hello, ${config.home.username}!" # '') + git-lfs neovim + neovide ripgrep tmux fd From 3cbfab7e4c70e8ca24026d7b9abfa184c5182053 Mon Sep 17 00:00:00 2001 From: Albert Liu Date: Fri, 10 Jan 2025 11:31:20 -0500 Subject: [PATCH 2/3] added more to home manager --- home-manager/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 home-manager/.gitignore diff --git a/home-manager/.gitignore b/home-manager/.gitignore new file mode 100644 index 00000000..2c553cb4 --- /dev/null +++ b/home-manager/.gitignore @@ -0,0 +1 @@ +/local From 063334eca0299c5af04c6a4571e5764a91499788 Mon Sep 17 00:00:00 2001 From: Albert Liu Date: Fri, 10 Jan 2025 15:17:56 -0500 Subject: [PATCH 3/3] meh --- config/programs/neovim/lua/compat/neovide.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/programs/neovim/lua/compat/neovide.lua b/config/programs/neovim/lua/compat/neovide.lua index ed5fad96..4966eda4 100644 --- a/config/programs/neovim/lua/compat/neovide.lua +++ b/config/programs/neovim/lua/compat/neovide.lua @@ -7,3 +7,6 @@ vim.keymap.set('n', '', '"+P') -- Paste normal mode vim.keymap.set('v', '', '"+P') -- Paste visual mode vim.keymap.set('c', '', '+') -- Paste command mode vim.keymap.set('i', '', '+') -- Paste insert mode + +-- Paste terminal mode; `` puts you in normal mode +vim.keymap.set('t', '', '"+Pi')