diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..4fdacad --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: lint + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + selene: + name: Lint + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + - uses: NTBBloodbath/selene-action@v1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --config selene.toml --color always ./lua diff --git a/lua/navigator/lazyloader.lua b/lua/navigator/lazyloader.lua index 84f87a4..5c5e090 100644 --- a/lua/navigator/lazyloader.lua +++ b/lua/navigator/lazyloader.lua @@ -1,7 +1,7 @@ return { init = function() local loader = nil - local packer_plugins = packer_plugins or nil -- suppress warnings + packer_plugins = packer_plugins or nil -- suppress warnings local log = require('navigator.util').log -- packer only if packer_plugins ~= nil then -- packer install @@ -51,7 +51,7 @@ return { end, load = function(plugin_name, path) local loader = nil - local packer_plugins = packer_plugins or nil -- suppress warnings + packer_plugins = packer_plugins or nil -- suppress warnings -- packer only if packer_plugins ~= nil then -- packer install local lazy_plugins = {} diff --git a/selene.toml b/selene.toml index 6540d6f..7f568bf 100644 --- a/selene.toml +++ b/selene.toml @@ -1 +1 @@ -std="lua51+vim" +std="lua52+vim" diff --git a/vim.toml b/vim.toml index 09031f6..9bde681 100644 --- a/vim.toml +++ b/vim.toml @@ -1,5 +1,5 @@ [selene] -base = "lua51" +base = "lua52" name = "vim" [vim] @@ -8,9 +8,11 @@ any = true [_G] property = true writable = "new-fields" + [_NgConfigValues] -property = true -writable = "new-fields" +any = true +# property = true +# writable = "full-write" [debug] property = true