From a0391e17d9d1fc84b099a01bd72d2838aca53dd1 Mon Sep 17 00:00:00 2001 From: BakerNet Date: Wed, 7 Jun 2023 14:41:47 -0700 Subject: [PATCH] Fix C-k window change & add find git commit line to visual mode --- after/plugin/lsp.lua | 2 +- after/plugin/telescope.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 311d2a6..a52e59b 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -27,7 +27,7 @@ local on_attach = function(_, bufnr) -- See `:help K` for why this keymap nmap('K', vim.lsp.buf.hover, 'Hover Documentation') - nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') + nmap('K', vim.lsp.buf.signature_help, 'Signature Documentation') -- Lesser used LSP functionality nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 31cbf3c..4870d94 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -54,5 +54,5 @@ vim.keymap.set('n', 'fk', require('telescope.builtin').keymaps, { desc = vim.keymap.set('n', 'fr', require('telescope.builtin').resume, { desc = '[F]ind [R]esume' }) vim.keymap.set('n', 'fcf', require('telescope').extensions.advanced_git_search.diff_commit_file, { desc = '[F]ind [C]ommit for [F]ile' }) -vim.keymap.set('n', 'fcl', require('telescope').extensions.advanced_git_search.diff_commit_line, +vim.keymap.set({ 'n', 'v' }, 'fcl', require('telescope').extensions.advanced_git_search.diff_commit_line, { desc = '[F]ind [C]ommit for [L]ines' })