2021-01-18 08:52:37 +00:00
|
|
|
set breakindent
|
|
|
|
set completeopt=menuone,noinsert,noselect
|
|
|
|
set noswapfile
|
|
|
|
set number
|
|
|
|
set relativenumber
|
|
|
|
set scrolloff=4
|
|
|
|
set virtualedit=block
|
|
|
|
set whichwrap=<,>,[,]
|
|
|
|
|
2021-02-18 04:02:07 +00:00
|
|
|
" True color
|
|
|
|
" https://gist.github.com/XVilka/8346728
|
2021-03-22 03:17:43 +00:00
|
|
|
if (empty($TMUX))
|
2021-03-22 03:45:43 +00:00
|
|
|
if (has('termguicolors'))
|
2021-03-22 03:17:43 +00:00
|
|
|
set termguicolors
|
|
|
|
endif
|
|
|
|
endif
|
2021-02-18 04:02:07 +00:00
|
|
|
|
2021-03-22 03:45:43 +00:00
|
|
|
" Disable cursor styling
|
|
|
|
set guicursor=
|
|
|
|
|
2021-08-04 11:07:53 +00:00
|
|
|
" Mouse support
|
|
|
|
set mouse=a
|
|
|
|
|
2021-03-19 10:02:43 +00:00
|
|
|
" Install xclip or xsel
|
2021-01-18 08:52:37 +00:00
|
|
|
set clipboard+=unnamedplus
|
|
|
|
|
|
|
|
" FZF
|
|
|
|
set rtp+=~/.fzf
|
|
|
|
|
2021-03-19 10:02:43 +00:00
|
|
|
" Plugins config
|
2021-04-16 16:03:26 +00:00
|
|
|
let g:go_version_warning=0
|
2021-08-18 17:26:59 +00:00
|
|
|
let g:go_gopls_gofumpt=1
|
2021-09-18 09:37:52 +00:00
|
|
|
" let g:lightline={'colorscheme':'onedark'}
|
|
|
|
let g:lightline={'colorscheme':'nord'}
|
2021-01-18 08:52:37 +00:00
|
|
|
|
2021-09-17 11:46:51 +00:00
|
|
|
" coc-nvim
|
|
|
|
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
|
|
|
|
2021-01-18 08:52:37 +00:00
|
|
|
" vim-plug
|
2021-03-19 10:02:43 +00:00
|
|
|
" https://github.com/junegunn/vim-plug
|
2021-01-18 08:52:37 +00:00
|
|
|
call plug#begin()
|
2021-03-22 03:17:43 +00:00
|
|
|
|
|
|
|
" Should use
|
2021-01-18 08:52:37 +00:00
|
|
|
Plug 'preservim/nerdtree'
|
2021-04-05 16:44:01 +00:00
|
|
|
Plug 'itchyny/lightline.vim'
|
2021-06-03 16:09:50 +00:00
|
|
|
Plug 'tpope/vim-fugitive'
|
2021-03-22 03:17:43 +00:00
|
|
|
|
|
|
|
" Colorschemes
|
|
|
|
Plug 'joshdick/onedark.vim'
|
2021-09-18 09:37:52 +00:00
|
|
|
Plug 'arcticicestudio/nord-vim'
|
2021-03-22 03:17:43 +00:00
|
|
|
|
|
|
|
" Languages
|
2021-04-19 08:22:07 +00:00
|
|
|
Plug 'fatih/vim-go', {'tag': '*'}
|
2021-09-17 11:46:51 +00:00
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
2021-03-22 03:17:43 +00:00
|
|
|
|
2021-01-18 08:52:37 +00:00
|
|
|
call plug#end()
|
2021-02-18 04:02:07 +00:00
|
|
|
|
|
|
|
set background=dark
|
2021-09-18 09:37:52 +00:00
|
|
|
" colorscheme onedark
|
|
|
|
colorscheme nord
|