fix StyLua command (#190)

* style: fix StyLua glob pattern

* style: fix style with StyLua

run './utils/stylua --config-path stylua.toml --glob 'lua/**/*.lua' -- lua'
This commit is contained in:
hituzi no sippo
2021-09-11 20:18:44 +09:00
committed by GitHub
parent 8fb4ee1075
commit a58712bf16
19 changed files with 56 additions and 71 deletions

View File

@@ -1,5 +1,5 @@
local types = require'cmp.types'
local misc = require 'cmp.utils.misc'
local types = require('cmp.types')
local misc = require('cmp.utils.misc')
local compare = {}
@@ -85,4 +85,3 @@ compare.order = function(entry1, entry2)
end
return compare

View File

@@ -15,7 +15,7 @@ return function()
keyword_length = 1,
get_trigger_characters = function(trigger_characters)
return trigger_characters
end
end,
},
snippet = {
@@ -37,7 +37,7 @@ return function()
default_behavior = types.cmp.ConfirmBehavior.Insert,
get_commit_characters = function(commit_characters)
return commit_characters
end
end,
},
sorting = {
@@ -50,7 +50,7 @@ return function()
compare.sort_text,
compare.length,
compare.order,
}
},
},
event = {},
@@ -61,7 +61,7 @@ return function()
deprecated = true,
format = function(_, vim_item)
return vim_item
end
end,
},
experimental = {
@@ -71,4 +71,3 @@ return function()
sources = {},
}
end