Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

evilcel3ri/nvim-splunk-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Nvim Splunk Linter

This plugin will lint your Splunk search. It is quite very experimental for now.

Install

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

Use

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))

Contribute

You're very welcome to do so. It's my first plugin.

Releases

No releases published

Languages