diff options
| author | Seth Flynn <[email protected]> | 2021-11-24 02:02:25 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2022-08-04 04:40:17 -0400 |
| commit | 944b6db89ae715d93d0804a6a2358dcab88f1c07 (patch) | |
| tree | 5244d9f5ddf4f8a661e17c184fbadf2e553dbd43 /.config/nvim/init.vim | |
initial bare repo commit
Diffstat (limited to '.config/nvim/init.vim')
| -rw-r--r-- | .config/nvim/init.vim | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..a7911e3 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,58 @@ +" +" g3tchoo's neovim config +" + +" plugins +call plug#begin() + +Plug 'itchyny/lightline.vim' +Plug 'neoclide/coc.nvim', {'branch': 'release'} +Plug 'sheerun/vim-polyglot' +Plug 'preservim/nerdtree' +Plug 'tiagofumo/vim-nerdtree-syntax-highlight' +Plug 'ryanoasis/vim-devicons' +Plug 'airblade/vim-gitgutter' +Plug 'sickill/vim-monokai' + +call plug#end() + +" options +set tabstop=2 +set shiftwidth=2 +set expandtab +set autoindent +set smartindent +set incsearch +set termguicolors + +" functions +function! CocCurrentFunction() " for lightline + return get(b:, 'coc_current_function', '') +endfunction + +" keybinds +nnoremap <C-n> :NERDTreeToggle<CR> + +" appearance +syntax on +filetype plugin indent on +colorscheme monokai +let g:lightline = { + \ 'colorscheme': 'monokai', + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'cocstatus', 'currentfunction', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'component_function': { + \ 'cocstatus': 'coc#status', + \ 'currentfunction': 'CocCurrentFunction' + \ }, + \ } +let g:NERDTreeGitStatusWithFlags = 1 + +" coc config +let g:coc_global_extensions = [ + \ 'coc-jedi', + \ 'coc-rls', + \ 'coc-clangd', + \ ] |
