diff options
| author | Michal Idziorek <michal.idziorek@citi.com> | 2021-11-04 13:45:35 +0100 |
|---|---|---|
| committer | Michal Idziorek <michal.idziorek@citi.com> | 2021-11-04 13:45:35 +0100 |
| commit | 66bf28c8d4b1a4a43f991234b3649f8d57a3876f (patch) | |
| tree | 9d69618c5af9eab59a2267fd8f8f24be3fb4c77a | |
| parent | ddeab118d2c9a47901de0ac95940e7879809be39 (diff) | |
minor changes in nvim config and git config
| -rw-r--r-- | git/.gitconfig | 16 | ||||
| -rw-r--r-- | nvim/.config/nvim/init.vim | 30 | ||||
| -rw-r--r-- | zsh/dot-zshrc | 2 |
3 files changed, 26 insertions, 22 deletions
diff --git a/git/.gitconfig b/git/.gitconfig index 4d656b1..ff10baa 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -1,23 +1,21 @@ -# This is Git's per-user configuration file. [user] -# Please adapt and uncomment the following lines: name = Miguel email = m.i@gmx.at + [merge] tool = vimdiff conflictstyle = diff3 - [mergetool] prompt = true [mergetool "vimdiff"] cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c '$wincmd w' -c '$wincmd w' -c '$wincmd J' - -[difftool] - prompt = false - -[diff] - tool = vimdiff +[diff] + tool = nvimdiff + +[difftool "nvimdiff"] + cmd = "/root/nvim.appimage -d $LOCAL $REMOTE" + prompt = true diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index f58d9ef..1d0f7bc 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -3,7 +3,7 @@ " " link ./init.vim <- ~/.config/nvim/init.vim " link ./plugin/ <- ~/.config/nvim/plugin/ -" 1. install vim-plug +" 1. install vim-plug / why not :h packages? " 2. run :PlugUpdate " 3. run :checkhealth @@ -16,13 +16,15 @@ " {{{ vim-plug call plug#begin('~/.vim/plugged') +Plug 'tpope/vim-fugitive' +Plug 'tpope/vim-surround' Plug 'tpope/vim-sensible' Plug 'tpope/vim-commentary' -Plug 'tpope/vim-surround' Plug 'tpope/vim-unimpaired' -Plug 'tpope/vim-vinegar' -Plug 'tpope/vim-fugitive' Plug 'tpope/vim-dispatch' +Plug 'tpope/vim-dadbod' +Plug 'tpope/vim-vinegar' +Plug 'tpope/vim-eunuch' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' @@ -35,14 +37,9 @@ Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' } -Plug 'vim-airline/vim-airline' -Plug 'vim-airline/vim-airline-themes' Plug 'christoomey/vim-tmux-navigator' -" Plug 'rafi/awesome-vim-colorschemes' -Plug 'jnurmine/Zenburn' " try gruvbox-community/gruvbox? - Plug 'mbbill/undotree' " haskell related @@ -50,9 +47,16 @@ Plug 'neovimhaskell/haskell-vim' Plug 'alx741/vim-stylishask' Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } -" agda -Plug 'derekelkins/agda-vim' " requires python2 / pip2 :( -" try language-server as well +" agda related / requires python2 / pip2 :( +Plug 'derekelkins/agda-vim' + +" colors / style +" rafi/awesome-vim-colorschemes? +" gruvbox-community/gruvbox? +Plug 'jnurmine/Zenburn' + +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' call plug#end() " }}} @@ -234,7 +238,7 @@ nmap <leader>q :call setqflist(filter(getqflist(),"v:val['type'] == 'E'"))<CR> " }}} " write current file as superuser -cmap w!! w !sudo tee % > /dev/null +cmap w!! SudoWrite let g:fzf_layout = { 'down': '~40%' } diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index afe2d14..9cc2d24 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -135,6 +135,8 @@ alias bell='echo "\a"' export EDITOR=nvim [ -f "$HOME/nvim.appimage" ] && export EDITOR=$HOME/nvim.appimage alias vi=$EDITOR +alias vim=$EDITOR +alias nvim=$EDITOR bindkey -M viins 'jk' vi-cmd-mode |
