From 6def6cb5ddcd9d17edb67567f65a7ce0b362db28 Mon Sep 17 00:00:00 2001 From: Raoul Branten Date: Thu, 26 Sep 2024 20:32:42 +0000 Subject: [PATCH] Add tooltip shortcut --- lua/core/keymaps.lua | 19 +++++++++++++------ lua/core/plugin_config/tagbar.lua | 1 - 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua index 222261c..fff3ec1 100644 --- a/lua/core/keymaps.lua +++ b/lua/core/keymaps.lua @@ -1,16 +1,23 @@ --- use space as leader key -vim.g.mapleader = ' ' -vim.g.maplocalleader = ' ' - -- clear searchterm vim.keymap.set('n', '', ':noh') --- Prevent using arrow keys or mouse +-- prevent using arrow keys or mouse vim.keymap.set('n', '', ':echoe "Yo retard use h"') vim.keymap.set('n', '', ':echoe "Yo retard use l"') vim.keymap.set('n', '', ':echoe "Yo retard use k"') vim.keymap.set('n', '', ':echoe "Yo retard use j"') vim.opt.mouse = '' ---" dont automatically jump when searching +-- dont automatically jump when searching vim.keymap.set('n', '*', '*```') + +-- show lsp floating tooltip +vim.keymap.set('n', '', ':lua vim.lsp.buf.hover()') + +-- The telescope leader key is space +-- keymaps can be found in telescope config +vim.g.mapleader = ' ' +vim.g.maplocalleader = ' ' + +-- toggle tagbar plugin +vim.keymap.set('n', '', ':TagbarToggle fj') diff --git a/lua/core/plugin_config/tagbar.lua b/lua/core/plugin_config/tagbar.lua index 75d9bd6..e69de29 100644 --- a/lua/core/plugin_config/tagbar.lua +++ b/lua/core/plugin_config/tagbar.lua @@ -1 +0,0 @@ -vim.keymap.set('n', '', ':TagbarToggle fj')