Fix some linting issues

This commit is contained in:
ViViDboarder 2022-10-25 09:42:59 -07:00
parent 9c8c290f84
commit b259a7bf53
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
-- Install packer -- Install packer
local utils = require("utils") local utils = require("utils")
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/opt/packer.nvim" local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/opt/packer.nvim"
local packer_bootstrap = false local packer_bootstrap = ""
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
packer_bootstrap = vim.fn.system({ "git", "clone", "https://github.com/wbthomason/packer.nvim", install_path }) packer_bootstrap = vim.fn.system({ "git", "clone", "https://github.com/wbthomason/packer.nvim", install_path })
end end
@ -411,6 +411,6 @@ use({
}) })
-- Auto sync after bootstrapping on a fresh box -- Auto sync after bootstrapping on a fresh box
if packer_bootstrap then if packer_bootstrap ~= "" then
packer.sync() packer.sync()
end end

View File

@ -159,7 +159,7 @@ M.nil_val = {}
-- If more than one rule matches, the one with the greatest version number is used -- If more than one rule matches, the one with the greatest version number is used
function M.map_version_rule(rules) function M.map_version_rule(rules)
local v = vim.version() local v = vim.version()
local current_version = { v.major, v.minor, v.patch } local current_version = { v and v.major, v and v.minor, v and v.patch }
-- Parse a constraint and version of a string -- Parse a constraint and version of a string
local parse_rule = function(rule_string) local parse_rule = function(rule_string)