vim config updates

main
Buddy Sandidge 4 years ago
parent f0bd1541d7
commit 5a00f34441

@ -1,2 +1,5 @@
Plug 'junegunn/fzf', { 'tag': '0.24.4' } Plug 'junegunn/fzf', { 'tag': '0.24.4' }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
map <leader>fz :GFiles<CR>
map <leader>rg :Rg<CR>

@ -1,4 +1,4 @@
Plug 'neoclide/coc.nvim', { 'branch': 'release' } "Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'SirVer/ultisnips', { 'tag': '3.2' } Plug 'SirVer/ultisnips', { 'tag': '3.2' }
let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ] let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ]

@ -4,7 +4,8 @@ let g:ale_echo_msg_format = '%s [%severity%] [%linter%]'
let g:ale_set_loclist = 0 let g:ale_set_loclist = 0
let g:ale_set_quickfix = 1 let g:ale_set_quickfix = 1
augroup jslint augroup linters
autocmd! autocmd!
autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint'] autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint']
autocmd FileType go let g:ale_linters['go'] = ['golint', 'govet', 'gopls', 'gofmt']
augroup END augroup END

@ -1,5 +1,11 @@
snippet f "function" ! snippet f "function" !
function ${1:function_name} (${2:argument}) { function ${1:func} (${2}) {
${VISUAL}$0
}
endsnippet
snippet if "if" !
if (${1:true}) {
${VISUAL}$0 ${VISUAL}$0
} }
endsnippet endsnippet

@ -1,3 +1,3 @@
# shellcheck disable=SC2016,SC2034 # shellcheck disable=SC2016,SC2034
VIMINIT='if !has("nvim") | source $XDG_CONFIG_HOME/vim/vimrc | endif' VIMINIT='source $XDG_CONFIG_HOME/vim/vimrc'
MYVIMRC='$XDG_CONFIG_HOME/vim/vimrc' MYVIMRC='$XDG_CONFIG_HOME/vim/vimrc'

@ -15,5 +15,5 @@ if (has("termguicolors"))
set termguicolors set termguicolors
endif endif
colorscheme gruvbox colorscheme wombat
set background=dark set background=dark

Loading…
Cancel
Save