chore: add stylua to format the codebase, and run on CI (#1055)

This commit is contained in:
Kiyan
2022-03-06 17:33:30 +01:00
committed by GitHub
parent 76d181d480
commit 0816064a8b
43 changed files with 871 additions and 732 deletions

View File

@@ -1,4 +1,4 @@
local utils = require'nvim-tree.utils'
local utils = require "nvim-tree.utils"
local M = {}
@@ -181,16 +181,15 @@ function M.migrate_legacy_options(opts)
local msg = nil
for g, m in pairs(migrations) do
if vim.fn.exists('g:'..g) ~= 0 then
if vim.fn.exists("g:" .. g) ~= 0 then
m(opts)
msg = (msg and msg .. ", " or "Following options were moved to setup, see git.io/JPhyt: ") .. g
end
end
if msg then
require'nvim-tree.utils'.warn(msg)
require("nvim-tree.utils").warn(msg)
end
end
return M