From 90e25d91739f24364152e9cf6bbfdc619600d333 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 27 Mar 2024 17:44:48 +0000 Subject: Added some mappings for dealing with the lsp --- init.vim | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/init.vim b/init.vim index 2ad7df0..d13a2c1 100644 --- a/init.vim +++ b/init.vim @@ -76,7 +76,7 @@ let mapleader=" " function! Jump(...) normal! '[ endfunction -noremap g. set operatorfunc=Noopg@ +noremap g. set operatorfunc=Jumpg@ " Make splitting more congruent with how Tmux does it. noremap % v @@ -198,8 +198,6 @@ omap iï ij vmap œ k vmap ï j -" test a thing here ααααααααααααααβααααααααααααααααααααααααααααααααααααααα - noremap TSNodeUnderCursor noremap TSCaptureUnderCursor @@ -216,6 +214,16 @@ cnoreabbrev _home expand("$HOME/.local/share/nvim") cnoreabbrev _projects expand("$HOME/Projects") cnoreabbrev _ escape(expand('%:h'), ' \') +noremap g[r Telescope lsp_references path_display={"shorten"} +noremap g[d Telescope lsp_definitions path_display={"shorten"} +noremap g[i Telescope lsp_implementations path_display={"shorten"} +noremap g[td Telescope lsp_type_definitions path_display={"shorten"} +noremap g[ci Telescope lsp_incoming_calls path_display={"shorten"} +noremap g[co Telescope lsp_outgoing_calls path_display={"shorten"} +noremap g[sd Telescope lsp_document_symbols path_display={"shorten"} +noremap g[sw Telescope lsp_workspace_symbols path_display={"shorten"} +noremap g[sdw Telescope lsp_dynamic_workspace_symbols path_display={"shorten"} + set textwidth=80 set colorcolumn=+1 if has('rneovim') -- cgit