chore(config): split vim and neovim config, keep it the same for now
parent
dca5bf145c
commit
4f41315db6
|
@ -11,7 +11,7 @@
|
|||
"vim": {
|
||||
"files": [
|
||||
{
|
||||
"internal": "config/nvim/init.vim",
|
||||
"internal": "config/vim/vimrc",
|
||||
"external": "~/.vimrc"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
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
|
||||
if (empty($TMUX))
|
||||
if (has('termguicolors'))
|
||||
set termguicolors
|
||||
endif
|
||||
endif
|
||||
|
||||
" Disable cursor styling
|
||||
set guicursor=
|
||||
|
||||
" Install xclip or xsel
|
||||
set clipboard+=unnamedplus
|
||||
|
||||
" FZF
|
||||
set rtp+=~/.fzf
|
||||
|
||||
" Plugins config
|
||||
let g:go_fmt_command='gopls'
|
||||
let g:go_gopls_gofumpt=1
|
||||
let g:lightline={'colorscheme':'onedark'}
|
||||
|
||||
" vim-plug
|
||||
" https://github.com/junegunn/vim-plug
|
||||
call plug#begin()
|
||||
|
||||
" Should use
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'machakann/vim-sandwich'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
|
||||
" Colorschemes
|
||||
Plug 'joshdick/onedark.vim'
|
||||
|
||||
" Languages
|
||||
Plug 'fatih/vim-go'
|
||||
|
||||
call plug#end()
|
||||
|
||||
set background=dark
|
||||
colorscheme onedark
|
Loading…
Reference in New Issue