Skip to content

Commit

Permalink
update go plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchuette committed Apr 29, 2023
1 parent cec902a commit 51c77d1
Show file tree
Hide file tree
Showing 195 changed files with 2,582 additions and 26,497 deletions.
6 changes: 3 additions & 3 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ alias vimrc="v ~/dotfiles/vim-config/configs.vim"
alias tmux_conf="v ~/dotfiles/.tmux.conf"

# remap some GNU utils to rust utilities
alias ls="exa --git"
alias l="exa -lahF --git"
alias ll="exa -lahF --git"
alias ls="exa"
alias l="exa -lahF"
alias ll="exa -lahF"
alias t="tokei"
alias b="bat"

Expand Down
23 changes: 18 additions & 5 deletions vim-config/configs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ augroup on_save
autocmd BufWritePre * %s/\s\+$//e
augroup END

augroup js_ts_tabs
autocmd!

autocmd FileType javascript setlocal shiftwidth=2 tabstop=2
autocmd FileType typescript setlocal shiftwidth=2 tabstop=2
augroup END

"********************"
"** Plugin Configs **"
"********************"
Expand Down Expand Up @@ -402,14 +409,19 @@ nnoremap <silent> <leader>d :GitGutterToggle<cr>
" Vim Go Configs
" --------------
" The following settings refer to go-vim. It seems to be a great
" plugin, but it really pollutes VIM with all sorts of error messages
" and non-customizable behavior like quickfix lists. Thus, we switched
" to coc-go and removed go-vim completely.

" set `goimports' to be used to format src files
let g:go_fmt_command = 'goimports'

" add golang linter path to runtime path
set runtimepath+=$GOPATH/src/github.com/golang/lint/misc/vim

" disable location lists for go-vim
"let g:go_list_type = "quickfix"
" only quickfix, no location lists for go-vim
let g:go_list_type = "quickfix"

" run :GoBuild or :GoTestCompile based on the go file
function! s:build_go_files()
Expand Down Expand Up @@ -445,8 +457,8 @@ let g:go_highlight_generate_tags = 1
let g:go_auto_type_info = 1
set updatetime=300

" automatically highlight matching identifiers
let g:go_auto_sameids = 1
" disable automatic highlighting of matching identifiers
let g:go_auto_sameids = 0

" Vim-Modern-Cpp Configs
" ----------------------
Expand Down Expand Up @@ -496,7 +508,7 @@ let g:ale_linters = {
\ 'typescript': ['eslint', 'tsserver'],
\ 'javascript': ['prettier', 'eslint', 'jshint'],
\ 'python': ['flake8', 'mypy'],
\ 'go': ['go', 'golint', 'errcheck'],
\ 'go': ['go', 'golint', 'errcheck', 'golangci-lint', 'govet', 'gofmt'],
\ 'vim': ['vint'],
\ 'elm': ['elm_ls'],
\ 'cpp': ['clangtidy', 'g++'],
Expand Down Expand Up @@ -528,6 +540,7 @@ let g:ale_fixers = {
\ 'python': ['isort', 'autopep8'],
\ 'elm': ['elm-format'],
\ 'haskell': ['hfmt'],
\ 'go': ['gofmt'],
\}
" Totally usable, but needs configuration: 'cpp': ['clang-format'].
" currently unusable: 'rust': ['rustfmt']
Expand Down
2,561 changes: 2,561 additions & 0 deletions vim-config/plugins/ale/doc/tags

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions vim-config/plugins/vim-go/.codecov.yml

This file was deleted.

3 changes: 0 additions & 3 deletions vim-config/plugins/vim-go/.coveragerc

This file was deleted.

7 changes: 0 additions & 7 deletions vim-config/plugins/vim-go/.dockerignore

This file was deleted.

17 changes: 0 additions & 17 deletions vim-config/plugins/vim-go/.editorconfig

This file was deleted.

12 changes: 0 additions & 12 deletions vim-config/plugins/vim-go/.github/CONTRIBUTING.md

This file was deleted.

1 change: 0 additions & 1 deletion vim-config/plugins/vim-go/.github/FUNDING.yml

This file was deleted.

47 changes: 0 additions & 47 deletions vim-config/plugins/vim-go/.github/ISSUE_TEMPLATE.md

This file was deleted.

56 changes: 0 additions & 56 deletions vim-config/plugins/vim-go/.github/workflows/test.yml

This file was deleted.

11 changes: 0 additions & 11 deletions vim-config/plugins/vim-go/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions vim-config/plugins/vim-go/.vintrc.yaml

This file was deleted.

Loading

0 comments on commit 51c77d1

Please sign in to comment.