dotfiles/data/nvim/init.vim

61 lines
1.1 KiB
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=
" Mouse support
set mouse=a
" Install xclip or xsel
2021-01-18 08:52:37 +00:00
set clipboard+=unnamedplus
" FZF
set rtp+=~/.fzf
" 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
" 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'
Plug 'itchyny/lightline.vim'
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()
set background=dark
2021-09-18 09:37:52 +00:00
" colorscheme onedark
colorscheme nord