From c728f365ac0732a5f76f5ac0dd9b5ad0869444e9 Mon Sep 17 00:00:00 2001 From: Anish L Date: Sat, 26 Feb 2022 00:55:19 +1000 Subject: [PATCH] Learning fugitive and other things --- profiles/nvim/nvim.nix | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/profiles/nvim/nvim.nix b/profiles/nvim/nvim.nix index b7a1e28e..baa85365 100644 --- a/profiles/nvim/nvim.nix +++ b/profiles/nvim/nvim.nix @@ -88,6 +88,7 @@ in vim-surround vim-fugitive vim-signify + fzf-checkout-vim #nvim-colorizer vim-devicons # testing @@ -131,9 +132,9 @@ in set spelllang=en_gb " window - nmap wh :topleft vnew + nmap wh :topleft vnew nmap wl :botright vnew - nmap wk :topleft new + nmap wk :topleft new nmap wj :botright new " tabs @@ -185,25 +186,39 @@ in let g:rainbow_active = 0 autocmd BufReadPost,BufNewFile c,py,nix RainbowParenthesesToggleAll - " keyboard commands + " general commands map t :NERDTreeToggle map s :w map q :wq map r :RainbowParenthesesToggleAll + map :noh + + " git + nmap gd :SignifyDiff + map ghu :SignifyHunkUndo + nmap gl :SignifyList + nmap gs :G + nmap gh :diffget //3 + nmap gl :diffget //2 + nmap gc :GChecout + + " kitaab map zs :ZettelSearch map zo :ZettelOpen map zn :ZettelNew - " NERDTree " open on directory autocmd StdinReadPre * let s:std_in=1 + " fzf + let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } } + + " ALE + clj-kondo let g:ale_linters = {'clojure': ['clj-kondo']} " coc - " " conjure extension let g:coc_global_extensions = ['coc-conjure']