vim config updates
This commit is contained in:
parent
f0bd1541d7
commit
5a00f34441
@ -1,2 +1,5 @@
|
||||
Plug 'junegunn/fzf', { 'tag': '0.24.4' }
|
||||
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' }
|
||||
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_quickfix = 1
|
||||
|
||||
augroup jslint
|
||||
augroup linters
|
||||
autocmd!
|
||||
autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint']
|
||||
autocmd FileType go let g:ale_linters['go'] = ['golint', 'govet', 'gopls', 'gofmt']
|
||||
augroup END
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
snippet f "function" !
|
||||
function ${1:function_name} (${2:argument}) {
|
||||
function ${1:func} (${2}) {
|
||||
${VISUAL}$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet if "if" !
|
||||
if (${1:true}) {
|
||||
${VISUAL}$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
# 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'
|
||||
|
||||
@ -15,5 +15,5 @@ if (has("termguicolors"))
|
||||
set termguicolors
|
||||
endif
|
||||
|
||||
colorscheme gruvbox
|
||||
colorscheme wombat
|
||||
set background=dark
|
||||
|
||||
Loading…
Reference in New Issue
Block a user