mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
tweaks to vim paste and git
This commit is contained in:
parent
5648cd29e7
commit
2c0cc201e9
@ -72,6 +72,7 @@
|
|||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
|
||||||
# Allow specified unfree packages (identified elsewhere)
|
# Allow specified unfree packages (identified elsewhere)
|
||||||
|
# Retrieves package object based on string name
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
builtins.elem (lib.getName pkg) config.unfreePackages;
|
builtins.elem (lib.getName pkg) config.unfreePackages;
|
||||||
|
|
||||||
|
@ -75,3 +75,4 @@ key("n", "<A-CR>", ":noh<CR>", { silent = true }) --- Clear search in VimWiki
|
|||||||
key("n", "Y", "y$") --- Copy to end of line
|
key("n", "Y", "y$") --- Copy to end of line
|
||||||
key("v", "<C-r>", "y<Esc>:%s/<C-r>+//gc<left><left><left>") --- Substitute selected
|
key("v", "<C-r>", "y<Esc>:%s/<C-r>+//gc<left><left><left>") --- Substitute selected
|
||||||
key("v", "D", "y'>gp") --- Duplicate selected
|
key("v", "D", "y'>gp") --- Duplicate selected
|
||||||
|
key("x", "<Leader>p", '"_dP') --- Paste but keep register
|
||||||
|
@ -67,6 +67,9 @@ in {
|
|||||||
cdg = "cd (git rev-parse --show-toplevel)";
|
cdg = "cd (git rev-parse --show-toplevel)";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Required for fish commands
|
||||||
|
home.packages = with pkgs; [ fish fzf bat ];
|
||||||
|
|
||||||
programs.fish.functions = lib.mkIf (builtins.elem pkgs.fzf home-packages
|
programs.fish.functions = lib.mkIf (builtins.elem pkgs.fzf home-packages
|
||||||
&& builtins.elem pkgs.bat home-packages) {
|
&& builtins.elem pkgs.bat home-packages) {
|
||||||
git = { body = builtins.readFile ./fish/functions/git.fish; };
|
git = { body = builtins.readFile ./fish/functions/git.fish; };
|
||||||
|
Loading…
Reference in New Issue
Block a user