haya14busa / Vim Gofmt
Formats Go source code asynchronously with multiple Go formatters.
Stars: ✭ 11
Labels
Projects that are alternatives of or similar to Vim Gofmt
Vim Clang Format
Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf.
Stars: ✭ 837 (+7509.09%)
Mutual labels: vim-plugin, formatter
vim-ormolu
Plugin for formatting Haskell source code
Stars: ✭ 35 (+218.18%)
Mutual labels: formatter, vim-plugin
Vimcompletesme
You don't Complete Me; Vim Completes Me! A super simple, super minimal, super light-weight tab completion plugin for Vim.
Stars: ✭ 752 (+6736.36%)
Mutual labels: vim-plugin
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (+54.55%)
Mutual labels: formatter
Sql Formatter
A whitespace formatter for different query languages
Stars: ✭ 779 (+6981.82%)
Mutual labels: formatter
Moment.php
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Stars: ✭ 900 (+8081.82%)
Mutual labels: formatter
Vim Move
Plugin to move lines and selections up and down
Stars: ✭ 743 (+6654.55%)
Mutual labels: vim-plugin
Briofita vim
colorful Vim colorscheme for both GUI and 256-color terminals
Stars: ✭ 9 (-18.18%)
Mutual labels: vim-plugin
Vim Quickrepl
The Simplest Faster way to open your REPL for filetypes.
Stars: ✭ 17 (+54.55%)
Mutual labels: vim-plugin
Tmux Navigate
🥂 Seamless tmux/vim navigation (over SSH too!)
Stars: ✭ 23 (+109.09%)
Mutual labels: vim-plugin
Go Money
Go implementation of Fowler's Money pattern
Stars: ✭ 887 (+7963.64%)
Mutual labels: formatter
Vim Grammarous
A powerful grammar checker for Vim using LanguageTool.
Stars: ✭ 780 (+6990.91%)
Mutual labels: vim-plugin
Vim Healthcheck
Polyfill of Neovim's health-check for Vim
Stars: ✭ 26 (+136.36%)
Mutual labels: vim-plugin
Prettier Atom
An atom package for the prettier formatter.
Stars: ✭ 750 (+6718.18%)
Mutual labels: formatter
Vim Diff Toggle
🛠 Vim plugin to speed up editing diff files
Stars: ✭ 17 (+54.55%)
Mutual labels: vim-plugin
Online Markdown
A online markdown converter specially for Wechat Public formatting.
Stars: ✭ 812 (+7281.82%)
Mutual labels: formatter
vim-gofmt
vim-gofmt formats Go source code asynchronously with multiple Go formatters.
It's experimental and API may changes, but it should work.
Usage
:Fmt
:Fmt
formats Go source code in current buffer using g:gofmt_formatters
.
It runs asynchronously and doesn't block editing.
g:gofmt_formatters
default:
let g:gofmt_formatters = [
\ { 'cmd': 'gofmt', 'args': ['-s', '-w'] },
\ { 'cmd': 'goimports', 'args': ['-w'] },
\ ]
Each formatters are used in consecutively in order of the list.
Example:
$ go get -u github.com/rhysd/gofmtrlx
$ go get -u github.com/haya14busa/go-typeconv/cmd/gotypeconv
let g:gofmt_formatters = [
\ { 'cmd': 'gofmtrlx', 'args': ['-s', '-w'] },
\ { 'cmd': 'goimports', 'args': ['-w'] },
\ { 'cmd': 'gotypeconv', 'args': ['-w'] },
\ ]
🐦 Author
haya14busa (https://github.com/haya14busa)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].