Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Mirza Halilcevic
- " ****************************************
- " Plugins
- " ****************************************
- call plug#begin('~/.local/share/nvim/plugged')
- " A code-completion engine for Vim
- Plug 'Valloric/YouCompleteMe'
- " A command-line fuzzy finder
- Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
- Plug 'junegunn/fzf.vim'
- " A light and configurable statusline/tabline plugin for Vim
- Plug 'itchyny/lightline.vim'
- " True Sublime Text style multiple selections for Vim
- Plug 'terryma/vim-multiple-cursors'
- " Helpers for UNIX
- Plug 'tpope/vim-eunuch'
- " A tree explorer plugin for vim
- Plug 'scrooloose/nerdtree'
- " A Vim plugin which shows a git diff in the 'gutter' (sign column) and
- " stages/undoes hunks
- Plug 'airblade/vim-gitgutter'
- " A Git wrapper so awesome, it should be illegal
- Plug 'tpope/vim-fugitive'
- " Forget Vim tabs - now you can have buffer tabs
- Plug 'ap/vim-buftabline'
- " Vim syntax highlighting for meson
- Plug 'chadversary/vim-meson'
- " Retro groove color scheme for Vim
- Plug 'morhetz/gruvbox'
- " Insert or delete brackets, parens, quotes in pair
- Plug 'jiangmiao/auto-pairs'
- " The ultimate snippet solution for Vim
- Plug 'SirVer/ultisnips'
- " UltiSnips default snippets
- Plug 'honza/vim-snippets'
- call plug#end()
- " ****************************************
- " Global variables
- " ****************************************
- " YouCompleteMe
- let g:ycm_global_ycm_extra_conf='~/.ycm_extra_conf.py'
- let g:ycm_confirm_extra_conf = 0
- " lightline
- let g:lightline = {
- \ 'colorscheme': 'gruvbox',
- \ 'active': {
- \ 'left': [ [ 'mode', 'paste' ],
- \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
- \ },
- \ 'component_function': {
- \ 'gitbranch': 'fugitive#head'
- \ },
- \ 'separator': { 'left': '', 'right': '' },
- \ 'subseparator': { 'left': '', 'right': '' }
- \ }
- " UltiSnips
- let g:UltiSnipsExpandTrigger='<c-j>' " ctrl + j -> expands snippet
- " ****************************************
- " Color
- " ****************************************
- " colorscheme
- colorscheme gruvbox
- set background=dark
- " ****************************************
- " Options
- " ****************************************
- set noshowmode " disable mode indicator
- set number relativenumber " hybrid line numbers
- set mouse=a " enable mouse support
- set tabstop=2 shiftwidth=2 softtabstop=0 " tabs and indents are 2 spaces wide
- set expandtab smarttab " use spaces instead of tabs and enable smart tabs
- set autoindent smartindent " smart indentation
- set smartcase " smart case sensitive search
- set hidden " hide buffers with unsaved changes
- set scrolloff=3 " keep 3 lines above and below the cursor
- set cursorline " highlight current line
- set colorcolumn=80 " vertical ruler at column 80
- set undofile undodir=~/.local/share/nvim/undodir " enable undo files
- set undolevels=1000 undoreload=10000 " limit number of undos
- set completeopt-=preview " disable scratch preview
- " ****************************************
- " Key mappings
- " ****************************************
- " ; -> open fuzzy finder for files
- map ; :Files<CR>
- " ctrl + o -> open tree explorer
- map <C-o> :NERDTreeToggle<CR>
- " escape + tab -> next buffer
- nmap <esc><tab> :bnext<CR>
- " escape + backspace -> previous buffer
- nmap <esc><bs> :bprev<CR>
- " escape -> enter normal mode in terminal
- tnoremap <Esc> <C-\><C-n>
- " ****************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement