~gpanders/dotfiles

dcb7bf9e752cb9dcad74bd43b4646f480ede5de5 — Greg Anders 1 year, 10 months ago e62c0e3
Update vim filetype plugins
M vim/.vim/after/ftplugin/go.vim => vim/.vim/after/ftplugin/go.vim +1 -7
@@ 3,13 3,7 @@

let b:undo_ftplugin = get(b:, 'undo_ftplugin', '')

setlocal noexpandtab
setlocal shiftwidth=8
setlocal softtabstop=8

let b:undo_ftplugin .= '|setl et< sw< sts<'

if executable('gofmt')
    setlocal formatprg=gofmt
    let b:undo_ftplugin .= ' fp<'
    let b:undo_ftplugin .= '|setl fp<'
endif

M vim/.vim/after/ftplugin/sh.vim => vim/.vim/after/ftplugin/sh.vim +1 -1
@@ 8,7 8,7 @@ nnoremap <buffer> Z! ^"zyg_:!<C-R>z<CR>
let b:undo_ftplugin .= '|nun <buffer> Z!'

setlocal textwidth=79
setlocal fo-=t
setlocal formatoptions-=t
let b:undo_ftplugin .= '|setl tw< fo<'

if executable('shellcheck')

A vim/.vim/after/indent/go.vim => vim/.vim/after/indent/go.vim +9 -0
@@ 0,0 1,9 @@
" go indent plugin
" Author: Greg Anders <greg@gpanders.com>

let b:undo_indent = get(b:, 'undo_indent', '')

setlocal noexpandtab
setlocal shiftwidth&vim
setlocal softtabstop&vim
let b:undo_ftplugin .= '|setl et< sw< sts<'

M vim/.vim/after/syntax/mail.vim => vim/.vim/after/syntax/mail.vim +2 -2
@@ 1,5 1,5 @@
syn region mailItalic matchgroup=mailItalicDelimiter start="\S\@<=\*\|\*\S\@=" end="\S\@<=\*\|\*\S\@=" keepend contains=@Spell
syn region mailItalic matchgroup=mailItalicDelimiter start="\S\@<=_\|_\S\@=" end="\S\@<=_\|_\S\@=" keepend contains=@Spell
syn region mailItalic matchgroup=mailItalicDelimiter start="\S\@<=\\\@<!\*\|\\\@<!\*\S\@=" end="\S\@<=\\\@<!\*\|\\\@<!\*\S\@=" keepend contains=@Spell
syn region mailItalic matchgroup=mailItalicDelimiter start="\S\@<=\\\@<!_\|\\\@<!_\S\@=" end="\S\@<=\\\@<!_\|\\\@<!_\S\@=" keepend contains=@Spell
syn region mailBold matchgroup=mailBoldDelimiter start="\S\@<=\*\*\|\*\*\S\@=" end="\S\@<=\*\*\|\*\*\S\@=" keepend contains=mailItalic,@Spell
syn region mailBold matchgroup=mailBoldDelimiter start="\S\@<=__\|__\S\@=" end="\S\@<=__\|__\S\@=" keepend contains=mailItalic,@Spell
syn region mailBoldItalic matchgroup=mailBoldItalicDelimiter start="\S\@<=\*\*\*\|\*\*\*\S\@=" end="\S\@<=\*\*\*\|\*\*\*\S\@=" keepend contains=@Spell

M vim/.vim/plugin/matchit.vim => vim/.vim/plugin/matchit.vim +8 -3
@@ 1,6 1,11 @@
" Get matchit.vim, one way or another
if has('packages') && !has('nvim')
  packadd matchit
if has('nvim')
    " neovim already loads matchit by default
    finish
endif

if has('packages')
    packadd matchit
else
  silent! runtime macros/matchit.vim
    silent! runtime macros/matchit.vim
endif

M vim/.vim/plugin/minpac.vim => vim/.vim/plugin/minpac.vim +20 -9
@@ 20,25 20,16 @@ function! s:PackInit()
        call minpac#add('tpope/vim-projectionist')
        call minpac#add('tpope/vim-rsi')
        call minpac#add('tpope/vim-eunuch')
        call minpac#add('tpope/vim-characterize')
        call minpac#add('tpope/vim-abolish')
        call minpac#add('tpope/vim-speeddating')
        call minpac#add('tpope/vim-scriptease')
        call minpac#add('tpope/vim-obsession')

        " Better directory browser
        call minpac#add('justinmk/vim-dirvish')

        " More, better, and up-to-date language packs (ftplugins, syntax
        " files, etc)
        call minpac#add('sheerun/vim-polyglot')

        " Align lines to a character, e.g. =, ;, :, etc.
        call minpac#add('junegunn/vim-easy-align')

        " Distraction-free writing
        call minpac#add('junegunn/goyo.vim')

        " Show change signs in the gutter for git files
        call minpac#add('mhinz/vim-signify')



@@ 54,6 45,24 @@ function! s:PackInit()
        " Visualize undo tree
        call minpac#add('simnalamburt/vim-mundo')

        " Language Packs {{{

        " xdc {{{
        call minpac#add('amal-khailtash/vim-xdc-syntax')
        " }}}

        " fish {{{
        call minpac#add('georgewitteman/vim-fish')
        " }}}

        " C++ {{{
        call minpac#add('octol/vim-cpp-enhanced-highlight')
        " }}}

        " Go {{{
        call minpac#add('fatih/vim-go', {'rev': 'v1.21'})
        " }}}

        " Python {{{
        " Provides compilers for flake8 and pylint
        call minpac#add('drgarcia1986/python-compilers.vim')


@@ 71,6 80,8 @@ function! s:PackInit()
        call minpac#add('gpanders/vim-scdoc')
        " }}}

        " }}}

        " Asynchronous linting
        call minpac#add('dense-analysis/ale')