From 1d1697562f2271427908e697dc373177faa2a560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Fri, 22 Oct 2021 14:25:50 +0200 Subject: [PATCH] Add configuration for selene lint --- lua/srht-patches/init.lua | 1 + selene.toml | 1 + vim.toml | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 selene.toml create mode 100644 vim.toml diff --git a/lua/srht-patches/init.lua b/lua/srht-patches/init.lua index f168cd0..55fbd8f 100644 --- a/lua/srht-patches/init.lua +++ b/lua/srht-patches/init.lua @@ -79,6 +79,7 @@ function Patch.setup(opts) require("srht-patches.config").setup(opts) end +-- selene: allow(global_usage) function _G.complete_srht_patches_status(lead, _, _) local comp_list = vim.tbl_filter(function(name) return vim.startswith(name, lead) diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..7312a91 --- /dev/null +++ b/selene.toml @@ -0,0 +1 @@ +std="vim" diff --git a/vim.toml b/vim.toml new file mode 100644 index 0000000..fa8bcb4 --- /dev/null +++ b/vim.toml @@ -0,0 +1,6 @@ +[selene] +base = "lua51" +name = "vim" + +[vim] +any = true -- 2.44.0