vim: lsp for rust and tab for fzf
This commit is contained in:
parent
9b1bfc384d
commit
6b1827206b
8
.vimrc
8
.vimrc
@ -6,6 +6,7 @@
|
|||||||
" M-S-F1 vim help
|
" M-S-F1 vim help
|
||||||
" C-F1 LSP Menu
|
" C-F1 LSP Menu
|
||||||
" F2 open file in a new tab
|
" F2 open file in a new tab
|
||||||
|
" C-F2 open FZF in a new tab
|
||||||
" S-F2 Split and open file
|
" S-F2 Split and open file
|
||||||
" F3 autotags Update
|
" F3 autotags Update
|
||||||
" S-F3 autotags Add
|
" 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
|
" open a file in the same directory as the current file with F2 and split with shift+F2
|
||||||
map <F2> :tabe <C-R>=expand("%:h") . "/"<CR>
|
map <F2> :tabe <C-R>=expand("%:h") . "/"<CR>
|
||||||
nmap <S-F2> :split <C-R>=expand("%:h") . "/"<CR>
|
nmap <S-F2> :split <C-R>=expand("%:h") . "/"<CR>
|
||||||
|
map <C-F2> :call FZFTab()<CR>
|
||||||
|
fun! FZFTab()
|
||||||
|
tabe
|
||||||
|
FZF
|
||||||
|
endfun
|
||||||
|
|
||||||
""""""""
|
""""""""
|
||||||
" HELP "
|
" HELP "
|
||||||
@ -673,6 +679,7 @@ if v:version >= 800
|
|||||||
\ 'cpp': ['clangd', '-background-index',],
|
\ 'cpp': ['clangd', '-background-index',],
|
||||||
\ 'c': ['clangd', '-background-index',],
|
\ 'c': ['clangd', '-background-index',],
|
||||||
\ 'python': ['/usr/bin/pyls'],
|
\ 'python': ['/usr/bin/pyls'],
|
||||||
|
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
|
||||||
\ }
|
\ }
|
||||||
let g:LanguageClient_loggingFile = expand('~/.LanguageClient.log')
|
let g:LanguageClient_loggingFile = expand('~/.LanguageClient.log')
|
||||||
" Could be debbuged with
|
" Could be debbuged with
|
||||||
@ -814,6 +821,7 @@ let g:polyglot_disabled = ['latex']
|
|||||||
Plugin 'christoomey/vim-tmux-navigator'
|
Plugin 'christoomey/vim-tmux-navigator'
|
||||||
let g:tmux_navigator_no_mappings=1
|
let g:tmux_navigator_no_mappings=1
|
||||||
|
|
||||||
|
" view register content
|
||||||
Plugin 'junegunn/vim-peekaboo'
|
Plugin 'junegunn/vim-peekaboo'
|
||||||
|
|
||||||
Plugin 'patashish704/pandoc-complete'
|
Plugin 'patashish704/pandoc-complete'
|
||||||
|
Loading…
Reference in New Issue
Block a user