mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:37:33 +00:00
Fix some linting issues
This commit is contained in:
parent
9c8c290f84
commit
b259a7bf53
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user