From 87e845f2f8c33e16a35d1e5346870c29ad4a2cee Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Wed, 26 Apr 2017 11:32:20 -0700 Subject: [PATCH] Some go related changes --- .../configstore/update-notifier-nodemon.json | 4 ++++ dotfiles/config/gocode/config.json | 1 + dotfiles/config/htop/htoprc | 26 ++++++++++++++++++++++ dotfiles/config/nvim/init.vim | 4 ++++ 4 files changed, 35 insertions(+) create mode 100644 dotfiles/config/configstore/update-notifier-nodemon.json create mode 100644 dotfiles/config/gocode/config.json create mode 100644 dotfiles/config/htop/htoprc diff --git a/dotfiles/config/configstore/update-notifier-nodemon.json b/dotfiles/config/configstore/update-notifier-nodemon.json new file mode 100644 index 0000000..fdefc82 --- /dev/null +++ b/dotfiles/config/configstore/update-notifier-nodemon.json @@ -0,0 +1,4 @@ +{ + "optOut": false, + "lastUpdateCheck": 1492129314488 +} \ No newline at end of file diff --git a/dotfiles/config/gocode/config.json b/dotfiles/config/gocode/config.json new file mode 100644 index 0000000..5562437 --- /dev/null +++ b/dotfiles/config/gocode/config.json @@ -0,0 +1 @@ +{"propose-builtins":true,"lib-path":"","custom-pkg-prefix":"","custom-vendor-dir":"","autobuild":true,"force-debug-output":"","package-lookup-mode":"go","close-timeout":1800,"unimported-packages":false} \ No newline at end of file diff --git a/dotfiles/config/htop/htoprc b/dotfiles/config/htop/htoprc new file mode 100644 index 0000000..ce0fca3 --- /dev/null +++ b/dotfiles/config/htop/htoprc @@ -0,0 +1,26 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +fields=0 48 17 18 38 39 2 46 47 49 1 +sort_key=46 +sort_direction=1 +hide_threads=0 +hide_kernel_threads=1 +hide_userland_threads=0 +shadow_other_users=0 +show_thread_names=0 +show_program_path=1 +highlight_base_name=0 +highlight_megabytes=1 +highlight_threads=1 +tree_view=0 +header_margin=1 +detailed_cpu_time=0 +cpu_count_from_zero=0 +update_process_names=0 +account_guest_in_cpu_meter=0 +color_scheme=0 +delay=15 +left_meters=LeftCPUs Memory Swap +left_meter_modes=1 1 1 +right_meters=RightCPUs Tasks LoadAverage Uptime +right_meter_modes=1 2 2 2 diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index 6562e0a..e561d9f 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -151,6 +151,10 @@ let g:rust_recommended_style=0 " Explicitly provide vim-go the gofmt command let g:go_fmt_command = "gofmt" +" Go linting and automatically lint on write +set rtp+=$GOPATH/src/github.com/golang/lint/misc/vim +autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow + " Hotkeys " Note noremap is a normal mode non-recursive mapping " nnoremap and nmap make the bind only work in normal mode