Last active
June 25, 2021 18:47
-
-
Save cimentadaj/4cca2b0031922878f200c127190f1a33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" Plugins | |
call plug#begin('~/.config/nvim/autoload/plugged') | |
Plug 'rakr/vim-one' " vim-one color theme | |
Plug 'scrooloose/nerdtree' " side bar file tree | |
Plug 'itchyny/lightline.vim' " side bar file tree | |
Plug 'jreybert/vimagit' " git client | |
Plug 'tpope/vim-fugitive' " git client | |
Plug 'airblade/vim-gitgutter' " shows git changes in gutter | |
Plug 'easymotion/vim-easymotion' " go to anyword quickly \\w, \\e, \\b | |
Plug 'KKPMW/vim-sendtowindow' " send comando to REPL | |
" Plug 'yuttie/comfortable-motion.vim' " allows for scrolling down mouse-like | |
Plug 'ncm2/ncm2' " completion [dep]: nvim-0.2.2, nvim-yarp, python3 | |
Plug 'roxma/nvim-yarp' " remote plugin framework required by ncm2 | |
Plug 'ncm2/ncm2-bufword' " complete words in buffer | |
Plug 'ncm2/ncm2-path' " complete paths in buffer | |
Plug 'ncm2/ncm2-jedi' " python completion | |
Plug 'gaalcaras/ncm-R' " R completion [dep]: ncm2, nvim-R | |
Plug 'jalvesaq/Nvim-R' " required by ncm-R | |
call plug#end() | |
" ncm2 | |
autocmd BufEnter * call ncm2#enable_for_buffer() | |
set completeopt=noinsert,menuone,noselect | |
let g:python3_host_prof='/usr/bin/python3' | |
" lightline | |
let g:lightline = { | |
\ 'colorscheme': 'wombat', | |
\ 'active': { | |
\ 'left': [ [ 'mode' , 'paste' ], | |
\ [ 'gitbranch', 'readonly', 'filename', 'modified'] ] | |
\ }, | |
\ 'component_function': { | |
\ 'gitbranch': 'FugitiveHead' | |
\ }, | |
\ } | |
" Window splits | |
set splitbelow splitright | |
" Remap splits navigation to just CTRL + hjkl | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
" Make adjusting split sizes a bit more friendly | |
noremap <silent> <C-Left> :vertical resize +3<CR> | |
noremap <silent> <C-Right> :vertical resize -3<CR> | |
noremap <silent> <C-Up> :resize -3<CR> | |
noremap <silent> <C-Down> :resize +3<CR> | |
" Change 2 split windows from vert to horiz or horiz to vert | |
map <Leader>th <C-w>t<C-w>H | |
map <Leader>tk <C-w>t<C-w>K | |
" Start terminal for R and Python session \tr and \tp | |
map <Leader>tr :new term:// bash<CR>iR<CR><C-\><C-n><C-w>k | |
map <Leader>tp :new term:// bash<CR>ipython3<CR><C-\><C-n><C-w>k | |
"git gitgutter | |
let g:gitgutter_async=0 | |
map <C-n> :NERDTreeToggle<CR> | |
let NERDTreeIgnore = ['\.pyc$'] | |
" Change leader key to , | |
let mapleader = "," | |
" Call the theme one | |
colorscheme one | |
set background=dark | |
set termguicolors | |
set updatetime=100 " set update time for gitgutter time:w | |
set clipboard+=unnamedplus | |
" General settings | |
set number " Set line numbering |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment