diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f76d3ae..cf79609 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: uses: JohnnyMorganz/stylua-action@v3 with: token: ${{ secrets.GITHUB_TOKEN }} - version: 0.19.0 + version: 0.20.0 args: --check . test: @@ -28,7 +28,7 @@ jobs: 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 diff --git a/lua/lualine/components/ex/lsp/all.lua b/lua/lualine/components/ex/lsp/all.lua index d0c5b20..64a97c4 100644 --- a/lua/lualine/components/ex/lsp/all.lua +++ b/lua/lualine/components/ex/lsp/all.lua @@ -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() diff --git a/tests/ex/lualine.lua b/tests/ex/lualine.lua index 8c78cff..363e5cd 100644 --- a/tests/ex/lualine.lua +++ b/tests/ex/lualine.lua @@ -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#'),