summaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim14
1 files 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 <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')