diff options
author | Tyler Davis <tydavis@gmail.com> | 2022-06-08 20:59:59 -0700 |
---|---|---|
committer | Tyler Davis <tydavis@gmail.com> | 2022-06-08 20:59:59 -0700 |
commit | 03ff7e937eebc0e9b2b174b66c6e4e5f37a4a0f8 (patch) | |
tree | f7f03dd5a39b354cec23ab3548ad5cfccf62dfb2 /.vimrc | |
parent | d98f02b7ebfee2ef53eaacfdbe3fc1f8a8b75d75 (diff) | |
download | dotfiles-03ff7e937eebc0e9b2b174b66c6e4e5f37a4a0f8.tar.gz dotfiles-03ff7e937eebc0e9b2b174b66c6e4e5f37a4a0f8.zip |
vim: remove plugins for native vim
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 160 |
1 files changed, 80 insertions, 80 deletions
@@ -1,17 +1,17 @@ -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" -> Vim-Plug -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -call plug#begin('~/.vim/plugged') - -Plug 'jremmen/vim-ripgrep' -Plug 'stefandtw/quickfix-reflector.vim' -Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } -Plug 'buoto/gotests-vim' -Plug 'rust-lang/rust.vim' -Plug 'w0rp/ale' - -call plug#end() - +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"" -> Vim-Plug +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"call plug#begin('~/.vim/plugged') +" +"Plug 'jremmen/vim-ripgrep' +"Plug 'stefandtw/quickfix-reflector.vim' +"Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } +"Plug 'buoto/gotests-vim' +"Plug 'rust-lang/rust.vim' +"Plug 'w0rp/ale' +" +"call plug#end() +" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " -> General """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -284,69 +284,69 @@ if has('persistent_undo') set undofile endif -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" -> ALE Settings -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -let g:LanguageClient_serverCommands = { - \ 'rust': ['rust-analyzer'], - \ } -let g:ale_linters = {'rust': ['rust-analyzer']} -let g:ale_markdown_markdownlint_options = "--config ~/.mdlrc" - -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" -> Golang Settings -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - -let g:go_def_mode='gopls' -let g:go_info_mode='gopls' -let g:go_gopls_gofumpt=1 -let g:go_metalinter_command = 'golangci-lint' -let g:go_fmt_command="gopls" -"let g:go_fmt_command = "goimports" " Goimports is slow with modules, when module not found - -" By default syntax-highlighting for Functions, Methods and Structs is disabled -let g:go_highlight_build_constraints = 1 -let g:go_highlight_fields = 1 -let g:go_highlight_functions = 1 -let g:go_highlight_interfaces = 1 -let g:go_highlight_methods = 1 -let g:go_highlight_operators = 1 -let g:go_highlight_structs = 1 - -" Auto-space Go files -autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 - -" vim-go mappings -au FileType go nmap <leader>b <Plug>(go-build) -au FileType go nmap <leader>c <Plug>(go-coverage) -au FileType go nmap <leader>r <Plug>(go-run) -au FileType go nmap <leader>t <Plug>(go-test) -au FileType go nmap <leader>d <Plug>(go-def) - -" Go implements (interfaces under cursor) -au FileType go nmap <Leader>s <Plug>(go-implements) - -" Go show type info under cursor -au FileType go nmap <Leader>i <Plug>(go-info) - -" Go rename -au FileType go nmap <Leader>e <Plug>(go-rename) - -" Go vet -au FileType go nmap <Leader>v <Plug>(go-vet) - -" Godoc under cursor -au FileType go nmap <Leader>k <Plug>(go-doc) - -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" -> Rust Settings -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - -let g:rustfmt_autosave = 1 - -" Set updatetime for CursorHold -" 300ms of no cursor movement to trigger CursorHold -set updatetime=300 - -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"" -> ALE Settings +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"let g:LanguageClient_serverCommands = { +" \ 'rust': ['rust-analyzer'], +" \ } +"let g:ale_linters = {'rust': ['rust-analyzer']} +"let g:ale_markdown_markdownlint_options = "--config ~/.mdlrc" +" +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"" -> Golang Settings +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" +"let g:go_def_mode='gopls' +"let g:go_info_mode='gopls' +"let g:go_gopls_gofumpt=1 +"let g:go_metalinter_command = 'golangci-lint' +"let g:go_fmt_command="gopls" +""let g:go_fmt_command = "goimports" " Goimports is slow with modules, when module not found +" +"" By default syntax-highlighting for Functions, Methods and Structs is disabled +"let g:go_highlight_build_constraints = 1 +"let g:go_highlight_fields = 1 +"let g:go_highlight_functions = 1 +"let g:go_highlight_interfaces = 1 +"let g:go_highlight_methods = 1 +"let g:go_highlight_operators = 1 +"let g:go_highlight_structs = 1 +" +"" Auto-space Go files +"autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 +" +"" vim-go mappings +"au FileType go nmap <leader>b <Plug>(go-build) +"au FileType go nmap <leader>c <Plug>(go-coverage) +"au FileType go nmap <leader>r <Plug>(go-run) +"au FileType go nmap <leader>t <Plug>(go-test) +"au FileType go nmap <leader>d <Plug>(go-def) +" +"" Go implements (interfaces under cursor) +"au FileType go nmap <Leader>s <Plug>(go-implements) +" +"" Go show type info under cursor +"au FileType go nmap <Leader>i <Plug>(go-info) +" +"" Go rename +"au FileType go nmap <Leader>e <Plug>(go-rename) +" +"" Go vet +"au FileType go nmap <Leader>v <Plug>(go-vet) +" +"" Godoc under cursor +"au FileType go nmap <Leader>k <Plug>(go-doc) +" +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"" -> Rust Settings +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" +"let g:rustfmt_autosave = 1 +" +"" Set updatetime for CursorHold +"" 300ms of no cursor movement to trigger CursorHold +"set updatetime=300 +" +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" |