summaryrefslogtreecommitdiff
path: root/nvim/lsp/yls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lsp/yls.lua')
-rwxr-xr-xnvim/lsp/yls.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/nvim/lsp/yls.lua b/nvim/lsp/yls.lua
new file mode 100755
index 0000000..4722d56
--- /dev/null
+++ b/nvim/lsp/yls.lua
@@ -0,0 +1,14 @@
+---@brief
+---
+--- https://pypi.org/project/yls-yara/
+---
+--- An YLS plugin adding YARA linting capabilities.
+---
+--- This plugin runs yara.compile on every save, parses the errors, and returns list of diagnostic messages.
+---
+--- Language Server: https://github.com/avast/yls
+return {
+ cmd = { 'yls', '-vv' },
+ filetypes = { 'yar', 'yara' },
+ root_markers = { '.git' },
+}