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

@@ -104,4 +104,3 @@ cmp.PreselectMode.None = 'none'
---@field public max_item_count number
return cmp

View File

@@ -5,4 +5,3 @@ types.lsp = require('cmp.types.lsp')
types.vim = require('cmp.types.vim')
return types

View File

@@ -1,5 +1,4 @@
local misc = require "cmp.utils.misc"
local misc = require('cmp.utils.misc')
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/
---@class lsp
local lsp = {}
@@ -18,7 +17,7 @@ lsp.Position.to_vim = function(buf, position)
if #lines > 0 then
return {
row = position.line + 1,
col = misc.to_vimindex(lines[1], position.character)
col = misc.to_vimindex(lines[1], position.character),
}
end
return {
@@ -196,4 +195,3 @@ lsp.CompletionItemKind = vim.tbl_add_reverse_lookup(lsp.CompletionItemKind)
---@field public dup boolean|nil
return lsp

View File

@@ -1,9 +1,9 @@
local spec = require'cmp.utils.spec'
local lsp = require'cmp.types.lsp'
local spec = require('cmp.utils.spec')
local lsp = require('cmp.types.lsp')
describe('types.lsp', function ()
describe('types.lsp', function()
before_each(spec.before)
describe('Position', function ()
describe('Position', function()
vim.fn.setline('1', {
'あいうえお',
'かきくけこ',
@@ -44,4 +44,3 @@ describe('types.lsp', function ()
assert.are.equal(lsp_position.character, 5)
end)
end)

View File

@@ -15,4 +15,3 @@
---@class vim.Range
---@field public start vim.Position
---@field public end vim.Position