From c15d42808d3c27f5b50313e114f805521cd983b8 Mon Sep 17 00:00:00 2001 From: Tony Miller Date: Thu, 16 Oct 2025 11:52:07 +1000 Subject: [PATCH] Vim Usage - Switch to use nvim difftool and mergetool - nvim plugins that make git integration better - db interface for vim with .env support --- .config/git/config | 2 +- .config/nvim/init.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/git/config b/.config/git/config index 8faee5d..239c49a 100644 --- a/.config/git/config +++ b/.config/git/config @@ -52,7 +52,7 @@ [difftool "nvim"] cmd = nvim -d \"$LOCAL\" \"$REMOTE\" [mergetool "nvim"] - cmd = "nvim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"" + cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\" # }}} # {{{ VSCode diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 214edff..9688331 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -56,6 +56,11 @@ local plugins = { -- Git integration {"git", "gitsigns.nvim", "https://github.com/lewis6991/gitsigns.nvim.git"}, + {"git", "vim-fugitive", "https://github.com/tpope/vim-fugitive.git"}, + + -- Tools + {"db", "vim-dadbod", "https://github.com/tpope/vim-dadbod.git"}, + {"env", "dotenv", "https://github.com/tpope/vim-dotenv"}, -- Quality of life {"editor", "which-key.nvim", "https://github.com/folke/which-key.nvim.git"},