This plugin will lint your Splunk search. It is quite very experimental for now.
You need Python in your PATH or in your Nvim config:
let g:python3_host_prog = '/usr/bin/python3'
let g:python_host_prog = '/usr/bin/python2'
Add the plugin to your plugin manager (here with vim-plug):
Plug 'christalib/nvim-splunk-linter', { 'branch': 'main' }
Run:
:PlugInstall
:UpdateRemotePlugins
There is a for the moment one function that will indent your Splunk query.
:call LintSplunk()
test (on) (one) (one (two (three))) (one) ((two))
# to
test
(on)
(one)
(one
(two
(three)))
(one)
(
(two))
You're very welcome to do so. It's my first plugin.