Add tooltip shortcut

This commit is contained in:
Raoul Branten 2024-09-26 20:32:42 +00:00
parent 9a7b06ae7d
commit 6def6cb5dd
2 changed files with 13 additions and 7 deletions

View File

@ -1,16 +1,23 @@
-- use space as leader key
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- clear searchterm
vim.keymap.set('n', '<F5>', ':noh<CR>')
-- Prevent using arrow keys or mouse
-- prevent using arrow keys or mouse
vim.keymap.set('n', '<Left>', ':echoe "Yo retard use h"<CR>')
vim.keymap.set('n', '<Right>', ':echoe "Yo retard use l"<CR>')
vim.keymap.set('n', '<Up>', ':echoe "Yo retard use k"<CR>')
vim.keymap.set('n', '<Down>', ':echoe "Yo retard use j"<CR>')
vim.opt.mouse = ''
--" dont automatically jump when searching
-- dont automatically jump when searching
vim.keymap.set('n', '*', '*```<CR>')
-- show lsp floating tooltip
vim.keymap.set('n', '<c-k>', ':lua vim.lsp.buf.hover()<CR>')
-- 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', '<F8>', ':TagbarToggle fj<CR>')

View File

@ -1 +0,0 @@
vim.keymap.set('n', '<F8>', ':TagbarToggle fj<CR>')