diff --git a/.config/nvim/lua/keymap.lua b/.config/nvim/lua/keymap.lua index d1a091f..b7317a3 100644 --- a/.config/nvim/lua/keymap.lua +++ b/.config/nvim/lua/keymap.lua @@ -37,6 +37,7 @@ vim.keymap.set('n', 'ss', ':%s//gI', { noremap = true -- irc compatibility for interactivity vim.keymap.set('n', 'is', ':.w >> indd', { noremap = true }) +-- the following keymap settings are plugin dependent -- frabjous/knap vim.api.nvim_create_autocmd('FileType', { @@ -60,7 +61,7 @@ vim.keymap.set('n', '', ':Navbuddy', {}) -- nvim-tree/nvim-tree.lua vim.keymap.set('n', '', ':NvimTreeToggle toggle', {}) --- numToStr/FTerm.nvim +-- numtostr/fterm.nvim vim.keymap.set('n', 't', ':lua require("FTerm").toggle()', { noremap = true }) vim.keymap.set('t', 't', ':lua require("FTerm").toggle()', { noremap = true }) local lazygit = require("FTerm"):new({ @@ -68,6 +69,13 @@ local lazygit = require("FTerm"):new({ }) vim.keymap.set({ 'n', 't' }, 'gt', function() lazygit:toggle() end) +-- sindrets/diffview.nvim +vim.keymap.set( 'n', 'gdo', ":DiffviewOpen") +vim.keymap.set( 'n', 'gdc', ":DiffviewClose") + +-- folke/trouble.nvim +vim.keymap.set( 'n', 'x', ":TroubleToggle") + -- hrsh7th/nvim-cmp vim.keymap.set('n', 'gD', ':lua vim.lsp.buf.declaration()', { noremap = true }) vim.keymap.set('n', 'gd', ':lua vim.lsp.buf.definition()', { noremap = true }) diff --git a/.config/nvim/lua/loadplugins.lua b/.config/nvim/lua/loadplugins.lua index 0a6f6d1..6a80788 100644 --- a/.config/nvim/lua/loadplugins.lua +++ b/.config/nvim/lua/loadplugins.lua @@ -516,6 +516,19 @@ return require("lazy").setup({ { 'numToStr/FTerm.nvim', opts = {} + }, + + -- side by side git diffs for merge conflicts + { + 'sindrets/diffview.nvim', + opts = {} + }, + + -- list of errors + { + "folke/trouble.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = {} } },