From b1fa4ac9cafd0e4b73795bb02e735c861e914ccc Mon Sep 17 00:00:00 2001 From: Ruben Dahl Date: Sat, 8 Apr 2023 23:58:33 +0200 Subject: [PATCH] Updated the nvim vimrc --- vimrc_nvim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/vimrc_nvim b/vimrc_nvim index e1a302d..c909d7d 100644 --- a/vimrc_nvim +++ b/vimrc_nvim @@ -17,6 +17,8 @@ filetype off set path+=/usr/include/nodejs/src/ +let g:python3_host_prog = $HOME . '/.local/venv/nvim/bin/python' + call plug#begin() Plug 'preservim/nerdtree' @@ -39,6 +41,8 @@ Plug 'nvim-tree/nvim-web-devicons' Plug 'romgrk/barbar.nvim' Plug 'f-person/git-blame.nvim' Plug 'numToStr/FTerm.nvim' +Plug 'averms/black-nvim', {'do': ':UpdateRemotePlugins'} +Plug 'kdheepak/lazygit.nvim' " colorschemes Plug 'joshdick/onedark.vim' @@ -135,6 +139,8 @@ autocmd BufWritePre *.h,*.hpp,*.cc,*.cpp,*.cxx,*.c++,*.c call FormatOnSave() autocmd BufWritePre,InsertLeave *.js Neoformat +autocmd BufWritePre *.py call BlackSync() + au BufNewFile,BufRead *.ejs set filetype=html au BufEnter * call ncm2#enable_for_buffer() @@ -191,6 +197,7 @@ endfunction command! FixTab :call s:fixtab() +" barbar " Move to previous/next nnoremap BufferPrevious nnoremap BufferNext @@ -239,9 +246,23 @@ nnoremap bd BufferOrderByDirectory nnoremap bl BufferOrderByLanguage nnoremap bw BufferOrderByWindowNumber +" FTerm nnoremap lua require("FTerm").toggle() tnoremap lua require("FTerm").toggle() +" Lazygit +let g:lazygit_floating_window_winblend = 0 " transparency of floating window +let g:lazygit_floating_window_scaling_factor = 0.9 " scaling factor for floating window +let g:lazygit_floating_window_corner_chars = ['╭', '╮', '╰', '╯'] " customize lazygit popup window corner characters +let g:lazygit_floating_window_use_plenary = 0 " use plenary.nvim to manage floating window if available +let g:lazygit_use_neovim_remote = 1 " fallback to 0 if neovim-remote is not installed + +let g:lazygit_use_custom_config_file_path = 0 " config file path is evaluated if this value is 1 +let g:lazygit_config_file_path = '' " custom config file path + +nnoremap :LazyGit + +" Colorschemes syntax on " colorscheme onedark " colorscheme jellybeans