From 6b1827206bdb23904d782984f421018ba1af9526 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 24 Feb 2023 00:26:29 +0100 Subject: [PATCH] vim: lsp for rust and tab for fzf --- .vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vimrc b/.vimrc index 42f6fc8..7f87d1f 100644 --- a/.vimrc +++ b/.vimrc @@ -6,6 +6,7 @@ " M-S-F1 vim help " C-F1 LSP Menu " F2 open file in a new tab +" C-F2 open FZF in a new tab " S-F2 Split and open file " F3 autotags Update " S-F3 autotags Add @@ -366,6 +367,11 @@ augroup END " open a file in the same directory as the current file with F2 and split with shift+F2 map :tabe =expand("%:h") . "/" nmap :split =expand("%:h") . "/" +map :call FZFTab() +fun! FZFTab() + tabe + FZF +endfun """""""" " HELP " @@ -673,6 +679,7 @@ if v:version >= 800 \ 'cpp': ['clangd', '-background-index',], \ 'c': ['clangd', '-background-index',], \ 'python': ['/usr/bin/pyls'], + \ 'rust': ['rustup', 'run', 'stable', 'rls'], \ } let g:LanguageClient_loggingFile = expand('~/.LanguageClient.log') " Could be debbuged with @@ -814,6 +821,7 @@ let g:polyglot_disabled = ['latex'] Plugin 'christoomey/vim-tmux-navigator' let g:tmux_navigator_no_mappings=1 +" view register content Plugin 'junegunn/vim-peekaboo' Plugin 'patashish704/pandoc-complete'