Browse Source

Add few nvim LanguageClient shortcuts, update tmux

master
arnaucube 4 years ago
parent
commit
ecc8ac220e
2 changed files with 11 additions and 3 deletions
  1. +3
    -0
      .tmux.conf
  2. +8
    -3
      init.vim

+ 3
- 0
.tmux.conf

@ -1,5 +1,8 @@
set -g default-terminal "screen-256color" # colors!
set -g status-bg blue
set -g status-fg white
# maximize current pane
bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session_name}" #D'

+ 8
- 3
init.vim

@ -113,9 +113,6 @@ let g:NERDDefaultAlign = 'left' " Align line-wise comment delimiters flush left
let g:NERDCommentEmptyLines = 1 " Allow commenting and inverting empty lines (useful when commenting a region)
" go
let g:go_auto_sameids = 1
"" go config
function! s:build_go_files()
let l:file = expand('%')
@ -165,6 +162,14 @@ let g:LanguageClient_serverCommands = {
let g:LanguageClient_diagnosticsList = "Quickfix"
let g:LanguageClient_diagnosticsEnable = 1
" language server key bindings
nnoremap <F6> :call LanguageClient_contextMenu()<CR>
" Specific mappings of LanguageClient each action separately
nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> KK :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
" rainbowparentheses
let g:rainbow_active = 1

Loading…
Cancel
Save