Updated the nvim vimrc
parent
cd41d022f1
commit
b1fa4ac9ca
21
vimrc_nvim
21
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 <silent> <A-,> <Cmd>BufferPrevious<CR>
|
||||
nnoremap <silent> <A-.> <Cmd>BufferNext<CR>
|
||||
|
@ -239,9 +246,23 @@ nnoremap <silent> <Space>bd <Cmd>BufferOrderByDirectory<CR>
|
|||
nnoremap <silent> <Space>bl <Cmd>BufferOrderByLanguage<CR>
|
||||
nnoremap <silent> <Space>bw <Cmd>BufferOrderByWindowNumber<CR>
|
||||
|
||||
" FTerm
|
||||
nnoremap <A-i> <CMD>lua require("FTerm").toggle()<CR>
|
||||
tnoremap <A-i> <C-\><C-n><CMD>lua require("FTerm").toggle()<CR>
|
||||
|
||||
" 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 <silent> <A-g> :LazyGit<CR>
|
||||
|
||||
" Colorschemes
|
||||
syntax on
|
||||
" colorscheme onedark
|
||||
" colorscheme jellybeans
|
||||
|
|
Loading…
Reference in New Issue