dotfiles/data/nvim/init.vim

53 lines
902 B
VimL
Raw Normal View History

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=<,>,[,]
" True color
" https://gist.github.com/XVilka/8346728
2021-03-22 03:17:43 +00:00
if (empty($TMUX))
if (has('termguicolors'))
2021-03-22 03:17:43 +00:00
set termguicolors
endif
endif
" Disable cursor styling
set guicursor=
" Install xclip or xsel
2021-01-18 08:52:37 +00:00
set clipboard+=unnamedplus
" FZF
set rtp+=~/.fzf
" Plugins config
2021-03-22 07:37:00 +00:00
let g:go_fmt_command='gopls'
let g:go_gopls_gofumpt=1
2021-04-16 16:03:26 +00:00
let g:go_version_warning=0
let g:lightline={'colorscheme':'onedark'}
2021-01-18 08:52:37 +00:00
" vim-plug
" 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-02-25 03:35:00 +00:00
Plug 'sheerun/vim-polyglot'
2021-01-18 08:52:37 +00:00
Plug 'preservim/nerdtree'
Plug 'machakann/vim-sandwich'
Plug 'itchyny/lightline.vim'
2021-03-22 03:17:43 +00:00
" Colorschemes
Plug 'joshdick/onedark.vim'
" Languages
2021-04-19 08:22:07 +00:00
Plug 'fatih/vim-go', {'tag': '*'}
2021-03-22 03:17:43 +00:00
2021-01-18 08:52:37 +00:00
call plug#end()
set background=dark
colorscheme onedark