diff options
author | Josh Rahm <rahm@google.com> | 2024-03-27 17:44:48 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2024-03-27 17:44:48 +0000 |
commit | 90e25d91739f24364152e9cf6bbfdc619600d333 (patch) | |
tree | 6ea64d4baed9b729c0c8e6df8996ad17b61c3ac6 | |
parent | 715e1be7dca3b6dd7a337e53b35502e5d1472e0f (diff) | |
download | config.vim-90e25d91739f24364152e9cf6bbfdc619600d333.tar.gz config.vim-90e25d91739f24364152e9cf6bbfdc619600d333.tar.bz2 config.vim-90e25d91739f24364152e9cf6bbfdc619600d333.zip |
Added some mappings for dealing with the lsp
-rw-r--r-- | init.vim | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -76,7 +76,7 @@ let mapleader=" " function! Jump(...) normal! '[ endfunction -noremap <silent> g. <cmd>set operatorfunc=Noop<cr>g@ +noremap <silent> g. <cmd>set operatorfunc=Jump<cr>g@ " Make splitting more congruent with how Tmux does it. noremap <C-w>% <C-w>v @@ -198,8 +198,6 @@ omap iï i<leader>j vmap œ <leader>k vmap ï <leader>j -" test a thing here ααααααααααααααβααααααααααααααααααααααααααααααααααααααα - noremap <M-ñ> <cmd>TSNodeUnderCursor<cr> noremap <M-©> <cmd>TSCaptureUnderCursor<cr> @@ -216,6 +214,16 @@ cnoreabbrev <expr> _home expand("$HOME/.local/share/nvim") cnoreabbrev <expr> _projects expand("$HOME/Projects") cnoreabbrev <expr> _ escape(expand('%:h'), ' \') +noremap g[r <cmd>Telescope lsp_references path_display={"shorten"}<cr> +noremap g[d <cmd>Telescope lsp_definitions path_display={"shorten"}<cr> +noremap g[i <cmd>Telescope lsp_implementations path_display={"shorten"}<cr> +noremap g[td <cmd>Telescope lsp_type_definitions path_display={"shorten"}<cr> +noremap g[ci <cmd>Telescope lsp_incoming_calls path_display={"shorten"}<cr> +noremap g[co <cmd>Telescope lsp_outgoing_calls path_display={"shorten"}<cr> +noremap g[sd <cmd>Telescope lsp_document_symbols path_display={"shorten"}<cr> +noremap g[sw <cmd>Telescope lsp_workspace_symbols path_display={"shorten"}<cr> +noremap g[sdw <cmd>Telescope lsp_dynamic_workspace_symbols path_display={"shorten"}<cr> + set textwidth=80 set colorcolumn=+1 if has('rneovim') |