Skip to content

Commit

Permalink
fmt: up version of the stylua to 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-popov committed Jun 8, 2024
1 parent c561594 commit 6814858
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 0.19.0
version: 0.20.0
args: --check .

test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
neovim_version: ['v0.8.0', 'nightly']
neovim_version: ['v0.8.0', 'v0.10.0', 'nightly']

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 3 additions & 4 deletions lua/lualine/components/ex/lsp/all.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ end
---@class AllLspComponent: ExComponent
---@field options AllLspOptions
---@field components table
local AllLsp = require('lualine.ex.component'):extend(
vim.tbl_extend('force', SingleLsp.default_options, {
local AllLsp =
require('lualine.ex.component'):extend(vim.tbl_extend('force', SingleLsp.default_options, {
is_enabled = function(component)
return not ex.is_empty(component:__clients())
end,
notify_enabled = true,
notify_hl = 'Comment',
})
)
}))

---@protected
function AllLsp:pre_init()
Expand Down
12 changes: 4 additions & 8 deletions tests/ex/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,16 @@ function M.match_rendered_component(rendered_component, opts)

-- Try to match the short pattern with icon color only
if is_right_icon then
t.value, t.icon_hl, t.icon = string.match(
rendered_component,
p_value .. p_padding .. p_hl .. p_icon .. '$'
)
t.value, t.icon_hl, t.icon =
string.match(rendered_component, p_value .. p_padding .. p_hl .. p_icon .. '$')
t.hl = default_hl
t.icon_color = {
fg = M.get_gui_color(t.icon_hl, 'fg#'),
bg = M.get_gui_color(t.icon_hl, 'bg#'),
}
else
t.icon_hl, t.icon, t.value = string.match(
rendered_component,
p_hl .. p_icon .. p_padding .. p_value
)
t.icon_hl, t.icon, t.value =
string.match(rendered_component, p_hl .. p_icon .. p_padding .. p_value)
t.icon_color = {
fg = M.get_gui_color(t.icon_hl, 'fg#'),
bg = M.get_gui_color(t.icon_hl, 'bg#'),
Expand Down

0 comments on commit 6814858

Please sign in to comment.