~gjabell/vis-fix

File fixer plugin for vis editor
Initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~gjabell/vis-fix
read/write
git@git.sr.ht:~gjabell/vis-fix

You can also use your local clone with git send-email.

#vis-fix

Vis plugin for configuring file fixers on a per-filetype basis.

vis-fix adds a new on-save hook for running an arbitrary shell script based on the type of file being edited. The script to be run can be configured by setting the filetype and command in the plugin's fixer table (see below).

#Usage

local fix = require('plugins/vis-fix')
check.fixers['go'] = 'goimports'
check.fixers['python'] = 'black -q -'

#License

MIT License

#Attribution

This plugin was inspired by and modified from code at https://gitlab.com/timoha/vis-go, which is also licensed under the MIT license:

MIT License

Copyright (c) 2018 Andrey Elenskiy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.