ShellCheck integration for Kakoune
First, install shellcheck
. See here for directions.
To install the plugin, I recommend using plug.kak
. You can install it by adding the following to your kakrc
:
plug "whereswaldon/shellcheck.kak"
If you prefer to install it manually, you can use:
mkdir -p ~/.config/kak/plugins/
git clone https://github.com/whereswaldon/shellcheck.kak ~/.config/kak/plugins/shellcheck.kak/
You'll need to add the following to your kakrc as well:
source "%val{config}/plugins/shellcheck.kak/shellcheck.kak"
shellcheck-enable
starts linting the current window with shellcheck when you:write
it.shellcheck-disable
turns off linting the current window.
Currently, the plugin will automatically enable linting when kakoune determines that the current filetype is a shell script.
Feature requests and pull requests welcome!
Unlicense